how can i apply hsersetup command to have serial comm at 56000baud

paco556

New Member
I read hsersetup can set non common value to communicate via rs232 in this case device is at 56000bauds how can i make the command line with the number it needs to set this baud rate?
I read that at clock on picaxe device running 32mhz needs a number I made the math and gives me a 141 number how can I use it and how the command line looks like?
I use:
hsersetup b141_8, %11
But compiler is saying there is a syntax error.
I want to ecco the 56000 baud from the device be display in 16x2 serial screen, can you help me to do this?
Thanks, any help is more than wellcome.
 

westaust55

Moderator
Hello paco,

Why start a new thread ?
should have continued from here: http://www.picaxeforum.co.uk/showthread.php?29945-how-to-declare-a-baud-rate-56000-on-14m2-or-18

Hippy in the earlier thread gave you a link to this BASIC commands webpage: http://www.picaxe.com/BASIC-Commands/Serial-RS232-Interfacing/hsersetup

For 56k with a 32 MHz clock by 8 MHz external resonator

Code:
#PICAXE 28X2

SETFREQ EM32

SYMBOL b56000_32 = 141  ; can also try 142

hsersetup b56000_32, %11
the value for b56000_32 is 141.85 so in fact closer to 142
 
Top