This is an old revision of the document!


HEXSW

The HEX switch on the CT Board can switch through 16 different states (4 bit).

Please make sure the CT Board is in the correct mode.
Supported modes: 1, 2, 3, 4


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_HEXSW      EQU      0x60000211
 
                LDR      r0, =ADDR_HEXSW
                LDRB     r1, [r0, #0]       ; Read HEXSW into the lower nibble of a byte.


The Registers are read only.







  • ctboard/peripherals/hexsw.1465384073.txt.gz
  • Last modified: 2016/06/08 11:07
  • by feur