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 [2017/08/29 09:16] – [Programming Example] ruan | ctboard:peripherals:dipsw [2026/06/25 14:53] (current) – [Programming Example] scbj | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| > Supported [[ctboard: | > Supported [[ctboard: | ||
| \\ | \\ | ||
| + | |||
| + | ===== Registers ===== | ||
| + | |||
| + | The registers are read only. | ||
| + | |||
| + | \\ {{ctboard_dipsw_reg.svg}} \\ \\ | ||
| + | |||
| + | ===== Diagram ===== | ||
| + | |||
| + | \\ {{: | ||
| ===== Programming Example ===== | ===== Programming Example ===== | ||
| 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 ===== | ||
| - | |||
| - | \\ {{: | ||