PicoMite: serial I/O (from MMB4L)


Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5994
Posted: 02:55pm 05 Jan 2022      

Debate-able,

I am in line with Tom. The Setpin command attaches the pins to the UART.
Opening and closing the UART communication should not detach the pins from the UART.
Only way to detach the pins from the UART should be a new Setpin command.

Reason I respond to this "not really trivial" discussion is that I just discovered that our software partner did the same in a machine. And by freeing up the pins the serial communication channel went bazurk (crazy) by a stream of BREAK characters every time they opened and closed the UART communication.(*)

As long as the pins remain attached to the UART they will remain in idle state. Not BREAK.

RESET is a different situation...

Regards,

Volhout

(*) system communicating baudrate x and datatransfer baudrate y was implemented opening and closing the UART communication.