1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
// license:BSD-3-Clause
// copyright-holders:AJR
/***************************************************************************
Roland MB62H195 gate array
This is one of Roland's several multifunction I/O gate arrays including
built-in address latches and chip select decoders. This one's
particular features include both an LCD data FIFO (write-only) and a
parallel/serial converter for a µPD7001 ADC (the clock for which is
based on an internal oscillator).
***************************************************************************/
#include "emu.h"
#include "mb62h195.h"
//**************************************************************************
// GLOBAL VARIABLES
//**************************************************************************
// device type definition
DEFINE_DEVICE_TYPE(MB62H195, mb62h195_device, "mb62h195", "Roland MB62H195 I/O")
//**************************************************************************
// DEVICE IMPLEMENTATION
//**************************************************************************
//-------------------------------------------------
// mb62h195_device - constructor
//-------------------------------------------------
mb62h195_device::mb62h195_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
: device_t(mconfig, MB62H195, tag, owner, clock)
, m_lc_callback(*this)
, m_r_callback(*this)
, m_t_callback(*this)
, m_da_callback(*this)
, m_dc_callback(*this)
, m_sout_callback(*this)
, m_sck_callback(*this)
, m_sin_callback(*this)
, m_adc_callback(*this)
{
}
//-------------------------------------------------
// device_resolve_objects - resolve objects that
// may be needed for other devices to set
// initial conditions at start time
//-------------------------------------------------
void mb62h195_device::device_resolve_objects()
{
m_lc_callback.resolve_safe();
m_r_callback.resolve_safe(0xff);
m_t_callback.resolve_safe();
m_da_callback.resolve_safe();
m_dc_callback.resolve_safe();
m_sout_callback.resolve_safe();
m_sck_callback.resolve_safe();
m_sin_callback.resolve_safe(1);
m_adc_callback.resolve_safe();
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void mb62h195_device::device_start()
{
}
|