Serial library RTS/CTS control
hi,
is possible control rts/cts pin of pc serial port using processing language interface max485 chip? else need communicate atmega328p.
is possible control rts/cts pin of pc serial port using processing language interface max485 chip? else need communicate atmega328p.
the hardware serial library (arduino/hardware/arduino/cores/arduino/hardwareserial.cpp) has no support form of hand shaking , control lines.
this isn't surprising, given hardware interfacing 2 wires connected rx , tx. if use usual 6 contact connector, dtr connected reset pin. this way, software can reset board after uploading software, play havoc application if else plays around signal.
if need control lines, have connect them on own. max485 can connect -re , de random digital pin. arduino version of writing byte waits byte finish being written , not use interrupts, can do:
digitalwrite(writeenable, high);
serial.println ("tweedledee");
digitalwrite(writeenable, low);
where writeenable digital output pin of choice connected both -re , de on max458. (to allow that, -re has been given negative logic maxim)
i hope helped.
korman
this isn't surprising, given hardware interfacing 2 wires connected rx , tx. if use usual 6 contact connector, dtr connected reset pin. this way, software can reset board after uploading software, play havoc application if else plays around signal.
if need control lines, have connect them on own. max485 can connect -re , de random digital pin. arduino version of writing byte waits byte finish being written , not use interrupts, can do:
digitalwrite(writeenable, high);
serial.println ("tweedledee");
digitalwrite(writeenable, low);
where writeenable digital output pin of choice connected both -re , de on max458. (to allow that, -re has been given negative logic maxim)
i hope helped.
korman
Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > Serial library RTS/CTS control
arduino
Comments
Post a Comment