Picaxe 8M Serin inversion

Callum

New Member
Hi all,
I am trying to program a picaxe 08M to receive serial data at N4800. Whenever I try to program this (using an otherwise correct program) programming editor says that N4800 is an unknown symbol. In fact any baud rate with N or T in front of it will cause that error in the programming editor.

I have used these commands this way before with success but it seems as though the latest prog. editor will not allow it. Can anyone shed light on the matter?
 

Dippy

Moderator
Basic manual says:
"4800 is only available on X parts"

I've just tried slower Ns and Ts on 08M. Perfect.
Sorry, I can't think what else can be going wrong.
 

hippy

Ex-Staff (retired)
That's correct, only N300, N600, N1200 and N2400 ( and the same Txxxx ) are accepted for an 08M, and those are the baud rates available at 4MHz.

If you run the 08M at 8MHz using 'SETFREQ M8' the baud rate names don't change but the baud rates you specify will be doubled, hence N2400 at 8MHz is actually N4800 baud. Here's a simple serial echoing program ...<code><pre><font size=2 face='Courier'> SETFREQ M8 ' Set 8MHz operation
SerialEcho:
SERIN 1,N2400,b0 ' Read char at 4800 baud
SEROUT 2,N2400,(b0) ' Send char at 4800 baud
GOTO SerialEcho </font></pre></code>

Edited by - hippy on 09/09/2006 12:11:17
 
Top