ay31015: Fix receiver synchronization at start bit

This commit is contained in:
AJR 2018-03-23 21:02:00 -04:00
parent de1c3df722
commit 42adc3edf7

View File

@ -303,7 +303,7 @@ void ay31015_device::rx_process()
if (!get_si())
{
m_rx_state = START_BIT;
m_rx_pulses = 16;
m_rx_pulses = 15;
}
return;
@ -316,11 +316,12 @@ void ay31015_device::rx_process()
LOG("Receive false start bit\n");
m_rx_state = IDLE;
}
else
LOG("Receive start bit\n");
}
else
if (!m_rx_pulses) // end of start bit
{
LOG("Receive start bit\n");
m_rx_state = PROCESSING;
m_rx_pulses = m_total_pulses;
m_rx_bit_count = 0;