datalogger baud rate
Anyone had any luck changing the baud rate on the datalogger from 9600 to something faster?
I defined these two baud rates
BaudA·· CON "T9600"
Baud·· CON "T19200"
and renamed these functions and changed their Baud to BaudA so I could get the inital commo in 9600 baud mode
····· SendStrA "fbd $9C8000" 'should be 19200 baud
····· SendCharA CR
····· RecvStrA
then used the send/rec functions with the 19200 baud, but it hangs up at the serial commo after the baud change.
Any ideas?
Thanks
Kevin
I defined these two baud rates
BaudA·· CON "T9600"
Baud·· CON "T19200"
and renamed these functions and changed their Baud to BaudA so I could get the inital commo in 9600 baud mode
····· SendStrA "fbd $9C8000" 'should be 19200 baud
····· SendCharA CR
····· RecvStrA
then used the send/rec functions with the 19200 baud, but it hangs up at the serial commo after the baud change.
Any ideas?
Thanks
Kevin
Comments
If you call this subroutine in the initialization code and make it the first command you use with the Datalogger it should change the baud rate. After that any logger commands·must use 19200 as the baud
SEROUT tx, T9600, "S"
SEROUT tx, T9600, "B"
SEROUT tx, T9600, "D"
SEROUT tx, T9600, $9C
SEROUT tx, T9600, $80
SEROUT tx, T9600, $00
SEROUT tx, T9600, $0D
PAUSE 5000
Jeff T.
I'll go try this now
Thanks!
thanks
Thanks,
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.