Which PDFs? Are you sure you're not mixing up serout and sertxd?The pdfs for the 08M2 & 14M2 parts indicate only one valid pin for SerOut. The 08M2 shows C.0 and the 14M2 indicates B.0. Yet the editor doesn't throw an error and the sims run normally if I choose other pins. What gives?
Thanks
No, I'm not mixing it with up SerTxd. Page 10 of Picaxe_Manual1.pdf (Getting Started).Which PDFs? Are you sure you're not mixing up serout and sertxd?
But all the current parts share normal pins with the Serial Out pin (08M2, 14M2, 18M2, 20X2, 28X2, 40X2) except for the 20M2 so you can use the serout command on those pins too.An interesting point CDRIVE makes here. The pin is called SerialOut, but the SEROUT command is not used with it. SERTXD is. I can see how this may be considered ambiguous.
All these pass syntax checking:If that's the case, Nick, why does the Manual say:
"The serout command is used to transmit serial data from an output pin of the
microcontroller. It cannot be used with the serial download output pin - use the
sertxd command in this case."
#picaxe 28x2
serout A.4,N2400,("UUUU")
#picaxe 08m2
serout C.0,N2400,("UUUU")
#picaxe 20x2
serout A.0,N2400,("UUUU")
#picaxe 18m2
serout C.3,N2400,("UUUU")
#picaxe 14m2
serout B.0,N2400,("UUUU")
The way the manual presents it is more contradictory than ambiguous, though I simply love "disambiguification"!If that's the case, Nick, why does the Manual say:
"The serout command is used to transmit serial data from an output pin of the
microcontroller. It cannot be used with the serial download output pin - use the
sertxd command in this case."
Reading further, the Manual is confusing.
For Sertxd "Function" it says:
"Serial output via the serout programming pin"
It should say "serial output programming pin". (Hey, we're using "pin" and not AXEWORLD "leg" - amazing).
I fully realise that this is cleared up under "Information", but some will see "serout" and tie it directly with the Serout command.
Needs a little disambiguification.