5
MITSUBISHI MICROCOMPUTERS
M37702M2AXXXFP, M37702M2BXXXFP
M37702S1AFP, M37702S1BFP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
BASIC FUNCTION BLOCKS
The M37702M2AXXXFP contains the following devices on a
single chip: ROM and RAM for storing instructions and data, CPU
for processing, bus interface unit (which controls instruction
prefetch and data read/write between CPU and memory), timers,
UART, A-D converter, and other peripheral devices such as I/O
ports. Each of these devices are described below.
MEMORY
The memory map is shown in Figure 1. The address space is 16
M bytes from addresses 016 to FFFFFF16. The address space is
divided into 64 K bytes units called banks. The banks are num-
bered from 016 to FF16.
Built-in ROM, RAM and control registers for built-in peripheral de-
vices are assigned to bank 016.
The 16 K bytes area from addresses C00016 to FFFF16 is the
built-in ROM. Addresses FFD616 to FFFF16 are the RESET and
interrupt vector addresses and contain the interrupt vectors. Refer
to the section on interrupts for details.
The 512 bytes area from addresses 8016 to 27F16 contains the
built-in RAM. In addition to storing data, the RAM is used as stack
during a subroutine call, or interrupts.
Assigned to addresses 016 to 7F16 are peripheral devices such as
I/O ports, A-D converter, UART, timer, and interrupt control regis-
ters.
A 256 bytes direct page area can be allocated anywhere in bank
016 using the direct page register DPR. In direct page addressing
mode, the memory in the direct page area can be accessed with
two words thus reducing program steps.
Fig. 1 Memory map
A-D conversion
Timer B2
Timer B1
Timer B0
Timer A4
Timer A3
Timer A2
Timer A1
Timer A0
INT2
INT0
Watchdog timer
DBC
BRK instruction
Zero divide
RESET
Peripheral devices
control registers
see Fig. 2 for
further information
Interrupt vector table
00000016
00FFFF16
01000016
01FFFF16
Bank 016
Bank 116
FE000016
FEFFFF16
FF000016
FFFFFF16
Bank FF16
Bank FE16
00FFFF16
00FFD616
00027F16
00000016
00007F16
00008016
Internal RAM
512 bytes
00FFFE16
00FFD616
00007F16
00000016
UART1 transmission
UART1 receive
UART0 transmission
UART0 receive
INT1
00C00016
Internal ROM
16K bytes