Isn't DTR a signal controlled by the host (LinuxCNC) rather than the micro?
-----Original Message----- From: Martin Dobbins <[email protected]> Sent: December 4, 2020 1:02 PM To: Enhanced Machine Controller (EMC) <[email protected]> Subject: Re: [Emc-users] USB - Serial question Hi Ken, PJRC's version of Arduino is somewhat different, I wonder if DTR is what you need? If you can read the serial.dtr as shown here, then I'm pretty sure you can hold DTR low until you are ready to send/receive data: https://www.pjrc.com/teensy/td_serial.html Martin ________________________________ Your suggestion sounded great so I did a few tests. I loaded a PCJR Teensy LC (ARM Cortex-M0+) and a genuine Arduinio Leonardo (ATmega32u4) with the standard BLINK program -- <much snippage> > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > > > > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > -- -users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
