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 13:09
Read: times


 
#38864 - Reading new SFRs (SDCC and Winbond USB)
Hello,

I am writing the firmware for the W81E381AD (winbond 8052 based microcontroller with a usb controller integrated) but I can't
read its new SFRs for USB when I map them like this (for example):

sfr at 0xE2 RXSTAT; // Endpoint receive status

...

unsigned char aux;

aux=RXSTAT;

But now, aux stores 0xE2 (this is the RXSTAT address) instead of RXSTAT's value. And the same happens with all usb sfr (but it works well with 8052 sfrs).

PS: I use SDCC.

Thank you,

Javier

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