[sdiy] Serial Ports

Tom Arnold xyzzy at sysabend.org
Thu Sep 23 19:33:13 CEST 2004


On Thu, Sep 23, 2004 at 07:29:14PM +0200, Ren? Schmitz wrote:
> Its a point to point protocol. I.e. there is only one sender and one (or 
> more) receiver(s) connected to the transmission medium. So nobody can 
> babble into a conversation that is going on. (You have two wires, one 
> for each direction...)

Yes, but a receiver could come into the middle of a conversation and possibly
never sync up.  This is what I'm wondering about... if you you are sending a
constant 8-1-N stream of data and there are no pauses between bytes, how do
you ever sync?  

> As for bit detection, you basically wait for the transition of the start 
> bit, wait half a bit time, and them sample several times to detect the 
> start bit (majority of samples). After that you wait until you're in the 
>  middle of the next bit time, and sample again, repeat that for all 
> remaining bits.

Yeah. Thats the easy part.  Wrote it.  I'm just worried about an edge case
that possibly just doesnt happen.

-- 
 ------------------------------------------------------------------------
 - Tom Arnold -       When I was small, I was in love,                  - 
 - Sysabend   -       In love with everything.                          -
 - CareTaker  -       And now there's only you...                       - 
 --------------         -- Thomas Dolby, "Cloudburst At Shingle Street" -




More information about the Synth-diy mailing list