Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 2nd July 2004, 06:09 AM   (permalink)
Experienced Member
jijita is on a distinguished road
Default a question about nigel's tutorial

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
jijita is offline   Reply With Quote
Old 2nd July 2004, 06:26 AM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default Re: a question about nigel's tutorial

Quote:
Originally Posted by jijita
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.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 2nd July 2004, 06:06 PM   (permalink)
Experienced Member
jijita is on a distinguished road
Default 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?
jijita is offline   Reply With Quote
Old 2nd July 2004, 09:03 PM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default Re: what about the pic to pc

Quote:
Originally Posted by jijita
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.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 05:51 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.