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:7segment_raw [2018/01/14 09:27] – [Programming Example] ruanctboard:peripherals:7segment_raw [2026/06/25 15:02] (current) – [Programming Example] scbj
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 read / write.
 +
 +\\ {{ctboard_7seg_raw_reg.svg}} \\ \\
 +
 +===== Diagram =====
 +
 +\\ {{ctboard_7seg_raw.svg?700em}} \\ \\
  
 ===== Programming Example ===== ===== Programming Example =====
Line 20: Line 30:
 \\ \\
  
-<code asm+<code text
-ADDR_SEG7_RAW   EQU      0x60000110+.equ ADDR_SEG7_RAW,  0x60000110
  
-                LDR      r0, =ADDR_SEG7_RAW +        ldr     r0,  =ADDR_SEG7_RAW 
-                STRB     r1, [r0, #0]                     ; Write byte of segment data to DS0. +        strb    r1,  [r0, #0]          // Write byte of segment data to DS0. 
-                STRH     r1, [r0, #2]                     ; Write half word of segment data to DS3..2. +        strh    r1,  [r0, #2]          // Write half word of segment data to DS3..2. 
-                STR      r1, [r0, #0]                     ; Write word of segment data to all displays.+        str     r1,  [r0, #0]          // Write word of segment data to all displays.
 </code> </code>
 \\ \\
  
-===== Registers ===== 
- 
-The Registers are read / write. 
- 
-\\ {{ctboard_7seg_raw_reg.svg}} \\ \\ 
- 
-===== Diagram ===== 
- 
-\\ {{ctboard_7seg_raw.svg?700em}} \\ \\ 
  • ctboard/peripherals/7segment_raw.1515922039.txt.gz
  • Last modified: 2018/01/14 09:27
  • by ruan