The 7630 group is a single chip 8-bit microcomputer designed with
CMOS silicon
equipped with a CAN (Controller Area Network) module cir-
Bein
cuit, the microcomputer is suited to drive automotive equipments.
The CAN module complies with CAN specification version 2.0, part
B and allows priority-based messa
In addition to the microcomputers simple instruction set, the ROM,
RAM and I/O addresses are placed in the same memory map to
enable easy pro
The built-in ROM is available as mask ROM or One Time PROM.
For development purposes, emulator- and EPROM-type microcomputers are available as well.
I/O port P0I/OCMOS I/O ports or analog input ports
7
0
1
I/O port P1I /O
0
InputReference volta
Input
Power supplypins; apply 4.0 to 5.5 V to V
Ground pin for A-D converter. Connect to V
and 0 V to V
CC
SS
SS
Reset pin. This pin must be kept at “L” level for more than 2 µs, to enter the reset
state. If the crystal or ceramic resonator requires more time to stabilize, extend the
“L” level period.
Input and output pins of the internal clock
quartz–crystal resonator between the X
source is used, connect it to X
and leave X
IN
enerating circuit. Connect a ceramic or
and X
IN
pins. When an external clock
OUT
open.
OUT
e input pin for A-D converter
CMOS input port or external interrupt input port. The active ed
external interrupts can be selected. This pin will be used as V
ramming of One Time PROM Versions.
pro
e (rising or falling) of
pin during PROM
PP
CMOS I/O port or external interrupt input port. The active edge (rising or falling) of
external interrupts can be selected.
CMOS I/O port or input pin used in the bi-phase counter mode
CMOS I/O port or timer X input pin used for the event counter, pulse width measure-
ment and bi-phase counter mode
/CNTR
P1
5
/PWM
P1
6
P1
7
P2
0/SIN
P21/S
P22/S
P23/S
/URXD
P2
4
/UTXD
P2
5
P2
6/URTS
P27/U
P3
0
P3
/CTX
1
/CRX
P3
2
P3
—P3
3
P4
/KW0—
0
/KW
P4
7
OUT
CLK
RDY
CTS
1
I/O port P2
I/O port P3
4
I/O port P4I /O
7
I/O
I/O
CMOS I/O port or timer Y input pin used for the event counter, pulse width and pulse
period measurement mode
CMOS I/O port or PWM output pin used in the PWM mode of timers 2 and 3
CMOS I/O port
CMOS I/O ports or clock synchronous serial I/O pins
CMOS I/O ports or asynchronous serial I/O pins
CMOS I/O port
CMOS I/O port or CAN transmit data pin
CMOS I/O port or CAN receive data pin
CMOS I/O port
CMOS I/O ports. These ports can be used for key-on wake-up when confi
ured as
inputs.
MITSUBISHI
ELECTRIC
3
PART NUMBERING
g
g
g
Product M37630M 4 T– XXX FP
MITSUBISHI MICROCOMPUTERS
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
e type
Packa
FP: 44P6N-A packa
FS: 80D0 packa
ROM number
Omitted in One Time PROM version (blank) and EPROM version
T: Automotive use
ROM/PROM size
4: 16384 bytes
The first 128 bytes and the last 4 bytes of ROM are reserved areas.
They cannot be used.
e
e
Fig. 3Part numbering
Memory type
M: Mask ROM version
E: EPROM or One Time PROM version
4
MITSUBISHI
ELECTRIC
GROUP EXPANSION
g
MITSUBISHI MICROCOMPUTERS
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Mitsubishi plans to expand the 7630 group as follows:
Memory Type
Support mask ROM, One Time PROM and EPROM versions.
M37630M4T-XXXFPMask ROM version
M37630E4T-XXXFP1638451244P6N-AOne Time PROM version
M37630E4FP(16252)One Time PROM version (blank)
M37630E4FS80D0EPROM version
(P)ROM size (bytes)
ROM size for User ( )
RAM size (bytes)Packa
eRemarks
As of March 1998
MITSUBISHI
ELECTRIC
5
FUNCTIONAL DESCRIPTION
g
g
g
g
g
g
g
MITSUBISHI MICROCOMPUTERS
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Central Processing Unit (CPU)
The core of 7630 group microcomputers is the 7600 series CPU.
This core is based on the standard instruction set of 740 series;
however the performance is improved by allowin
same instructions as that of the 740 series in less cycles. Refer to
the 7600 Series Software Manual for details of the instruction set.
70
to execute the
CPU mode re
CPUM
Processor mode bits (set these bits to “00”)
b1 b0
0 0: Sin
0 1: Not used
1 0: Not used
1 1: Not used
Stack pa
Not used (“0” when read, do not write “1”)
Internal system clock selection bit
Not used (“0” when read, do not write “1”)
e selection bit
0 : 0 pa
1 : 1 pa
0 : φ=f(X
1 : φ=f(X
CPU Mode Register CPUM
The CPU mode register contains the stack page selection bit and
internal system clock selection bit. The CPU mode re
cated to address 0000
ister (address 000016)
le–chip mode
e
e
) divided by 2 (high–speed mode)
IN
) divided by 8 (middle–speed mode)
IN
.
16
ister is allo-
Fig. 5Structure of CPU mode register
6
MITSUBISHI
ELECTRIC
MEMORY
g
g
g
g
MITSUBISHI MICROCOMPUTERS
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Special Function Register (SFR) Area
The special function register (SFR) area contains the registers
to functions such as I/O ports and timers.
relatin
RAM
RAM is used for data storage and for stack area of subroutine calls
and interrupts.
ROM
ROM is used for storing user’s program code as well as the interrupt vector area.
RAM area
RAM size
(byte)
192
256
384
512
640
768
896
1024
1536
2048
Address
XXXX
011F
015F
01DF
025F
02DF
035F
03DF
045F
06DF
085F
16
16
16
16
16
16
16
16
16
16
16
User RAM
Interrupt Vector Area
The interrupt vector area is for storing jump destination addresses
used at reset or when an interrupt is
enerated.
Zero Page
This area can be accessed most efficiently by means of the zero
e addressing mode.
pa
Special Page
This area can be accessed most efficiently by means of the s pecial
The 7630 group has 35 programmable I/O pins and one input pin
ed in five I/O ports (ports P0 to P4). The I/O ports are con-
arran
trolled by the correspondin
ters; each I/O pin can be controlled separately.
When data is read from a port confi
latch’s contents are read instead of the port level. A port confi
port registers and port direction regis-
ured as an output port, the port
ured
MITSUBISHI MICROCOMPUTERS
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
as an input port becomes floatin
written to this port will affect the port latch only; the port remains
.
floatin
Refer to Structure of port- and port direction re
port I/Os (1) and Structure of port I/Os (2).
and its level can be read. Data
isters, Structure of
70
Port Pi re
Pi
Port Pij control bit (j = 0 to 7)
0 : “L” level
1 : “H” level
Note : The control bits corresponding to P10, P35, P36 and P37 are not used
70
Port Pi direction re
PiD
Port Pij direction control bit (j = 0 to 7)
0 : Port confi
1 : Port confi
Note : The direction control bits corresponding to P10, P11, P35, P36 and
Fig. 8Structure of port- and port direction registers
ister (i = 0 to 4) (address 000816 + 2 · i)
(“0” when read, do not write “1”).
ister (i = 0 to 4) (address 000916 + 2 · i)
ured as input
ured as output
P3
are not used (“0” when read, do not write “1”). Port direction re-
7
gisters are undefined when read (write only).
MITSUBISHI
ELECTRIC
9
MITSUBISHI MICROCOMPUTERS
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(1) Ports P0
Data bus
/AN0 to P07/AN
0
Analog input selection
ADC input
(2) Port P11/INT
Interrupt input
Data bus
(3) Port P12/INT
Data bus
Direction
register
Port latch
0
1
Pull-up control bit
Direction
register
Port latch
7
Pull-up control bit
Analog input selection
(4) Port P13/TX
Timer bi-phase mode input
Data bus
0
Pull-up control bit
Port latch
direction
register
(5) Ports P14/CNTR0, P15/CNTR
Pull-up control bit
Direction
register
Data bus
Timer bi-phase mode input
Port latch
(6) Port P16/PWM
Pull-up control bit
PWM output enable
Direction
register
Data bus
Port latch
1
Interrupt input
Fig. 9Structure of port I/Os (1)
PWM output
10
MITSUBISHI
ELECTRIC
MITSUBISHI MICROCOMPUTERS
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(7) Ports P17, P30, P33, P3
Pull-up control bit
Direction
register
IN
Direction
register
Port latch
OUT
Port latch
Pull-up control bit
Direction
register
Port latch
Data bus
(8) Port P20/S
SIO Port Select
Data bus
SIO1 input
(9) Port P21/S
SIO port selection bit
Transmit complete signal
Data bus
4
Pull-up control bit
(12) Ports P24/URXD, P27/U
Transmission or reception* in
Transmit or receive* enable bit
Data bus
progress
Direction
register
Port latch
(13) Ports P25/UTXD, P26/U
Transmission or reception** in
Transmit or receive** enable bit
Data bus
(*) for U
CTS
(**) for U
RTS
progress
Direction
register
Port latch
U
or U
output
TXD
RTS
(14) Port P31/CTX
CAN port selection bit
Direction
register
Data bus
Port latch
CTS
Pull-up control bit
U
RTS
Pull-up control bit
Pull-up control bit
RXD
or U
CTS
input
SIO output
(10) Port P22/S
(11) Port P23/S
CLK
Clock selection bit
Port selection bit
direction
Data bus
SRDY output selection bit
Data bus
Port latch
SIO clock output
RDY
Direction
Port latch
SRDY output
Pull-up control bit
register
Pull-up control bit
register
Fig. 10Structure of port I/Os (2)
External clock input
CTX output
(15) Port P3
/CRX
2
CAN dominant level control bit
Pull-up
/down control bit
Direction
register
Data bus
Port latch
CAN interrupt
CRX input
(16) Ports P40/KW0 to P47/KW
Key-on wake-up control bit
Pull-up
/down control bit
Direction
register
Data bus
Key-on wake-up interrupt
Port latch
7
MITSUBISHI
ELECTRIC
11
MITSUBISHI MICROCOMPUTERS
g
g
g
g
g
g
g
g
g
g
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Port Pull-up/pull-down Function
Each pin of ports P0 to P4 except P11 is equipped with a programmable pull-up transistor. P3
equipped with pro
pull-up function of P0 to P3 can be controlled by the correspondin
Fig. 11Structure of port pull-up/down control regist ers
70
Polarity control register (address 002F16)
PCON
Key-on wake-up polarity control bit
0 : Low level active
1 : Hi
CAN module dominant level control bit
0 : Low level dominant
1 : Hi
Not used (undefined when read)
Fig. 12Structure of polarity control register
h level active
h level dominant
12
MITSUBISHI
ELECTRIC
MITSUBISHI MICROCOMPUTERS
g
g
g
g
g
g
g
g
g
g
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Port Overvoltage Application
When configured as input ports, P1 to P4 may be subjected to over-
e (VI>VCC) if the input current to the applicable port is limited
volta
to the specified values (see “Table 8:”). Use a serial resistor of
appropriate size to limit the input current. To estimate the resistor
value, assume the port volta
Notes:
• Subjectin
Assure to keep V
ports to overvoltage may effect the supply voltage.
CC
e to be VCC at overvoltage condition.
and VSS within the target limits.
• Avoid to subject ports to overvolta
5.5 V.
• The overvolta
the internal port protection circuits has a ne
ports noise immunity. Therefore, careful and intense testin
the tar
“countermeasures a
manual.
• Port P0 must not be subjected to overvolta
e condition causing input current flowing through
et system’s noise immunity is required. Refer to the
ainst noise” of the corresponding users
e causing VCC to rise above
ative effect on the
e conditions.
of
MITSUBISHI
ELECTRIC
13
INTERRUPTS
g
g
g
g
g
g
g
g
g
g
g
g
There are 24 interrupts: 6 external, 17 internal, and 1 software.
Interrupt Control
Each interrupt except the BRK instruction interrupt has both an
interrupt request bit and an interrupt enable bit, and is controlled by
the interrupt disable fla
interrupt request and enable bits are “1” and the interrupt dis-
in
able fla
software. Interrupt request bits can be cleared by software but cannot be set by software. The BRK instruction interrupt and reset cannot be disabled with any fla
except the BRK instruction interrupt and reset. If several interrupt
requests occur at the same time, the interrupt with the hi
ity is accepted first.
is “0”. Interrupt enable bits can be cleared or set by
Interrupt Operation
Upon acceptance of an interrupt, the following operations are automatically performed.
1. The processin
. An interrupt occurs when the correspond-
or bit. The I flag disables all interrupts
hest prior-
being executed is stopped.
MITSUBISHI MICROCOMPUTERS
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
2. The contents of the pro
ister are automatically pushed onto the stack.
re
3. Concurrently with the push operation, the interrupt jump
destination address is read from the vector table into the
ram counter.
pro
4. The interrupt disable fla
request bit is cleared.
Notes on use
When the active edge of an external interrupt (INT0, INT1, CNTR0,
, CWKU or KOI) is changed, the corresponding interrupt
CNTR
1
request bit may also be set. Therefore, take the followin
(1) Disable the external interrupt which is selected.
(2) Chan
(3) Clear the interrupt request bit to “0”.
(4) Enable the external interrupt which is selected.
e the active edge in interrupt edge selection register.
(in the case of CNTR
: Timer Y mode register)
CNTR
1
ram counter and processor status
is set and the corresponding interrupt
sequence.
: Timer X mode register; in the case of
0
14
MITSUBISHI
ELECTRIC
.
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
Table 3: Interrupt vector addresses and priority
MITSUBISHI MICROCOMPUTERS
7630 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Interrupt sourcePriority
Reset (Note 2)
Watchdo
INT
INT
CAN
transmit
timer2
0
1
successful
CAN successful
receive
CAN overrun7
CAN error
passive
CAN error bus off9
CAN wake up10
Timer X11
Timer Y12
Timer 113
Timer 214
Timer 315
0
CNTR
CNTR
1
16
17
UART receive18
UART transmit19
UART transmit
buffer empty
UART receive
error
20
21
Vector Address (Note 1)
h Low
Hi
1
3
4
5
6
8
FFFB
FFF9
FFF7
FFF5
FFF3
FFF1
FFEF
FFED
FFEB
FFE9
FFE7
FFE5
FFE3
FFE1
FFDF
FFDD
FFDB
FFD9
FFD7
FFD5
FFD3
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
FFFA
FFF8
FFF6
FFF4
FFF2
FFF0
FFEE
FFEC
FFEA
FFE8
FFE6
FFE4
FFE2
FFE0
FFDE
FFDC
FFDA
FFD8
FFD6
FFD4
FFD2
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
Interrupt Request Generatin
Conditions
At ResetNon-maskable
At Watchdog timer underflowNon-maskable
At detection of either rising or falling
e of INT0 interrupt
ed
At detection of either rising or falling
e of INT1 interrupt
ed
At CAN module successful
transmission of messa
e
At CAN module successful reception
of messa
e
If CAN module receives message
when receive buffers are full.
When CAN module enters into error
passive state
When CAN module enters into bus
off state
When CAN module wakes up via
CAN bus
At Timer X underflow or overflow
At Timer Y underflow
At Timer 1 underflow
At Timer 2 underflow
At Timer 3 underflow
At detection of either rising or falling
e in CNTR0 input
ed
At detection of either rising or falling
e in CNTR1 input
ed
At completion of UART receiveValid when UART is selected
At completion of UART transmitValid when UART is selected
At UART transmit buffer emptyValid when UART is selected
When UART reception error occurs.Valid when UART is selected
Remarks
External Interrupt
(active ed
e selectable)
External Interrupt
(active ed
e selectable)
Valid when CAN module is
activated and request transmit