Dear all,
i have a question it maybe answered in lots of different threads.
http://www.picbasic.co.uk/forum/showthread.php?t=10389
http://www.picbasic.co.uk/forum/showthread.php?t=10265
QUESTION: Can i have different baudrates on the 2 EUARTs? How could i change baudrate during start up in one of the EUART port?
Have in mind that i use both of the EUARTs. One for the Display and one for the GPS.
The GPS has a firmware with the following configuration:
Baudrate: 9600 default
Refresh rate: 1hz
On the code i have configured the EUART for 38400, because i set the GPS externally with serial terminal at 38400. But GPS keeps the configs only if a backup battery is presented.
So i came up with this problem.
I need to send the following command first to SET the BAURATE at 38400, but with the EUART at 9600, because at that stage the GPS communicate only at 9600.
Then GPS as i tested i connected successfully, at 38400, but the following command cannot be sent before i change on the fly the EUART at 38400.Code:HSEROUT2 ["$PMTK251,38400*27",13,10] ' 38400 boundrate, check MTK manual configuration.
From the links above, i checked the way you are setting the new baudrate, and tried to do it as well but didnt really worked.Code:HSEROUT2 ["$PMTK220,100*2F",13,10] ' 100(millisecond)=0.1(sec)-->1/0.1= 10Hz




Bookmarks