====== Binary Interface ======
The binary interface can be used to display binary values in HEX representation.
A maximum of 128 bits can be displayed. \\ \\
> {{ctboard:ctboard_mode_1.svg?48px }} {{ctboard:ctboard_mode_2.svg?48px }} {{ctboard:ctboard_mode_3.svg?48px }} {{ctboard:ctboard_mode_4.svg?48px }} Please make sure the CT Board is in the correct mode.
> Supported [[ctboard:mode_switch|modes]]: **1**, **2**, **3**, **4**
\\
===== Registers =====
The Registers are read / write.
\\ {{ctboard_lcd_bin_reg_new.svg}} \\ \\
===== Display Positions =====
\\ {{ctboard_lcd_bin_new.svg?700em}} \\ \\
Base address: 0x6000'0330
===== Programming Example =====
The code snippet bellow shows how to use the ASCII interface of the LCD.
#include "reg_ctboard.h"
CT_LCD->BIN.BYTE.B7_0 = (uint8_t) data_byte; /* Write byte of data to LCD. */
CT_LCD->BIN.HWORD.B31_16 = (uint16_t) data_halfword; /* Write halfword of data to LCD. */
CT_LCD->BIN.WORD.B63_32 = (uint32_t) data_word; /* Write word of data to LCD. */
\\
ADDR_LCD_BIN EQU 0x60000330
LDR r0, =ADDR_LCD_BIN
STRB r1, [r0, #0] ; Write byte of data to LCD.
STRH r1, [r0, #2] ; Write halfword of data to LCD.
STR r1, [r0, #4] ; Write word of data to LCD.
\\