The 3819 group is a 8-bit microcomputer based on the 740 family
core technology.
The 3819 group has a flourescent display automatic display circuit
and an 16-channel 8-bit A-D converter as additional functions.
The various microcomputers in the 3819 group include variations
of internal memory size and packaging. For details, refer to the
section on part numbering.
For details on availability of microcomputers in the 3819 group, refer to the section on group expansion.
Mask ROM version
Mask ROM version
Mask ROM version
1024
100P6S-A
100P6P-E
Mask ROM version
Mask ROM version
1536
100P6S-A
100D0
One Time PROM version
One Time PROM version (blank)
EPROM version
Mask ROM version
2048
100P6S-A
100D0
One Time PROM version
One Time PROM version (blank)
EPROM version
6
MITSUBISHI MICROCOMPUTERS
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
FUNCTIONAL DESCRIPTION
Central Processing Unit (CPU)
The 3819 group uses the standard 740 family instruction set. Refer to the table of 740 family addressing modes and machine
instructions or the 740 Family Software Manual for details on the
instruction set.
Machine-resident 740 family instructions are as follows:
The FST, SLW instruction cannot be used.
The MUL, DIV, WIT and STP instruction can be used.
b7
b0
CPU mode register
(CPUM (CM) : address 003B
CPU Mode Register
The CPU mode register is allocated at address 003B16. The CPU
mode register contains the stack page selection bit and the internal system clock selection bit.
The 256 bytes from addresses 000016 to 00FF16 are called the
zero page area. The internal RAM and the special function registers (SFR) are allocated to this area.
The zero page addressing mode can be used to specify memory
and register addresses in the zero page area. Access to this area
with only 2 bytes is possible in the zero page addressing mode.
Special page
The 256 bytes from addresses FF0016 to FFFF16 are called the
special page area. The special page addressing mode can be
used to specify memory addresses in the special page area. Access to this area with only 2 bytes is possible in the special page
addressing mode.
16
0000
RAM
RO
M
0040
010016
XXXX
044016
0F00
0F1F16
0F80
0FDF16
YYYY
ZZZZ
FF00
FFDC
FFFE
FFFF
SFR area
16
16
Reserved area
Not used
16
RAM area for serial I/O automatic transfer
Not used
16
RAM area for FLD automatic display
Not used
16
Reserved ROM area
(common ROM area,128 bytes)
16
16
16
Interrupt vector area
16
16
Reserved ROM area
Zero
page
Special
page
Fig. CA-1 Memory map
8
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
000A
000B
000C
000D
000E
000F
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
001A
001B
001C
001D
001E
001F
16
Port P0 (P0)
16
16
Port P1 (P1)
16
16
Port P2 (P2)
16
Port P2 direction register (P2D)
16
Port P3 (P3)
16
16
Port P4 (P4)
16
Port P4 direction register (P4D)
Port P5 (P5)
16
Port P5 direction register (P5D)
16
Port P6 (P6)
16
Port P6 direction register (P6D)
16
Port P7 (P7)
16
Port P7 direction register (P7D)
16
Port P8 (P8)
16
Port P8 direction register (P8D)
16
16
Port P9 (P9)
16
16
Port PA (PA)
16
Port PA direction register (PAD)
Port PB (PB)
16
16
Port PB direction register (PBD)
Serial I/O automatic transfer data pointer (SIODP)
16
16
Serial I/O1 control register (SIO1CON)
16
Serial I/O automatic transfer control register (SIOAC)
16
Serial I/O1 register (SIO1)
Serial I/O automatic transfer interval register (SIOAI)
16
16
Serial I/O2 control register (SIO2CON)
16
Serial I/O3 control register (SIO3CON)
16
Serial I/O2 register (SIO2)
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
002A
002B
002C
002D
002E
002F
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
003A
003B
003C
003D
003E
003F
MITSUBISHI MICROCOMPUTERS
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
16
Timer 1 (T1)
Timer 2 (T2)
16
Timer 3 (T3)
16
Timer 4 (T4)
16
Timer 5 (T5)
16
Timer 6 (T6)
16
Serial I/O3 register (SIO3)
16
Timer 6 PWM register (T6PWM)
16
Timer 12 mode register (T12M)
16
Timer 34 mode register (T34M)
16
16
Timer 56 mode register (T56M)
16
D-A conversion register (DA)
16
AD-DA control register (ADCON)
16
A-D conversion register (AD)
16
16
Interrupt interval determination register (IID)
16
Interrupt interval determination control register (IIDCON)
16
16
Port P0 segment/digit switch register (P0SDR)
Port P2 digit/port switch register (P2DPR)
FLD data pointer (FLDDP)
Zero cross detection control register (ZCRCON)
16
Interrupt edge selection register (INTEDGE)
16
CPU mode register (CPUM)
16
Interrupt request register 1 (IREQ1)
16
Interrupt request register 2 (IREQ2)
16
Interrupt control register 1 (ICON1)
16
16
Interrupt control register 2 (ICON2)
Fig. CA-2 Memory map of special function register (SFR)
9
MITSUBISHI MICROCOMPUTERS
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
I/O PORTS
Direction Registers
The 3819 group has 54 programmable I/O pins arranged in 8 I/O
ports (ports P24–P27, P41–P44, P46, P47, P5–P8, PA, and PB).
The I/O ports have direction registers which determine the input/
output direction of each individual pin. Each bit in a direction register corresponds to one pin, each pin can be set to be input or
output.
When “0” is written to the bit corresponding to a pin, that pin becomes an input pin. When “1” is written to that bit, that pin
becomes an output pin.
If data is read from a pin which is set for output, the value of the
port latch is read, not the value of the pin itself. A pin which is set
for input the value of the pin itself is read because the pin is in
floating state. If a pin set for input is written to, only the port latch
is written to and the pin remains floating.
High-breakdownvoltage P-channel
open-drain output
with pull-down
resistor
High-breakdownvoltage P-channel
open-drain output
with pull-down
resistor
High-breakdownvoltage P-channel
open-drain output
with pull-down
resistor
TTL level input
CMOS 3-state output
High-breakdownvoltage P-channel
open-drain output
with pull-down
resistor
CMOS compatible
input level
CMOS compatible
input level
CMOS 3-state output
High-Breakdown-Voltage Output Ports
The 3819 group microprocessors have 7 ports with high-breakdown-voltage pins (ports P0, P1, P20–P23, P3, P8, P9, PA). The
high-breakdown-voltage ports have P-channel open-drain output
with VCC –40 V of breakdown voltage.
Each pin in ports P0, P1, P20–P23, P3, and P9 has an internal
pull-down resistor connected to VEE. Ports P8 and PA have no internal pull-down resistors, so that connect an external resistor to
each port. At reset, the P-channel output transistor of each port
latch is turned off, so it becomes VEE level (“L”) by the pull-down
resistor.
Writing “1” (weak drivability) to bit 7 of the FLDC mode register 1
(address 003616) shows the rising transition of the output transistors for reducing transient noise. At reset, bit 7 of the FLDC mode
register 1 is set to “0” (strong drivability).
FLDC mode register 1
FLD automatic display function
FLD automatic display function
FLD automatic display function
FLD automatic display function
External interrupt
input
Zero cross detection circuit input
(P45)
Timer output
FLDC mode register 2
Port P0
segment/digit
switch register
Note : Make sure that the input level at each pin is either 0 V or VCC during execution of the STP instruction. When an input level is at an intermediate poten-
tial, a current will flow from V
Port P5
Port P6
Port P7
Port P8
Port P9
Port PA
Port PB
Input/output,
individual bits
Output
Input/output,
individual bits
Input/output,
individual bits
CC to VSS through the input-stage gate.
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
High-breakdown-
voltage P-channel
open-drain output
with pull-down
resistor
High-breakdownvoltage P-channel
open-drain output
with pull-down
resistor
✽ : High-breakdown-voltage P-channel transistor
Note: The dimmer signal sets the Toff timing.
Fig. UA-2 Port block diagram (1)
Data bus
Blanking signal
for key-scan
Data bus
Shift signal to next stage
3
Direction
register
Port latch
Dimmer signal
Port latch
(Note)
✽
V
EE
12
(5) Ports P3, P9
Local data bus
Data bus
MITSUBISHI MICROCOMPUTERS
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Dimmer signal
(Note)
Port latch
✽
V
EE
(6) Ports P40, P4
(7) Ports P4
5
2
–P44, P62, P6
(8) Ports P46, P47, P6
Data bus
0
, INT1 interrupt input
INT
Zero cross
detection
circuit
input
5
)
(only P4
3
Direction
register
Data bus
1
Port latch
2
–INT4 interrupt input
INT
0
,CNTR1 input
CNTR
Timer 1 output selection bit
Timer 3 output selection bit
Timer 6 output selection bit
Direction
register
✽ : High-breakdown-voltage P-channel transistor
Note: The dimmer signal sets the Toff timing.
Fig. UA-3 Port block diagram (2)
Data bus
Port latch
Timer 1 output
Timer 3 output
Timer 6 output
13
MITSUBISHI MICROCOMPUTERS
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(9) Ports P50, P54, P6
(10) Ports P51, P52, P55, P56, P65, P6
(11) Ports P53, P57, P6
4
Data bus
Data bus
7
Direction
register
Port latch
6
P-channel output disable signal
Output OFF control signal
Serial I/O port selection bit
Direction
register
Port latch
OUT
or S
CLK
S
S
RDY
output enable bit
Direction
register
Serial I/O input
A-D conversion input
Analog input pin selection bit
Serial clock input
(only P52, P56, P66)
A-D conversion input
Analog input pin selection bit
(12) Port P7
Fig. UA-4 Port block diagram (3)
Data bus
Port latchData bus
Serial ready output
CLK
or S
A-D conversion input
Direction
register
Port latch
A-D conversion input
CS input
(only P67)
Analog input pin selection bit
Analog input pin selection bit
14
MITSUBISHI MICROCOMPUTERS
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(13) Ports P8, PA
(14) Port PB0
Local
data bus
Data bus
Data bus
S/P switch register
Directionregister
Port latch
C switch
Port X
bit
Direction
register
Port latch
Dimmer signal
(Note)
Port PB
rea
d
Oscillation circuit
1
Port XC switch bit
✽
(15) Port PB1
(16) Port PB2
✽ : High-breakdown-voltage P-channel transistor
Note: The dimmer signal sets the Toff timing.
Data bus
Data bus
C switch
Port X
bit
Direction
register
Port latch
Sub-clock generating circuit input
Direction
register
Port latch
D-A conversion output
D-A output enable bit
Fig. UA-5 Port block diagram (4)
15
MITSUBISHI MICROCOMPUTERS
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
INTERRUPTS
Interrupts occur by 20 sources: 5 external, 14 internal, and 1 software.
Interrupt Control
Each interrupt is controlled by an interrupt request bit, an interrupt
enable bit, and the interrupt disable flag except for the software interrupt set by the BRK instruction. An interrupt occurs if the
corresponding interrupt request and enable bits are “1” and the interrupt disable flag is “0”.
Interrupt enable bits can be set or cleared by software.
Interrupt request bits can be cleared by software, but cannot be
set by software.
The BRK instruction cannot be disabled with any flag or bit.
The I (interrupt disable) flag disables all interrupts except the BRK
instruction interrupt.
2 : Reset function in the same way as an interrupt with the highest priority.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Vector Addresses (Note 1)
High
FFFD16
FFFB16
FFF916
FFF716
FFF516
FFF316
FFF116
FFEF16
FFED16
FFEB16
FFE916
FFE716
FFE516
FFE316
FFE116
FFDF16
FFDD16
Low
FFFC16
FFFA16
FFF816
FFF616
FFF416
FFF216
FFF016
FFEE16
FFEC16
FFEA16
FFE816
FFE616
FFE416
FFE216
FFE016
FFDE16
FFDC16
Interrupt Operation
When an interrupt is received, the contents of the program counter
and processor status register are automatically stored into the
stack. The interrupt disable flag is set to inhibit other interrupts
from interfering. The corresponding interrupt request bit is cleared
and the interrupt jump destination address is read from the vector
table into the program counter.
Notes on Use
When the active edge of an external interrupt (INT0 to INT4) is
changed or when switching interrupt sources in the same vector
address, the corresponding interrupt request bit may also be set.
Therefore, please take following sequence;
(1) Disable the external interrupt which is selected.
(2) Change the active edge.
(3) Clear the interrupt request bit which is selected to “0”.
(4) Enable the external interrupt which is selected.
Interrupt Request
Generating Conditions
At reset
At detection of either rising or
falling edge of INT0 input
At detection of either rising or
falling edge of INT1/ZCR input
At detection of either rising or
falling edge of INT2 input
At 8-bit counter overflow
At completion of data transfer
At completion of the last data
transfer
At completion of data transfer
At completion of data transfer
At timer 1 underflow
At timer 2 underflow
At timer 3 underflow
At timer 4 underflow
At timer 5 underflow
At timer 6 underflow
At detection of either rising or
falling edge of INT3 input
At detection of either rising or
falling edge of INT4 input
At completion of A-D conversion
At falling edge of the last digit
immediately before blanking
period starts
At rising edge of each digit
At BRK instruction execution
External interrupt (active edge
selectable)
External interrupt (active edge
selectable)
External interrupt (active edge
selectable)
Valid when interrupt interval
determination is operating
Valid when serial I/O ordinary
mode is selected
Valid when serial I/O automatic
transfer mode is selected
Valid when serial I/O2 is selected
Valid when serial I/O3 is selected
STP release timer underflow
External interrupt (active edge
selectable)
Valid when INT4 interrupt is
selected
External interrupt (active
edge selectable)
INT
Remote control/counter overflow
interrupt request bit
Serial I/O1 interrupt request bit
Serial I/O automatic transfer
interrupt request bit
Serial I/O2 interrupt request bit
Serial I/O3 interrupt request bit
Timer 1 interrupt request bit
Timer 2 interrupt request bit
Timer 3 interrupt request bit
Timer 4 interrupt request bit
Timer 5 interrupt request bit
Timer 6 interrupt request bit
INT
3
interrupt request bit
INT
4
interrupt request bit
AD conversion interrupt request bit
FLD blanking interrupt request bit
FLD digit interrupt request bit
Not used (returns “0” when read)
16
)
b7
b0
Interrupt control register 1
(ICON1 : address 003E
0
interrupt enable bit
INT
1
/ZCR interrupt enable bit
INT
INT
2
interrupt enable bit
Remote control/counter overflow
interrupt enable bit
Serial I/O1 interrupt enable bit
Serial I/O automatic transfer
interrupt enable bit
Serial I/O2 interrupt enable bit
Serial I/O3 interrupt enable bit
Timer 1 interrupt enable bit
Timer 2 interrupt enable bit
Fig. DD-2 Structure of interrupt-related registers
b7
16
)
b0
Interrupt control register 2
(ICON2 : address 003F
16
)
Timer 3 interrupt enable bit
Timer 4 interrupt enable bit
Timer 5 interrupt enable bit
Timer 6 interrupt enable bit
INT
3
interrupt enable bit
4
interrupt enable bit
INT
AD conversion interrupt enable bit
FLD blanking interrupt enable bit
FLD digit interrupt enable bit
Not used (returns “0” when read)
(do not write “1” to this bit)
0 : Interrupts disabled
1 : Interrupts enabled
17
TIMERS
The 3819 group has 6 built-in timers: timer 1, timer 2, timer 3,
timer 4, timer 5, and timer 6.
Each timer has the 8-bit timer latch. The timers count down.
Once a timer reaches 0016, at the next count pulse the contents of
each timer latch is loaded into the corresponding timer, and sets
the corresponding interrupt request bit to “1”.
The count can be stopped by setting the stop bit of each timer to
“1”. The internal clock φ can be set to either the high-speed mode
or low-speed mode with the CPU mode register. At the same time,
timer internal count source is switched to either f(XIN) or f(XCIN).
Timer 1 and Timer 2
The count sources of timer 1 and timer 2 can be selected by setting the timer 12 mode register. A rectangular waveform of timer 1
underflow signal divided by 2 is output from the P46/T1OUT pin.
The waveform polarity changes each time timer 1 overflows. The
active edge of the external clock CNTR0 can be switched with the
bit 6 of the interrupt edge selection register.
At reset or when executing the STP instruction, all bits of the timer
12 mode register are cleared to “0”, timer 1 is set to “FF16”, and
timer 2 is set to “0116”.
MITSUBISHI MICROCOMPUTERS
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Timer 3 and Timer 4
The count sources of timer 3 and timer 4 can be selected by setting the timer 34 mode register. A rectangular waveform of timer 3
underflow signal divided by 2 is output from the P47/T3OUT pin.
The waveform polarity changes each time timer 3 overflows.
The active edge of the external clock CNTR1 can be switched with
the bit 7 of the interrupt edge selection register.
Timer 5 and Timer 6
The count sources of timer 5 and timer 6 can be selected by setting the timer 56 mode register.
A rectangular waveform of timer 6 underflow signal divided by 2 is
output from the P61/PWM pin. The waveform polarity changes
each time timer 6 overflows.
Timer 6 PWM Mode
Timer 6 can output a rectangular waveform with duty cycle n/(n +
m) from the P61/PWM pin by setting the timer 56 mode register
(refer to fig. FB-3). The n is the value set in timer 6 latch (address
002516) and m is the value in the timer 6 PWM register (address
002716). If n is “0”, the PWM output is “L”, if m is “0”, the PWM output is “H”(n=0 is prior than m=0). In the PWM mode, interrupts
occur at the rising edge of the PWM output.
18
Loading...
+ 42 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.