Differences

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

Link to this comparison view

Both sides previous revision Previous revision
ctboard:peripherals:led [2022/12/23 11:06] ruanctboard:peripherals:led [2026/06/25 15:13] (current) – [Programming Example] scbj
Line 31: Line 31:
 \\ \\
  
-<code asm+<code text
-ADDR_LED        EQU      0x60000100+.equ ADDR_LED,       0x60000100
  
-                LDR      r0, =ADDR_LED +        ldr     r0,  =ADDR_LED 
-                STRB     r1, [r0, #0]                     ; Write byte of data to LED7..0. +        strb    r1,  [r0, #0]        // Write byte of data to LED7..0. 
-                STRH     r1, [r0, #2]                     ; Write half word of data to LED31..16. */ +        strh    r1,  [r0, #2]        // Write half word of data to LED31..16. */ 
-                STR      r1, [r0, #0]                     ; Write word of data to all LEDs. */+        str     r1,  [r0, #0]        // Write word of data to all LEDs. */
 </code> </code>
 \\ \\
  
  • ctboard/peripherals/led.txt
  • Last modified: 2026/06/25 15:13
  • by scbj