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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/11/09 08:52
Read: times


 
#168307 - Waiting for destruction
Responding to: ???'s previous message
So you effectively have this:

temp_bit = count_bit_time(1); //count the transmission time for bit '1'

unsigned int count_bit_time( bit digit)    /* digit==1*/
{
        ...
        RXD = 1;                /* configure as an input pin */
        ...
        RXD = ~digit;           /* pull RXD low so nothing can make it high anymore */
        ...
        while (RXD != digit);   /* wait until stronger hardware destroys this pin by pulling it high */
        ...
        while (RXD == digit);   /* hopefully never reached */
        ...
}
 


List of 7 messages in thread
TopicAuthorDate
Serial Auto Baud Rate Detection            01/01/70 00:00      
   what is the purpose of this line            01/01/70 00:00      
      Function Calls            01/01/70 00:00      
         Waiting for destruction            01/01/70 00:00      
            Re:Waiting for destruction - Suicidal Move!            01/01/70 00:00      
   Autobauding            01/01/70 00:00      
   Why must it be in 'C'?            01/01/70 00:00      

Back to Subject List