Extended Duplex help
Chipper
Posts: 5
im just getting into propeller and trying to understand the full duplex object,could someone give me an example code of how to send the series of bytes (0xFF 0x55 0x03 0x00 0x01 0x04 0xF8) at 9800 buad? Help would be greatly appriciated Thankyou
Comments
2) For each byte you want to transmit, use SER.tx(value). In your case, you'd use something like SER.tx($FF), then SER.tx($55), etc.
3) If you're sending a sequence of constant values not including zero, you could use SER.str(stringAddress). That won't work here because you want to transmit a zero byte. Just use a sequence of calls to SER.tx, one per line.
It has a portion that writes some bytes to the serial port and then waits for 1 of 4 characters to be sent from hyperterminal.
Check it out!
Here are the important lines:
Grab a copy of PropCOMM from this thread:
http://forums.parallax.com/showthread.php?p=675748
Here's the core, it's another example...
Oldbitcollector
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Buttons . . . check. Dials . . . check. Switches . . . check. Little colored lights . . . check.
— Calvin, of 'Calvin and Hobbes.