2003-12-11 09:32 AM
2011-05-17 02:57 AM
Purvi,
In short: No. SCON2 is not a bit-addressable SFR unfortunately. This means that there's no way to use the SETB and CLR instructions to access its bits. You can, of course, always just define masks and use those to manipulate the bits. Or you could define macros to make things clearer for yourself. Also for future reference, only SFRs whose memory addresses end in 0 or 8 are bit-addressable. You have to do it the hard way for all the others. Best Regards, phaze4262011-05-17 02:57 AM
Hi,
i am trying to use two UART with different baudrate... What i have seen...is the bits for SCON & SCON2 are named same..SCON is bit accessable...but the same is not with SCON2. Since, in the datasheet SCON & SCON2 bits are same.But the locations are different. I would like to know is there any way to directly access SCON2 bit wise????? Purvi