- 500K baud rate setup
- Posted by Li Tan on June 26th, 2003
Hi, guys, I have a high speed serial port PCI card. We replaced the original
crystal( 14.7456MHz) with the new one 16.000MHz in order to communicate to a
SICK laser scanner with the highest speed 500K. My program is written in c
under Linux. When the machine boots, I setserial -a /dev/ttyS4, and the baud
base is 921600 and divisor is 0; then I setserial /dev/ttyS4 baud_base
1000000 and setserial /dev/ttyS4 spi_cust divisor 2 to set baud rate as
500K.
However my program cannot talk to the laser scanner what do I need to do
more?
Any advice is highly appreciated.
Li
- Posted by Elroy the Seedy Impaler on July 31st, 2003
On Wed, 25 Jun 2003 21:28:50 -0700, "Li Tan" <litan@ou.edu> wrote:
Hmmm...last time I checked my mathematics book, dividing by 0 was a no
no. It tends to return infinite values. If you are writing a 0x00
into the divisor latch, then it will do nothing.
Elroy
- Posted by Tim Mitchell on August 1st, 2003
In article <2rtiivkva3btgqc9mrtanucdu229hte9m0@4ax.com>, Elroy the Seedy
Impaler <elroy@seedy-impaler.com> writes
rate generator is concerned. They normally work as counters.
Could you put a scope on the serial TX line and send out some "U" (0x55)
characters to measure the actual baud rate, then adjust settings by
trial and error until you get the baud rate you want.
--
Tim Mitchell
- Posted by Elroy the Seedy Impaler on August 1st, 2003
On Fri, 1 Aug 2003 09:47:49 +0100, Tim Mitchell
<Tim@sabretechnology.co.uk> wrote:
I'm not so sure that is true, especially for TL16C550 and 750s.
Writing zeros into the divisor latch causes no data to be sent. We've
made this mistake before.
Elroy