Sending 0x8 on uart


hi,

its regarding vnding machine protocol, protocol says master has send reset signal 08h peripheral via uart. confused on send on uart, need send ascii equivalent of 0x8 i.e '0' first ' & next byte '8'.



pseudocode
while(txempty)
  *thr = 0x30; //'0'

while(txempty)
*thr = 0x38; //'8';

does peripheral 0x8 @ receiver.please guide.

sthwk

quote
do need send ascii equivalent of 0x8 i.e '0' first ' & next byte '8'.

no use:-
code: [select]
serial.write(0x08);


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Sending 0x8 on uart


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

listen to event