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 [2017/08/29 09:20] – [Programming Example] ruan | ctboard:peripherals:gpio_cpld [2026/06/25 14:52] (current) – [Programming Example] scbj | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| > Supported [[ctboard: | > Supported [[ctboard: | ||
| \\ | \\ | ||
| + | |||
| + | ===== Registers ===== | ||
| + | |||
| + | ==== Input ==== | ||
| + | |||
| + | \\ {{ ctboard_gpio_pinout.svg? | ||
| + | | ||
| + | |||
| + | ==== Output ==== | ||
| + | |||
| + | The registers are read / write. | ||
| + | |||
| + | \\ {{ctboard_gpio_output_reg.svg}} \\ \\ | ||
| + | |||
| + | ===== Diagram ===== | ||
| + | |||
| + | \\ {{ctboard_gpio_cpld.svg}} \\ \\ | ||
| ===== Programming Example ===== | ===== Programming Example ===== | ||
| Line 24: | 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 |
| - | | + | |
| - | | + | |
| - | | + | |
| </ | </ | ||
| \\ | \\ | ||
| - | ===== Registers ===== | ||
| - | |||
| - | ==== Input ==== | ||
| - | |||
| - | \\ {{ ctboard_gpio_pinout.svg? | ||
| - | | ||
| - | |||
| - | ==== Output ==== | ||
| - | |||
| - | The Registers are read / write. | ||
| - | |||
| - | \\ {{ctboard_gpio_output_reg.svg}} \\ \\ | ||
| - | |||
| - | ===== Diagram ===== | ||
| - | |||
| - | \\ {{ctboard_gpio_cpld.svg}} \\ \\ | ||