diff options
author | arbee <rb6502@users.noreply.github.com> | 2020-11-29 09:42:30 -0500 |
---|---|---|
committer | arbee <rb6502@users.noreply.github.com> | 2020-11-29 09:42:30 -0500 |
commit | 0f891d1ff9d308fb387dd98a51d2f1510821ebf8 (patch) | |
tree | 470caaea855160af9e43ff22c98c18d2dec14d6f /src | |
parent | 8358f862ea432607dcdc716880d7712731ddabed (diff) |
psr340: add external clock for MIDI UART, fix button matrix read address [R. Belmont]
Diffstat (limited to 'src')
-rw-r--r-- | src/mame/drivers/ympsr340.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mame/drivers/ympsr340.cpp b/src/mame/drivers/ympsr340.cpp index 52c5deb9c8e..350548ee723 100644 --- a/src/mame/drivers/ympsr340.cpp +++ b/src/mame/drivers/ympsr340.cpp @@ -99,7 +99,7 @@ void psr340_state::psr340_map(address_map &map) map(0x600000, 0x600000).lr8(NAME([]() -> uint8_t { return 0x80; })); // FDC status - map(0xffe026, 0xffe026).r(FUNC(psr340_state::matrix_r)); + map(0xffe027, 0xffe027).r(FUNC(psr340_state::matrix_r)); map(0xffe02a, 0xffe02a).w(FUNC(psr340_state::lcd_ctrl_w)); map(0xffe02b, 0xffe02b).w(FUNC(psr340_state::lcd_data_w)); @@ -224,6 +224,9 @@ void psr340_state::psr340(machine_config &config) m_maincpu->set_addrmap(AS_PROGRAM, &psr340_state::psr340_map); m_maincpu->set_addrmap(AS_IO, &psr340_state::psr340_io_map); + // SCI0 is externally clocked at the 31250 Hz MIDI rate + m_maincpu->subdevice<h8_sci_device>("sci0")->set_external_clock_period(attotime::from_hz(31250 * 16)); + KS0066_F05(config, m_lcdc, 0); m_lcdc->set_lcd_size(2, 40); |