Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ctboard:peripherals:gpio_cpld [2022/12/23 11:03] – ruan | ctboard:peripherals:gpio_cpld [2026/06/25 14:52] (current) – [Programming Example] scbj | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| ==== Output ==== | ==== Output ==== | ||
| - | The Registers | + | The registers |
| \\ {{ctboard_gpio_output_reg.svg}} \\ \\ | \\ {{ctboard_gpio_output_reg.svg}} \\ \\ | ||
| Line 41: | Line 41: | ||
| \\ | \\ | ||
| - | < | + | < |
| - | ADDR_GPIO_IN | + | .equ ADDR_GPIO_IN, 0x60000410 |
| - | ADDR_GPIO_OUT | + | .equ ADDR_GPIO_OUT, |
| | | ||
| - | LDR | + | ldr r0, =ADDR_GPIO_IN |
| - | | + | |
| - | | + | |
| - | | + | |
| | | ||
| - | LDR | + | ldr r0, =ADDR_GPIO_OUT |
| - | | + | |
| - | | + | |
| - | | + | |
| </ | </ | ||
| \\ | \\ | ||