Two-WireMode:DTRControlledwithEcho
Youcanusethismodeinhalf-duplexsystemswhereyouneedtocontrol
thetransmitterprogrammatically.IntheDTR-with-echomode,the
transmitteristri-statedwhentheDTRsignaloftheUART(Universal
AsynchronousReceiver/Transmitter)isunasserted.Totransmit,your
applicationfirstmustenablethetransmitterbyassertingDTR.Afterthe
dataisfullytransmitted,yourapplicationunassertsDTRtodisablethe
transmitter.Becausethereceiverisalwaysenabledinthismode,you
receivepacketsnotonlyfromotherdevices,butalsoyourtransmitter.
Thus,yourreceiverechoesalldatayoutransmit.