Boo0ns / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Serial.end() returns before the transmit pin is available for other uses. #500

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Serial.print() followed by a Serial.end()
2.Then toggle another pin.
3.Look at the TX pin and the other pin on a scope.

What is the expected output? What do you see instead?

The other pin gets toggled before the transmission is done.  We probably need 
to use the transmit complete interrupt to check for the end of the transmission 
(i.e. the byte has been shifted out of the shift register).

Please use labels and text to provide additional information.

Original issue reported on code.google.com by dmel...@gmail.com on 8 Mar 2011 at 3:06

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 2 Dec 2011 at 9:48