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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/22/04 11:32
Read: times


 
#63118 - Sdata line
Sorry but I am new to the 8051, i am writing a C program which I am going to cross compile to assembly.

I want to read the bit on the serial data line.
basically i want to write;
if((bit on SDL)&0x01)

i read the 8051 manual and noticed that as part of the I2c control register there is a bit called MDI,
is it correct to write:

if((MDI)&0x01)
{
//input bit
}
else
{
//input 0
}


List of 4 messages in thread
TopicAuthorDate
Sdata line            01/01/70 00:00      
   RE: Sdata line            01/01/70 00:00      
      RE: Sdata line            01/01/70 00:00      
   MDI            01/01/70 00:00      

Back to Subject List