Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ctboard:peripherals:button [2016/01/26 11:46] – created feur | ctboard:peripherals:button [2022/12/23 11:00] (current) – ruan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | The 4 buttons on the CT Board are **" | ||
+ | The buttons are accessible over the memory mapped interface or on [[stm32: | ||
+ | |||
+ | > {{ctboard: | ||
+ | > Supported [[ctboard: | ||
+ | \\ | ||
+ | |||
+ | ===== Registers ===== | ||
+ | |||
+ | The Registers are read only. | ||
+ | |||
+ | \\ {{ctboard_button_reg.svg}} \\ \\ | ||
+ | |||
+ | ===== Diagram ===== | ||
+ | |||
+ | \\ {{: | ||
+ | |||
+ | ===== Programming Example ===== | ||
+ | |||
+ | The code snippets below show how to use the buttons. | ||
+ | |||
+ | <code c> | ||
+ | #include " | ||
+ | |||
+ | uint8_t data = CT_BUTTON; | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | <code asm> | ||
+ | ADDR_BUTTON | ||
+ | | ||
+ | LDR r0, =ADDR_BUTTON | ||
+ | LDRB r1, [r0, #0] ; Read all buttons into the lower nibble of a byte. | ||
+ | </ | ||
+ | \\ | ||