From 0684d286ad67ef659b8ca07d281b4b48928365b4 Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Mon, 14 Aug 2023 18:18:03 +0700 Subject: mc68681: idle tx lines after transmitter reset --- src/devices/machine/mc68681.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/devices/machine/mc68681.cpp b/src/devices/machine/mc68681.cpp index 2013235ba12..3a3fcfcecf7 100644 --- a/src/devices/machine/mc68681.cpp +++ b/src/devices/machine/mc68681.cpp @@ -1557,9 +1557,15 @@ void duart_channel::write_CR(uint8_t data) case 3: /* Reset channel transmitter */ SR &= ~(STATUS_TRANSMITTER_READY | STATUS_TRANSMITTER_EMPTY); if (m_ch == 0) + { + m_uart->write_a_tx(1); m_uart->clear_ISR_bits(INT_TXRDYA); + } else + { + m_uart->write_b_tx(1); m_uart->clear_ISR_bits(INT_TXRDYB); + } transmit_register_reset(); m_bits_transmitted = 255; m_tx_data_in_buffer = false; -- cgit v1.2.3