This is an old revision of the document!
HEXSW
The HEX switch on the CT Board can switch through 16 different states (4 bit).
Programming Example
The code snippet bellow shows how to use the HEXSW.
#include "reg_ctboard.h" uint8_t data = CT_HEXSW; /* Read HEXSW into the lower nibble of a byte. */
ADDR_BUTTON EQU 0x60000211 LDR r0, =ADDR_BUTTON LDRB r1, [r0, #0] ; Read HEXSW into the lower nibble of a byte.