cancel
Showing results for 
Search instead for 
Did you mean: 

UART2 interrupt

babidesai123
Associate II
Posted on December 11, 2003 at 18:32

UART2 interrupt

2 REPLIES 2
jdaniel
Associate II
Posted on May 17, 2011 at 11:57

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,

phaze426
babidesai123
Associate II
Posted on May 17, 2011 at 11:57

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