From 03d3b6f1998f324e6dd5dd61f8f65aed7bed1e04 Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 2 Mar 2024 16:18:50 -0500 Subject: [PATCH] h8_sci: Suppress SCK transition at end of transmit sequence, yet again --- src/devices/cpu/h8/h8_sci.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/devices/cpu/h8/h8_sci.cpp b/src/devices/cpu/h8/h8_sci.cpp index 22bea0c531d..9c6448d64d9 100644 --- a/src/devices/cpu/h8/h8_sci.cpp +++ b/src/devices/cpu/h8/h8_sci.cpp @@ -593,7 +593,7 @@ void h8_sci_device::tx_sync_tick() if(m_tx_clock_counter == 0) { tx_sync_step(); - if(m_clock_mode == INTERNAL_SYNC_OUT) + if(m_clock_mode == INTERNAL_SYNC_OUT && m_tx_state != ST_IDLE) m_cpu->do_sci_clk(m_id, 0); } else if(m_tx_clock_counter == 1 && m_clock_mode == INTERNAL_SYNC_OUT) @@ -605,7 +605,6 @@ void h8_sci_device::tx_sync_step() LOGMASKED(LOG_STATE, "tx_sync_step bit=%d\n", m_tx_bit); if(!m_tx_bit) { m_tx_state = ST_IDLE; - m_tx_bit = 0; clock_stop(CLK_TX); m_cpu->do_sci_tx(m_id, 1); m_ssr |= SSR_TEND;