Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ctboard:peripherals:lcd_ascii [2020/11/12 07:48] – [Programming Example] akdictboard:peripherals:lcd_ascii [2022/12/23 12:20] (current) ruan
Line 6: Line 6:
 > Supported [[ctboard:mode_switch|modes]]: **1**, **2**, **3**, **4**  > Supported [[ctboard:mode_switch|modes]]: **1**, **2**, **3**, **4** 
 \\ \\
 +
 +===== Registers =====
 +
 +The registers are write only.
 +
 +\\ {{ctboard_lcd_ascii_reg_new.svg}} \\ \\
 +
 +===== Display Positions =====
 +
 +\\ {{ctboard_lcd_ascii_new.svg?700em}} \\ \\
 +
 +Base address: 0x6000'0300
  
 ===== Programming Example ===== ===== Programming Example =====
Line 24: Line 36:
  
                 LDR      r0, =ADDR_LCD_ASCII                 LDR      r0, =ADDR_LCD_ASCII
-                LDR      r1, ="E"                         ; Load value of ASCII char 'E' into r2.                 +                LDR      r1, ="E"                         ; Load value of ASCII char 'E' into r1.                 
-                STRH     r1, [r0, #13]                    ; Write 'E' at position 13 on the LCD.+                STRB     r1, [r0, #12]                    ; Write 'E' at position 13 on the LCD.
 </code> </code>
 \\ \\
  
-===== Registers ===== 
- 
-The registers are write only. 
- 
-\\ {{ctboard_lcd_ascii_reg_new.svg}} \\ \\ 
- 
-===== Display Positions ===== 
- 
-\\ {{ctboard_lcd_ascii_new.svg?700em}} \\ \\ 
- 
-Base address: 0x6000'0300 
  • ctboard/peripherals/lcd_ascii.1605167282.txt.gz
  • Last modified: 2020/11/12 07:48
  • by akdi