??? 12/17/06 15:17 Read: times |
#129632 - 8051 + RC51Compiler -> sfr unsigned char redefenit |
Hi to all, i'm newbie on 8051 programming, and micro in general, so, excuse me in advance if my question seems silly! :)
I'm doing some exercise on serial communication 8051 and i'm using register SBUF. It is defined with sfr and, as i can read on RC51 compiler manual, by default sfr as char. This is a problem because i have not correct trasmission if i send char from 0x80 and bigger. I tried to typedef sfr as a unsigned char, but my compiler raises an error if i try to redefined its type. Someone can give me the right way to solve my problem? |
Topic | Author | Date |
8051 + RC51Compiler -> sfr unsigned char redefenit | 01/01/70 00:00 | |
First things first | 01/01/70 00:00 | |
Thanks.. | 01/01/70 00:00 | |
One step at a time... | 01/01/70 00:00 | |
uhmmmm | 01/01/70 00:00 | |
unsigned is the default type for char | 01/01/70 00:00 | |
Aside: bad practice | 01/01/70 00:00 | |
Maybe... | 01/01/70 00:00 | |
Aha! | 01/01/70 00:00 | |
Thanks![]() | 01/01/70 00:00 |