Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

blinky asm question

$
0
0

hi,

in the blinky asm example for the LM4F120H5QR i found this:

SYSCTL_RCGC2_GPIOA EQU 0x00000001 ; Clock Port A

; activate clock on porta
    LDR R1, =SYSCTL_RCGC2_R                 
    LDR R0, [R1]                                                         
    ORR R0, R0, #SYSCTL_RCGC2_GPIOA    
    STR R0, [R1] 

why is there no metioning of SYSCTL... in the LM4F120H5QR data sheet ?

And why is there a 0x00000001 in SYSCTL.... it starts with a 0x so its a hexadecimal number, but why all the zeroes? looks more like a binary

greetings

 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>