This is an old revision of the document!


LCD ASCII Interface

The integrated LCD controller must allways be accessed with 16 bit half words!

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


The code snippet bellow shows how to use the ASCII interface of the LCD.

#include "reg_ctboard.h"
 
CT_LCD->ASCII = (uint16_t) ((13u << 8u) | ascii_char);    /* Write ascii_char at position 13 on the LCD. */


ADDR_LCD_ASCII  EQU      0x60000310
 
                LDR      r0, =ADDR_LCD_ASCII
                LDR      r1, #13                          ; Load position on display into r1.
                LDR      r2, "E"                          ; Load value of ASCII char 'E' into r2.
 
                ; Thumb instruction set
                LSLS     r1, #8                           ; Shift position 8 bits to the left
                ORRS     r2, r1                           ; Combine position with ASCII character
 
                ; ARM instruction set
                ORRS     r2, r1, LSL #8                   ; Shift and combine position value with ASCII character
 
                STRH     r2, [r0, #0]                     ; Write ascii_char at position 13 on the LCD.


The Registers are read / write.







  • ctboard/peripherals/lcd_ascii.1456407082.txt.gz
  • Last modified: 2016/02/25 13:31
  • by feur