Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ctboard:peripherals:dipsw [2016/02/25 12:38] – [Programming Example] feur | ctboard:peripherals:dipsw [2026/06/25 14:53] (current) – [Programming Example] scbj | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== DIPSW ====== | ====== DIPSW ====== | ||
| - | On the CT Board are 32 DIP switches | + | The CT Board features |
| If a DIP switch is in the position " | If a DIP switch is in the position " | ||
| - | > {{ctboard: | + | > {{ctboard: |
| - | > Supported [[ctboard: | + | > Supported [[ctboard: |
| \\ | \\ | ||
| + | |||
| + | ===== Registers ===== | ||
| + | |||
| + | The registers are read only. | ||
| + | |||
| + | \\ {{ctboard_dipsw_reg.svg}} \\ \\ | ||
| + | |||
| + | ===== Diagram ===== | ||
| + | |||
| + | \\ {{: | ||
| ===== Programming Example ===== | ===== Programming Example ===== | ||
| - | The code snippet bellow shows how to use the DIPSW. | + | The code snippets below show how to use the DIPSW. |
| <code c> | <code c> | ||
| Line 21: | Line 31: | ||
| \\ | \\ | ||
| - | < | + | < |
| - | ADDR_DIPSW | + | .equ ADDR_DIPSW, 0x60000200 |
| | | ||
| - | LDR | + | ldr r0, =ADDR_DIPSW |
| - | | + | |
| - | | + | |
| - | | + | |
| </ | </ | ||
| \\ | \\ | ||
| - | |||
| - | ===== Registers ===== | ||
| - | |||
| - | The Registers are read only. | ||
| - | |||
| - | \\ {{ctboard_dipsw_reg.svg}} \\ \\ | ||
| - | |||
| - | ===== Diagram ===== | ||
| - | |||
| - | \\ {{: | ||