heathkit/h8.cpp: Fixed frequencies for 2 millisecond interrupt and speaker. (#11489)

This commit is contained in:
Mark Garlanger 2023-08-17 12:39:59 -05:00 committed by GitHub
parent bc289d812c
commit 2572e82fbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,6 +105,11 @@ private:
bool m_cassbit = 0;
bool m_cassold = 0;
// clocks
static constexpr XTAL H8_CLOCK = XTAL(12'288'000) / 6; // 2.048 MHz
static constexpr XTAL H8_BEEP_FRQ = H8_CLOCK / 2048; // 1 kHz
static constexpr XTAL H8_IRQ_PULSE = H8_BEEP_FRQ / 2;
required_device<i8080_cpu_device> m_maincpu;
required_device<i8251_device> m_uart;
required_device<cassette_image_device> m_cass;
@ -118,11 +123,6 @@ private:
};
#define H8_CLOCK (XTAL(12'288'000) / 6)
#define H8_BEEP_FRQ (H8_CLOCK / 1024)
#define H8_IRQ_PULSE (H8_BEEP_FRQ / 2)
TIMER_DEVICE_CALLBACK_MEMBER(h8_state::h8_irq_pulse)
{
if (BIT(m_irq_ctl, 0))