Setting serout speed

Wingrider

New Member
Trying to set a 14M serout to transmit at 19200,n,1 .

The best I get is 9600.

I tried

setfreq m8

serout 13,N19200

Is this speed possible with the M14 or do I need to a different chip.
If it is possible what do I need to do to get this speed ?

Any help would be muck appreciated ?
 

g6ejd

Senior Member
You need to be running at 16Mhz to get 19200, check the manual for serout command as it lists the speeds attainable by each part.
 

Goeytex

Senior Member
See Manual 2 - Chart at bottom of page 208.



To transmit at 19200 baud the Picaxe 14M2 processor clock speed must first be set to at least 16 MHz.

setfreq M16
serout 13,N19200_16, ("Hello World")

or

setfreq m32
serout 13,N19200_32,("Hello World")
 
Last edited by a moderator:

jedynakiewicz

Senior Member
Might I suggest that you consult PICAXE MANUAL 2 - Page 208.
This gives the possible baud rates for each clock speed.
You need to run the chip at 16Mhz or better to achieve 19200 baud; only the M2 series will do this; you need a 14M2. See page 221 for the setfreq command.
This speed is also reflected in the syntax of the serout command; N19200_16 if you do get a 14M2 chip.
 
Top