Previous 199869 Revisions Next

r31523 Tuesday 5th August, 2014 at 22:20:49 UTC by hap
had a look at the datasheet, the dumps look fine to me
[src/emu/machine]rp5h01.c rp5h01.h

trunk/src/emu/machine/rp5h01.c
r31522r31523
11/***************************************************************************
22
3    RP5H01 - Ricoh 64x1bit PROM with 6/7-bit counter
3    RP5H01 - Ricoh 64x1bit(+8bit) PROM with 6/7-bit counter
44
5    TODO:
6    - follow the datasheet better (all dumps presumably needs to be redone
7      from scratch?)
5    In reality, PROM data is 72bits (64 + 8bit 'dummy'). In 7-bit counter mode,
6    from 64 to 127 (%1000000 to %1111111), the dummy bits are read repeatedly,
7    with a mask of %1010111. For example if the 8 dummy bits are $7c,
8    bits 64 to 127 are read as $7c $7c $00 $00 $7c $7c $00 $00.
9    To simplify this, our emulation expects 'overdumps', 128bits total.
810
911***************************************************************************/
1012
r31522r31523
3941
4042void rp5h01_device::device_start()
4143{
44   assert(region()->bytes() == 0x10);
4245   m_data = *region();
4346
4447   /* register for state saving */
r31522r31523
5861   m_counter = 0;
5962   m_counter_mode = COUNTER_MODE_6_BITS;
6063   m_enabled = 0;
61   m_old_reset = -1;
64   m_old_reset = 0;
6265   m_old_clock = 0;
6366}
6467
trunk/src/emu/machine/rp5h01.h
r31522r31523
11/***************************************************************************
22
3    RP5H01 - Ricoh 64x1bit PROM with 6/7-bit counter
3    RP5H01 - Ricoh 64x1bit(+8bit) PROM with 6/7-bit counter
44
55****************************************************************************
66                      ___________
77            DATA   1 |*          | 8  COUNTER OUT
8                     |           |       
8                     |           |
99         _CE/Vpp   2 |   RP5H01  | 7  RESET
10                     |   RF5H01  |       
10                     |   RF5H01  |
1111             Vcc   3 |           | 6  DATA CLOCK
12                     |           |       
12                     |           |
1313             GND   4 |___________| 5  TEST
1414
1515***************************************************************************/

Previous 199869 Revisions Next


© 1997-2024 The MAME Team