HSEROUT on an 08M2

neiltechspec

Senior Member
A quickie question on hserout.

Noting this statement in Manual 2 -

The hserout command is used to transmit serial data from the fixed hardware
serial output pin of the microcontroller. It cannot be used with the serial
download output pin - use the sertxd command in this case.


With - hsersetup B9600_4, %00
How then do I get hserout true data at 9600 baud to work on an 08M2+ ?
Will sertxd output true data at 9600 ?, because it didn't seem to when I tried.

Neil.
 
Last edited:

AllyCat

Senior Member
Hi,
It cannot be used with the serial
download output pin - use the sertxd command in this case.
AFAIK that's an error in the Manual (when applied to the 08M2). HSEROUT can be used with Leg 7 on an 08M2 (or Leg 3 with a suitable POKESFR to the Alternate Pin Function CONtrol register).

Cheers, Alan.
 

hippy

Technical Support
Staff member
Yes; a typo - most likely a copy-paste-edit oversight in copying text from the SEROUT to the HSEROUT command description.

The HSEROUT command works on whichever pin is used for its output when the command is supported.
 

nick12ab

Senior Member
How then do I get hserout true data at 9600 baud to work on an 08M2+ ?
Bits in the mode byte are used to select true or inverted serial. Your mode byte is correct for true serial.

Will sertxd output true data at 9600 ?, because it didn't seem to when I tried.
Sertxd uses a fixed baud rate and polarity (inverted). You can use serout instead on any PICAXE where the Serial Out pin has a port.pin number.
 
Top