I use a picaxe to talk to a device using the serial port,
a typical command would be sertxd (27,88,64)
This sends the decimal numbers 27 then 88 then 64 out the serial port. I can read this in Hex on a datascope in hex as 1B then 58 then 40. OK all works fine.
This code is actually escape followed by two number values.
I wanted to connect the device direct to PC comm port and use the Prog editor terminal to send codes directly I could not get the same codes generated.
When I type in 27 to output buffer and click send I get 32 then 37 on the datascope connected to comms.
sililarly 88 gives 38 then 38 and 64 gives 36 then 34.
If I type in the hex values for 27 ie 1B it gives me 31 then 42
Basically I want to be able to put in manually via the editor a few test commands that would work as sertxd does.
Could anyone please explain what is happening ???? Thanks
a typical command would be sertxd (27,88,64)
This sends the decimal numbers 27 then 88 then 64 out the serial port. I can read this in Hex on a datascope in hex as 1B then 58 then 40. OK all works fine.
This code is actually escape followed by two number values.
I wanted to connect the device direct to PC comm port and use the Prog editor terminal to send codes directly I could not get the same codes generated.
When I type in 27 to output buffer and click send I get 32 then 37 on the datascope connected to comms.
sililarly 88 gives 38 then 38 and 64 gives 36 then 34.
If I type in the hex values for 27 ie 1B it gives me 31 then 42
Basically I want to be able to put in manually via the editor a few test commands that would work as sertxd does.
Could anyone please explain what is happening ???? Thanks