Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/12/03 16:02
Read: times


 
#38885 - RE: Reading new SFRs (SDCC and Winbond USB)
Responding to: ???'s previous message
Hello Chris,

I am posting the source of that section. (With another additional sfr this winbond microcontroller has, that doesn't work either)

sfr at 0xCF CHPCON;
...
CHPCON=0xFF;
aux=CHPCON;
printHex(aux);

ASM RESULT:

_CHPCON = 0x00cf
...
; as_usb.c:54: CHPCON=0xFF;
; genAssign
mov _CHPCON,#0xFF
; as_usb.c:55: aux=CHPCON;
; genAssign
mov r2,_CHPCON
; as_usb.c:57: printHex(aux);
; genCall
mov dpl,r2
push ar2
lcall _printHex

LCD RESULT
(printHex writes an hexidecimal number to the lcd):

CF

Thank you,

Xavier

List of 8 messages in thread
TopicAuthorDate
Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
   RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
      RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
         RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
            RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
               RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
                  RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
   Reading new SFRs--> solution            01/01/70 00:00      

Back to Subject List