a question about nigel's tutorial

Status
Not open for further replies.

jijita

New Member
i have a question aboutthe serial communication code
why is it that when you're sending from pc to pic there is no stop bit used and why when you're sending from pic to pc every bit is considered as an entire byte and sent with a start and stop bit
please help
 

Because the stop bit is simply the default condition of the line, the receive routine includes a 'CALL Bit_Delay' at the end, but there's no need to actually read the bit - it's simply to get past the end of the last data bit.
 
what about the pic to pc

when you're sending from pic to pc why are you sending each bit as a byte with a start and stop bit?
 
Re: what about the pic to pc

jijita said:
when you're sending from pic to pc why are you sending each bit as a byte with a start and stop bit?

I don't, each data byte is sent as a byte, preceded by a start bit, and followed by a stop bit, as required for RS232.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…