[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Read full 8-bit character from serial port (reprise)
On Jul 8, 7:30 pm, rtk <oneelkr...@hotmail.com> wrote:
> Thanks! I think this code will be very helpful. I notice that you
> have a comment saying
> that BAUD of 5 is 9600, 6 is 19200 and 7 is 115200. The table lists 7
> as 38400. Is there
> some other trick that gets 115k baud?
Oh, my, yes. You have to switch clock sources to get at a few of the
higher rates. I keep a linear list, but it's used slightly
differently than the table suggests. If a request comes in to clock at
115k, then we shift into overdrive, bypassing the table you're talking
about altogether. And ADTPro only uses 9.6, 19.2 and 115k speeds, so
115k is kind of a special case. The SCC book will make that all
crystal clear. :-)
> Also, I'm assuming that labels
> like GSCMDB corresponds to the SCC_B_CMD label in the code I listed
> above? I looked a bit and didn't see a file that defined those
> labels.
I smooshed the code together from several sources. The labels are
actually defined in a separate constants file, but they correspond to
the ones you posted.