View Full Version : Using Snappy API
BitManip
02-22-2008, 01:08 PM
I would like to know what are the standard Baud rate (baudRate) settings that I may insert into the "UARTs" script: "initUart('uartNum','baudRate')" without having to go into special poke functions? Am able to insert any non standard?
Thanks in advance. :)
kbanks
02-22-2008, 01:34 PM
Sorry if my answer was unclear.
Baudrate is strictly a function of the numeric value passed to initUart(uartNum, baudRate).
No extra register "pokes" are needed.
initUart(0,345) would be 345 baud (just giving an example of a non-standard rate)
initUart(0,1200) would be 1200 baud (just to give an example of a standard rate)
You had asked about alternate Parity and Data Bits settings. For THOSE you would have to manually poke() additional registers in your Snappy scripts.
Our "core" code always programs the UARTs for 8N1
Kevin Banks
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.