[sci.electronics] serial routines for 8051

dougm@pnet51.orb.mn.org (Doug Mcintyre) (07/26/90)

First off, can anyone tell me why the 8048 is used so much in serial
keyboards? I have three extremely different ones around here, and all use some
variant of that line..

I'm looking for some routines for an 8051/8031 that does serial..
I have an extremely weird word size (21 bits) that the usual UART can't
handle, and the normal serial port on the 8051 can't handle..
So has anybody done any serial stuff using the timers on the 8051?

I have an idea of what needs to be done, hook up the data to INT0, and set up
a timer to timeout at the end of one bit cell, so that software could look at
the data line and see if there is a one or a zero there.. But timing is nasty
business..

I'd appreciate any info/routines people could suggest..

UUCP: {rosevax, crash}!orbit!pnet51!dougm                Compuserve: 70611,2215
ARPA: crash!orbit!pnet51!dougm@nosc.mil                        ALPE: DougMac
INET: dougm@pnet51.cts.com                                    GENIE: D.MCINTYRE1