The 7536 Group is the 8-bit microcomputer based on the 740 family
core technology.
The 7536 Group has a USB, 8-bit timers, and an A-D converter, and
is useful for an input device for personal computer peripherals.
42SIM...................................... 42-pin shrink ceramic PIGGY BACK
MITSUBISHI MICROCOMPUTERS
7536 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
ROM size
(Byte)
16K
8K
M37536E8
M37536M4
0
128
256384
RAM size
(Byte)
Note. Products under development: the development schedule and specification
may be revised without notice.
Fig. 4 Memory expansion plan
Currently supported products are listed below.
Table 2 List of supported products
Product
M37536M4-XXXSP
M37536E8SP
M37536RSS
(P) ROM size (bytes)
ROM size for User ()
8192 (8062)
16384 (16254)
RAM size
(bytes)
256
384
384
Package
42P4B
42P4B
42S1M
Remarks
Mask ROM version
One Time PROM version (blank)
Emulator MCU
5
FUNCTIONAL DESCRIPTION
Central Processing Unit (CPU)
The 7536 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 and SLW instructions cannot be used.
The MUL and DIV instructions cannot be used.
The WIT and STP instructions can be used.
The central processing unit (CPU) has the six registers.
Switching method of CPU mode register
Switch the CPU mode register (CPUM) at the head of program after
releasing Reset in the following method.
[CPU Mode Register] CPUM
The CPU mode register contains the stack page selection bit.
This register is allocated at address 003B16.
MITSUBISHI MICROCOMPUTERS
7536 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Fig. 5 Structure of CPU mode register
b7 b0
CPU mode register
(CPUM: address 003B
After releasing reset
Wait until ceramic oscillator clock is
stabilized.
Not used (returns “0” when read)
(Do not write “1” to these bits )
Main clock division ratio selection bits
b7 b6
0 0 : f(φ) = f(X
0 1 : f(φ) = f(X
1 0 : applied from ring oscillator
1 1 : f(φ) = f(X
IN
)/2 (High-speed mode)
IN
)/8 (Middle-speed mode)
IN
) (Double-speed mode)
Start with a built-in ring oscillator ( Note)
Switch the clock division ratio
selection bits (bits 6 and 7 of CPUM)
Note. After releasing reset the operation starts by starting a ring oscillator automatically.
Do not use a ring oscillator at ordinary operation.
Fig. 6 Switching method of CPU mode register
6
Switch to other mode except a ring oscillator
(Select one of 1/1, 1/2, and 1/8)
Main routine
MITSUBISHI MICROCOMPUTERS
7536 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Memory
Special function register (SFR) area
The SFR area in the zero page contains control registers such as I/O
ports and timers.
RAM
RAM is used for data storage and for a stack area of subroutine calls
and interrupts.
ROM
The first 128 bytes and the last 2 bytes of ROM are reserved for
device testing and the rest is a user area for storing programs.
Interrupt vector area
The interrupt vector area contains reset and interrupt vectors.
RAM area
RAM capacity
(bytes)
256
384
address
XXXX
013F16
01BF16
16
Zero page
The 256 bytes from addresses 0000
16 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 FF00
16 to FFFF16 are called the spe-
cial 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.
USB transmit data byte number set register 0 (EP0BYTE)
16
USB transmit data byte number set register 1 (EP1BYTE)
16
USBPID control register 0 (EP0PID)
16
USBPID control register 1 (EP1PID)
16
USB address register (USBA)
16
USB sequence bit initialization register (INISQ1)
16
16
USB control register (USBCON)
Prescaler 12 (PRE12)
16
Timer 1 (T1)
16
Timer 2 (T2)
16
Timer X mode register
16
(TX)
(PREX)
Prescaler X
16
Timer X
16
Timer count source set register (TCSS)
16
16
Serial I/O2 control register (SIO2CON)
16
Serial I/O2 register (SIO2)
16
16
16
A-D control register (ADCON)
16
A-D conversion register (low-order) (ADL)
16
A-D conversion register (high-order) (ADH)
16
16
MISRG
16
Watchdog timer control register (WDTCON)
16
Interrupt edge selection register
16
CPU mode register (CPUM)
16
Interrupt request register 1 (IREQ1)
16
16
Interrupt control register 1 (ICON1)
16
16
(TM)
(INTEDGE)
Fig. 8 Memory map of special function register (SFR)
8
MITSUBISHI MICROCOMPUTERS
7536 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
I/O Ports
[Direction registers] PiD
The I/O ports have direction registers which determine the input/output direction of each pin. Each bit in a direction register corresponds
to one pin, and each pin can be set to be input or output.
When “1” is set to the bit corresponding to a pin, this pin becomes an
output port. When “0” is set to the bit, the pin becomes an input port.
When data is read from a pin set to output, not the value of the pin
itself but the value of port latch is read. Pins set to input are floating,
and permit reading pin values.
If a pin set to input is written to, only the port latch is written to and the
pin remains floating.
b7 b0
[Pull-up control] PULL
By setting the pull-up control register (address 001616), ports P0 and
P3 can exert pull-up control by program. However, pins set to output
are disconnected from this control and cannot exert pull-up control.
[Port P1P3 control] P1P3C
By setting the port P1P3 control register (address 001716), a CMOS
input level or a TTL input level can be selected for ports P10, P12,
P13, P35, P36 and P37 by program.
Pull-up control register
16
(PULL: address 0016
P00 pull-up control bit
P0
1
pull-up control bit
P0
2
, P03 pull-up control bit
P0
4
– P07 pull-up control bit
P3
0
– P33 pull-up control bit
P3
4
pull-up control bit
P3
5
, P36 pull-up control bit
P3
7
pull-up control bit
)
Note : Pins set to output ports are disconnected from pull-up control.
Note: Port P10, P12, P13, P36, P37 is CMOS/TTL level.
Name
I/O port P0
I/O port P1
I/O port P2
I/O port P3
I/O port P4
I/O individual
bits
•CMOS compatible input level
•CMOS 3-state output
•USB input/output level when
selecting USB function
•CMOS compatible input level
•CMOS 3-state output
(Note)
I/O format
MITSUBISHI MICROCOMPUTERS
7536 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Non-port function
Key input interrupt
Serial I/O1 function
input/output
Serial I/O2 function
input/output
Timer X function input/output
A-D conversion input
External interrupt input
Related SFRs
Pull-up control register
Serial I/O1 control
register
Serial I/O2 control
register
Timer X mode register
A-D control register
Interrupt edge selection
register
Diagram No.Input/output
(1)
(2)
(3)
(4)
(5)
(6)
(10)
(7)
(8)
(9)
(10)
10
MITSUBISHI MICROCOMPUTERS
7536 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(1) Port P0
Pull-up control
Direction
register
Data bus
(3) Port P1
Serial I/O1 mode selection bit (b7)
Serial I/O1 mode selection bit (b6)
Serial I/O1 mode selection bit (b7)
Serial I/O1 mode selection bit (b6)
Data bus
Port latch
To key input interrupt
1
P-channel output disable bit
Transmit enable bit
Direction
register
Port latch
generating circuit
(2) Port P1
Serial I/O1 mode selection bit (b7)
Serial I/O1 mode selection bit (b6)
Serial I/O1 mode selection bit (b7)
Serial I/O1 mode selection bit (b6)
Data bus
0
Receive enable bit
Direction
register
Port latch
-
+
Serial I/O1 input
D- input
D- output
USB output enable
(internal signal)
USB differential input
0
,P12,P13 input
P1
level selection bit
Serial I/O1 output
D+ output
USB output enable
(internal signal)
(4) Port P1
Data bus
*P1
2
S
CLK
pin selection bit
Direction
register
Port latch
Serial I/O2 clock output
Serial I/O2 clock input
0
, P12, P13, P36, P37 input levels are switched to the CMOS/TTL level by the port P1P3 control register.
When the TTL level is selected, there is no hysteresis characteristics.
Fig. 11 Block diagram of ports (1)
D+ input
0
,P12,P13 input
P1
level selection bit
(5) Port P1
Signals during the
S
DATA
S
Data bus
3
DATA
output action
pin selection bit
Direction
register
Port latch
Serial I/O2 clock output
Serial I/O2 clock input
DATA
pin
S
selection bit
P1
0
,P12,P13 input
level selection bit
11
MITSUBISHI MICROCOMPUTERS
7536 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(6) Port P1
4
Data bus
Pulse output mode
(8) Ports P30 – P3
Data bus
Direction
register
Port latch
Timer output
5
Pull-up
Direction
register
Port latch
CNTR
0
interrupt input
control
(7) Ports P20 – P2
Data bus
(9) Port P36, P3
Data bus
7
Port latch
7
Direction
register
Port latch
Direction
register
A-D conversion input
Analog input pin selection bit
control
Pull-up
7
/INT0 input
P3
level selection bit
(10) Ports P1
Data bus
5, P16
, P4
Direction
register
Port latch
Fig. 12 Block diagram of ports (2)
0, P41
interrupt input
INT
₎
0
, P12, P13, P36, P37 input levels are switched to the CMOS/TTL level by the port P1P3 control register.
P1
When the TTL level is selected, there is no hysteresis characteristics.
₎
12
MITSUBISHI MICROCOMPUTERS
7536 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Interrupts
Interrupts occur by 14 different sources : 4 external sources, 9 internal sources and 1 software source.
Interrupt control
All interrupts except the BRK instruction interrupt have an interrupt
request bit and an interrupt enable bit, and they are controlled by the
interrupt disable flag. When the interrupt enable bit and the interrupt
request bit are set to “1” and the interrupt disable flag is set to “0”, an
interrupt is accepted.
The interrupt request bit can be cleared by program but not be set.
The interrupt enable bit can be set and cleared by program.
It becomes usable by switching CNTR0 and A-D interrupt sources
with bit 7 of the interrupt edge selection register, timer 2 and serial I/
O2 interrupt sources with bit 6, timer X and key-on wake-up interrupt
sources with bit 5, and serial I/O transmit and INT1 interrupt sources
with bit 4.
The reset and BRK instruction interrupt can never be disabled with
any flag or bit. All interrupts except these are disabled when the interrupt disable flag is set.
When several interrupts occur at the same time, the interrupts are
received according to priority.
Table 4 Interrupt vector address and priority
Interrupt source
Reset (Note 2)
UART receive
USB IN token
UART transmit
2: Reset function in the same way as an interrupt with the highest priority.
Priority
Vector addresses (Note 1)
High-order
FFFD16
1
FFFB16
2
FFF916
3
FFF716
4
FFF516
5
FFF316
6
FFF116
7
FFEF16
8
FFED16
9
Low-order
FFFC16
FFFA16
FFF816
FFF616
FFF416
FFF216
FFF016
FFEE16
FFEC16
Interrupt request generating conditions
At reset input
At completion of UART data receive
At detection of IN token
At completion of UART transmit shift or
when transmit buffer is empty
At detection of SETUP/OUT token or
At detection of Reset/ Suspend/ Resume
At detection of either rising or falling edge
of INT1 input
At detection of either rising or falling edge
of INT0 input
At timer X underflow
At falling of conjunction of input logical
level for port P0 (at input)
At timer 1 underflow
At timer 2 underflow
At completion of transmit/receive shift
At detection of either rising or falling edge
of CNTR0 input
At completion of A-D conversion
At BRK instruction execution
Interrupt operation
Upon acceptance of an interrupt the following operations are automatically performed:
1. The processing being executed is stopped.
2. The contents of the program counter and processor status register are automatically pushed onto the stack.
3. The interrupt disable flag is set and the corresponding interrupt
request bit is cleared.
4. Concurrently with the push operation, the interrupt destination
address is read from the vector table into the program counter.
Notes on use
When the active edge of an external interrupt (INT0, INT1, CNTR0) is
set, the interrupt request bit may be set.
Therefore, please take following sequence:
1. Disable the external interrupt which is selected.
2. Change the active edge in interrupt edge selection register. (in
case of CNTR0: Timer X mode register)
3. Clear the set interrupt request bit to “0”.
4. Enable the external interrupt which is selected.
Remarks
Non-maskable
Valid in UART mode
Valid in USB mode
Valid in UART mode
INT0 interrupt edge selection bit
0 : Falling edge active
1 : Rising edge active
INT
1
interrupt edge selection bit
0 : Falling edge active
1 : Rising edge active
Not used (returns “0” when read)
Serial I/O1 or INT1 interrupt selection bit
0 : Serial I/O1
1 : INT
Timer X or key-on wake up interrupt selection bit
0 : Timer X
1 : Key-on wake up
Timer 2 or serial I/O2 interrupt selection bit
0 : Timer 2
1 : Serial I/O2
CNTR
0 : CNTR
1 : AD converter
UART receive/USB IN token interrupt request bit
UART transmit/USB SETUP/OUT token/ Reset/Suspend/Resume/INT interrupt request bit
INT
0
Timer X or key-on wake up interrupt request bit
Timer 1 interrupt request bit
Timer 2 or serial I/O2 interrupt request bit
CNTR
Not used (returns “0” when read)
Interrupt control register 1
(ICON1 : address 003E16)
UART receive/USB IN token interrupt enable bit
UART transmit/USB SETUP/OUT token/ Reset/Suspend/Resume/INT interrupt enable bit
INT
0
Timer X or key-on wake up interrupt enable bit
Timer 1 interrupt enable bit
Timer 2 or serial I/O2 interrupt enable bit
CNTR
Not used (returns “0” when read)
(Do not write “1” to this bit)