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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/19/02 23:15
Read: times


 
#29401 - RE: PCON.7 and SMOD ??
Use masking and you don't need care about another bits:

    PCON |= 0x80; /* set SMOD*/
to clear SMOD you can use
    PCON &= (~0x80); /* clear SMOD*/
--------
You may also define SMOD bit in your own header file
such way:

#define SMOD_BIT    (0x80)
  or
#define SMOD_BIT    (1<<7)

and in 'C' file use it.

    PCON |= SMOD_BIT; /* set SMOD*/

    PCON &= (~SMOD_BIT); /* clear SMOD*/

Vaclav

List of 8 messages in thread
TopicAuthorDate
PCON.7 and SMOD ??            01/01/70 00:00      
RE: PCON.7 and SMOD ??            01/01/70 00:00      
RE: PCON.7 and SMOD ??            01/01/70 00:00      
RE: PCON.7 and SMOD ??            01/01/70 00:00      
RE: PCON.7 and SMOD ??            01/01/70 00:00      
RE: In addition to what Alfredo said...            01/01/70 00:00      
RE: PCON.7 and SMOD ??            01/01/70 00:00      
RE: In addition to what alen said...            01/01/70 00:00      

Back to Subject List