axe 210 connect

ernio

New Member
I've tried Initial Setup Procedure and the Xbee modules only work at 9600.
Then I've tried Communications Test 1 – Ping Test at 9600 and it works.
Finally I've tried Communications Test 2 – PICAXE to PC Test and oly get garbage (incomprensible simbols).
My Picaxe is 18A. After same reading I've supposed if I wrote the next program:
Code:
symbol TAB = 9
init: 
setfreq m8 
high 7
pause 100
serout 7, T9600, ("Light",TAB,"Temp",CR,LF)
main: readadc 0,b0
serout 7, T9600, ( #b0,TAB,#b1,CR,LF)
pause 1000
goto main
It could work. But the editor shows the next:
Code:
serout 7, T9600, ("Light",TAB,"Temp",CR,LF)
Error: Unknow symbol! -  T9600
I'm very confused. According to
http://www.picaxeforum.co.uk/showthread.php?t=9780&highlight=2400+4800+9600+19200
it seems pausible.

Thanks
 
Last edited:

hippy

Ex-Staff (retired)
To get 9600 baud from a PICAXE-18A or 18X use "SETFREQ M8" then T4800 ( or N4800 ) as the baud rate in SEROUT commands.
 

ernio

New Member
To get 9600 baud from a PICAXE-18A or 18X use "SETFREQ M8" then T4800 ( or N4800 ) as the baud rate in SEROUT commands.
Thank you.
The "Setfreq m8" was already written (3. line). Written T4800 the error is the same:
Code:
serout 7, T4800, ("Light",TAB,"Temp",CR,LF)
            ^

Error: Unknown symbol! -  T4800
Sorry to bother you.
Thanks again
 
Last edited:

eclectic

Moderator
@Ernio.
Please try this program, and see what happens.

Code:
symbol TAB = 9
init: 
setfreq m8 
high 7
pause 100
SEROUT 7,t4800, ("Light",TAB,"Temp",CR,LF)

main: readadc 0,b0
serout 7,t4800, ( #b0,TAB,#b1,CR,LF)
pause 1000
goto main
e

Added.
Prog syntax checks for 18X.
NOT 18A.
 
Last edited:

ernio

New Member
I just read your added and it's true, it works supposing that the chip is 18X. It seems that I need to change the chip.
Thanks
 
Last edited:

hippy

Ex-Staff (retired)
Sorry, my mistake. The 18A supports the SETFREQ M8 but not 4800 baud operation. For 9600 baud you need to use an 18X, SETFREQ M8, and SEROUT with T4800 or N4800.
 
Top