M37516F8HP [MITSUBISHI]
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER; 单片8位CMOS微机型号: | M37516F8HP |
厂家: | Mitsubishi Group |
描述: | SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER |
文件: | 总12页 (文件大小:234K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
●Clock generating circuit..................................... Built-in 2 circuits
(connect to external ceramic resonator or quartz-crystal oscillator)
●Power source voltage
DESCRIPTION
The M37516F8HP is the 8-bit microcomputer based on the 740
family core technology.
In high-speed mode .................................................. 4.0 to 5.5 V
(at 8 MHz oscillation frequency)
The M37516F8HP is designed for household products and office
automation equipment and includes serial I/O functions, 8-bit
2
In high-speed mode .................................................. 2.7 to 5.5 V
(at 4 MHz oscillation frequency)
timer, A-D converter, and I C-BUS interface.
In middle-speed mode............................................... 2.7 to 5.5 V
(at 8 MHz oscillation frequency)
FEATURES
●Basic machine-language instructions ...................................... 71
●Minimum instruction execution time .................................. 0.5 µs
(at 8 MHz oscillation frequency)
In low-speed mode .................................................... 2.7 to 5.5 V
(at 32 kHz oscillation frequency)
●Power dissipation
●Memory size
In high-speed mode ..........................................................34 mW
(at 8 MHz oscillation frequency, at 5 V power source voltage)
In low-speed mode ............................................................. T.B.D.
(at 32 kHz oscillation frequency, at 3 V power source voltage)
●Operating temperature range.................................... –20 to 85°C
Flash memory ............................................................... 32 Kbytes
RAM ................................................................................ 1 Kbytes
●Programmable input/output ports ............................................ 40
●Interrupts ................................................. 17 sources, 16 vectors
●Timers ............................................................................. 8-bit ✕ 4
●Serial I/O1 ................... 8-bit ✕ 1 (UART or Clock-synchronized)
●Serial I/O2 ................................... 8-bit ✕ 1(Clock-synchronized)
APPLICATION
Office automation equipment, FA equipment, Household products,
2
●Multi-master I C-BUS interface (option) ...................... 1 channel
Consumer electronics, etc.
●PWM ............................................................................... 8-bit ✕ 1
●A-D converter ............................................... 10-bit ✕ 8 channels
●Watchdog timer ............................................................ 16-bit ✕ 1
PIN CONFIGURATION (TOP VIEW)
37
38
39
40
41
42
43
44
45
46
47
48
24
P3
P3
P3
P3
5
/AN
/AN
/AN
/AN
5
P1
2
3
/(LED
/(LED
2
)
)
23
22
21
20
19
18
P1
3
4
3
4
3
P14
P15
P16
/(LED
/(LED
/(LED
4)
5)
6
)
2
2
P31
/AN
1
0
P30
/AN
P17
/(LED
7)
M37516F8HP
V
CC
REF
AVSS
P4
VSS
V
17
16
15
14
13
X
X
OUT
IN
RESET
P2
P2
7
P4
6
5
0
/XCOUT
/XCIN
P4
1
Package type : 48P6Q-A
Fig. 1 M37516F8HP pin configuration
1
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
FUNCTIONAL BLOCK
Fig. 2 Functional block diagram
2
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Table 1 Pin description
Functions
Pin
Name
Function except a port function
Power source
CNVSS input
•Apply voltage of 2.7 V – 5.5 V to Vcc, and 0 V to Vss.
•This pin controls the operation mode of the chip.
•Normally connected to VSS.
VCC, VSS
CNVSS
Reset input
Clock input
RESET
XIN
•Reset input pin for active “L.”
•Input and output pins for the clock generating circuit.
•Connect a ceramic resonator or quartz-crystal oscillator between the XIN and XOUT pins to set
the oscillation frequency.
Clock output
I/O port P0
XOUT
•When an external clock is used, connect the clock source to the XIN pin and leave the XOUT
pin open.
P00/SIN2
•8-bit CMOS I/O port.
• Serial I/O2 function pin
P01/SOUT2
P02/SCLK2
P03/SRDY2
•I/O direction register allows each pin to be individually
programmed as either input or output.
•CMOS compatible input level.
•CMOS 3-state output structure.
P04–P07
P10/–P17
I/O port P1
I/O port P2
•P10 to P17 (8 bits) are enabled to output large current for LED drive.
• Sub-clock generating circuit I/O
pins (connect a resonator)
•8-bit CMOS I/O port.
P20/XCOUT
P21/XCIN
•I/O direction register allows each pin to be individually
programmed as either input or output.
2
• I C-BUS interface function pins
P22/SDA1
P23/SCL1
•CMOS compatible input level.
2
P24/SDA2/RxD
P25/SCL2/TxD
• I C-BUS interface function pin/
•P22 to P25 can be switched between CMOS compat-
ible input level or SMBUS input level in the I C-BUS
2
Serial I/O1 function pins
interface function.
P26/SCLK
• Serial I/O1 function pin
•P20, P21, P24 to P27: CMOS3-state output structure.
P27/CNTR0/
SRDY1
• Serial I/O1 function pin/
Timer X function pin
2
•P24, P25: N-channel open-drain structure in the I C-
BUS interface function.
•P22, P23: N-channel open-drain structure.
•8-bit CMOS I/O port with the same function as port P0.
•CMOS compatible input level.
I/O port P3
I/O port P4
P30/AN0–
P37/AN7
• A-D converter input pin
•CMOS 3-state output structure.
• Timer Y function pin
• Interrupt input pins
•8-bit CMOS I/O port with the same function as port P0.
•CMOS compatible input level.
P40/CNTR1
P41/INT0
P42/INT1
•CMOS 3-state output structure.
• Interrupt input pin/SCMP2 output pin
• Interrupt input pin/PWM output pin
P43/INT2/SCMP2
P44/INT3/PWM
P45–P47
3
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
FUNCTIONAL DESCRIPTION
[CPU Mode Register (CPUM)] 003B16
The CPU mode register contains the stack page selection bit, etc.
The CPU mode register is allocated at address 003B16.
CENTRAL PROCESSING UNIT (CPU)
The M37516F8HP 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 STP, WIT, MUL, and DIV instructions can be used.
b7
b0
CPU mode register
(
CPUM : address 003B16)
Processor mode bits
b1 b0
0
0
1
1
0 : Single-chip mode
1 :
0 :
1 :
Not available
Stack page selection bit
0 : 0 page
1 : 1 page
Fix this bit to “1”.
Port XC switch bit
0 : I/O port function (stop oscillating)
1 : XCIN–XCOUT oscillating function
Main clock (XIN–XOUT) stop bit
0 : Oscillating
1 : Stopped
Main clock division ratio selection bits
b7 b6
0
0
1
1
0 : φ = f(XIN)/2 (high-speed mode)
1 : φ = f(XIN)/8 (middle-speed mode)
0 : φ = f(XCIN)/2 (low-speed mode)
1 : Not available
Fig. 3 Structure of CPU mode register
4
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MEMORY
Interrupt Vector Area
Special Function Register (SFR) Area
The Special Function Register area in the zero page contains con-
trol registers such as I/O ports and timers.
The interrupt vector area contains reset and interrupt vectors.
Zero Page
Access to this area with only 2 bytes is possible in the zero page
RAM
addressing mode.
RAM is used for data storage and for stack area of subroutine
calls and interrupts.
Special Page
Access to this area with only 2 bytes is possible in the special
Flash Memory
page addressing mode.
The first 128 bytes and the last 2 bytes of flash memory are re-
served for device testing and the rest is user area for storing
programs.
000016
SFR area
Zero page
004016
RAM
1024 bytes
010016
044016
0FFD16
0FFF16
Not used
SFR area
Not used
800016
Flash memory
Reserved memory area
32 Kbytes
(
128 bytes)
808016
FF0016
FFD416
FFDC16
Flash memory ID code
Interrupt vector area
Reserved memory area
Special page
FFFE16
FFFF16
Fig. 4 Memory map diagram
5
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Port P0 (P0)
Prescaler 12 (PRE12)
Timer 1 (T1)
000016
000116
000216
000316
000416
000516
000616
000716
000816
000916
000A16
000B16
000C16
000D16
000E16
000F16
001016
001116
001216
001316
001416
002016
002116
002216
002316
002416
002516
002616
002716
002816
002916
002A16
002B16
002C16
002D16
002E16
002F16
003016
003116
003216
003316
003416
003516
003616
003716
003816
003916
003A16
003B16
003C16
003D16
003E16
003F16
Port P0 direction register (P0D)
Port P1 (P1)
Timer 2 (T2)
Port P1 direction register (P1D)
Port P2 (P2)
Timer XY mode register (TM)
Prescaler X (PREX)
Timer X (TX)
Port P2 direction register (P2D)
Port P3 (P3)
Prescaler Y (PREY)
Timer Y (TY)
Port P3 direction register (P3D)
Port P4 (P4)
Timer count source selection register (TCSS)
Port P4 direction register (P4D)
2
I C data shift register (S0)
2
I C address register (S0D)
2
I C status register (S1)
2
I C control register (S1D)
2
I C clock control register (S2)
2
I C start/stop condition control register (S2D)
Reserved ✽
Reserved ✽
Reserved ✽
A-D control register (ADCON)
Reserved ✽
A-D conversion low-order register (ADL)
001516 Serial I/O2 control register 1 (SIO2CON1)
001616 Serial I/O2 control register 2 (SIO2CON2)
001716 Serial I/O2 register (SIO2)
A-D conversion high-order register (ADH)
Reserved ✽
MISRG
001816 Transmit/Receive buffer register (TB/RB)
Serial I/O1 status register (SIOSTS)
001916
Watchdog timer control register (WDTCON)
Interrupt edge selection register (INTEDGE)
Serial I/O1 control register (SIOCON)
001B16 UART control register (UARTCON)
001A16
CPU mode register (CPUM)
Interrupt request register 1 (IREQ1)
Interrupt request register 2 (IREQ2)
Interrupt control register 1 (ICON1)
Baud rate generator (BRG)
PWM control register (PWMCON)
PWM prescaler (PREPWM)
001C16
001D16
001E16
Interrupt control register 2 (ICON2)
001F16 PWM register (PWM)
Reserved ✽
0FFD16
0FFE16
0FFF16
Flash memory control register (FCON)
Reserved ✽
✽ Reserved : Do not write any data to the reserved area.
Fig. 5 Memory map of special function register (SFR)
6
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
I/O PORTS
The I/O ports have direction registers which determine the input/
output direction of each individual pin. Each bit in a direction reg-
ister corresponds to one pin, and each pin can be set to be input
port or output port.
When “0” is written to the bit corresponding to a pin, that pin be-
comes 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 to output, the value of the
port output latch is read, not the value of the pin itself. Pins set to
input are floating. If a pin set to input is written to, only the port
output latch is written to and the pin remains floating.
Table 2 I/O port function
Input/Output
Related SFRs
Ref.No.
Name
I/O Structure
Non-Port Function
Pin
P00/SIN2
P01/SOUT2
P02/SCLK2
P03/SRDY2
CMOS compatible
input level
CMOS 3-state output
Input/output,
individual
bits
Serial I/O2 function I/O
Serial I/O2 control
register
Port P0
(1)
(2)
(3)
(4)
(5)
P04–P07
P10/–P17
Port P1
Port P2
P20/XCOUT
P21/XCIN
Sub-clock generating CPU mode register
circuit
(6)
(7)
2
P22/SDA1
P23/SCL1
2
(8)
(9)
CMOS compatible
input level
I C control register
I C-BUS interface func-
tion I/O
CMOS/SMBUS input
level (when selecting
2
I C-BUS interface
function)
N-channel open-drain
output
2
P24/SDA2/RxD
P25/SCL2/TxD
CMOS compatible
input level
(10)
(11)
I C control register
2
I C-BUS interface func-
Serial I/O1 control
register
tion I/O
CMOS/SMBUS input
level (when selecting
Serial I/O1 function I/O
2
I C-BUS interface
function)
CMOS 3-state output
N-channel open-drain
output (when
2
selecting I C-BUS
interface function)
P26/SCLK
CMOS compatible
input level
Serial I/O1 function I/O
Serial I/O1 control
register
(12)
(13)
CMOS 3-state output
Serial I/O1 control
register
P27/CNTR0/
SRDY1
Serial I/O1 function I/O
Timer X function I/O
Timer XY mode register
A-D control register
P30/AN0–
P37/AN7
Port P3
Port P4
A-D conversion input
(14)
P40/CNTR1
Timer Y function I/O
Timer XY mode register
(15)
(16)
P41/INT0
P42/INT1
External interrupt input
Interrupt edge selection
register
P43/INT2/SCMP2
Interrupt edge selection
register
External interrupt input
SCMP2 output
(17)
Serial I/O2 control
register
P44/INT3/PWM
P45–P47
External interrupt input
PWM output
Interrupt edge selection
register
(18)
(5)
PWM control register
7
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(1) Port P0
0
(2) Port P0
1
P0
1
/SOUT2 P-channel output
Direction
register
disable bit
Serial I/O2 transmit completion signal
Serial I/O2 port selection bit
Direction
register
Data bus
Port latch
Data bus
Port latch
Serial I/O2 input
Serial I/O2 output
(3) Port P0
2
(4) Port P0
3
P02/SCLK2 P-channel output disable bit
Serial I/O2 synchronous clock
selection bit
S
RDY2 output enable bit
Serial I/O2 port selection bit
Direction
register
Direction
register
Data bus
Port latch
Data bus
Port latch
Serial I/O2 ready output
Serial I/O2 clock output
Serial I/O2 external clock input
(6) Port P2
0
(5) Ports P0
4
–P0
7
, P1, P4
5
–P4
7
Port XC switch bit
Direction
register
Direction
register
Data bus
Port latch
Data bus
Port latch
Oscillator
Port P2
1
Port XC switch bit
(7) Port P2
1
(8) Port P22
I C-BUS interface enable bit
2
Port XC switch bit
SDA/SCL pin selection bit
Direction
register
Direction
register
Data bus
Port latch
Data bus
Port latch
Sub-clock generating circuit input
SDA output
SDA input
Fig. 6 Port block diagram (1)
8
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(9) Port P2
I C-BUS interface enable bit
SDA/SCL pin selection bit
3
(10) Port P2
I C-BUS interface enable bit
SDA/SCL pin selection bit
Serial I/O1 enable bit
4
2
2
Receive enable bit
Direction
register
Direction
register
Data bus
Port latch
Data bus
Port latch
SDA input
SDA output
SCL output
Serial I/O1 input
SCL input
(11) Port P2
5
(12) Port P26
P-channel output disable bit
Serial I/O1 synchronous clock
selection bit
Serial I/O1 enable bit
Transmit enable bit
Serial I/O1 enable bit
2
I C-BUS interface enable bit
SDA/SCL pin selection bit
Serial I/O1 mode selection bit
Direction
register
Serial I/O1 enable bit
Direction
register
Data bus
Port latch
Data bus
Port latch
SCL input
Serial I/O1 output
SCL output
Serial I/O1 clock output
External clock input
(13) Port P2
7
(14) Ports P3
0
–P3
7
Pulse output mode
Serial I/O1 mode selection bit
Serial I/O1 enable bit
S
RDY1 output enable bit
Direction
register
Direction
register
Data bus
Port latch
Data bus
Port latch
Pulse output mode
A-D converter input
Serial ready output
CNTR
0
interrupt
input
Analog input pin
selection bit
Timer output
(16) Ports P4
1, P42
(15) Port P4
0
Direction
register
Direction
register
Data bus
Data bus
Port latch
Port latch
Pulse output mode
Timer output
Interrupt input
CNTR1 interrupt input
Fig. 7 Port block diagram (2)
9
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(17) Port P4
3
(18) Port P44
PWM output enable bit
Serial I/O2 input/output
comparison signal control bit
Direction
register
Direction
register
Data bus
Port latch
Data bus
Port latch
PWM output
Serial I/O2 input/output
comparison signal output
Interrupt input
Interrupt input
Fig. 8 Port block diagram (3)
10
MITSUBISHI MICROCOMPUTERS
M37516F8HP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PACKAGE OUTLINE
48P6Q-A
Plastic 48pin 7✕7mm body LQFP
EIAJ Package Code
LQFP48-P-77-0.50
JEDEC Code
–
Weight(g)
–
Lead Material
Cu Alloy
MD
HD
D
48
37
I2
Recommended Mount Pad
1
36
25
F
Dimension in Millimeters
Symbol
Min
–
0
Nom
–
Max
1.7
0.2
–
0.27
0.175
7.1
7.1
–
9.2
9.2
0.65
–
0.75
–
A
A1
A2
b
c
D
0.1
1.4
0.22
0.125
7.0
7.0
0.5
9.0
9.0
0.5
1.0
0.6
0.25
–
–
12
0.17
0.105
6.9
6.9
–
8.8
8.8
0.35
–
0.45
–
–
–
0°
13
24
E
e
A
HD
HE
L
L1
e
L1
Lp
A3
x
0.08
0.1
8°
y
y
–
–
L
b
Lp
x
M
Detail F
b2
I2
–
1.0
–
0.225
–
7.4
7.4
–
–
–
–
MD
ME
–
HEAD OFFICE: 2-2-3, MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN
Keep safety first in your circuit designs!
•
Mitsubishi Electric Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to
personal injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable
material or (iii) prevention against any malfunction or mishap.
Notes regarding these materials
•
•
•
These materials are intended as a reference to assist our customers in the selection of the Mitsubishi semiconductor product best suited to the customer’s application; they do not convey any license under any intellectual property
rights, or any other rights, belonging to Mitsubishi Electric Corporation or a third party.
Mitsubishi Electric Corporation assumes no responsibility for any damage, or infringement of any third-party’s rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples
contained in these materials.
All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information on products at the time of publication of these materials, and are subject to change by
Mitsubishi Electric Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product
distributor for the latest product information before purchasing a product listed herein.
The information described here may contain technical inaccuracies or typographical errors. Mitsubishi Electric Corporation assumes no responsibility for any damage, liability, or other loss rising from these inaccuracies or errors.
Please also pay attention to information published by Mitsubishi Electric Corporation by various means, including the Mitsubishi Semiconductor home page (http://www.mitsubishichips.com).
When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total system before making a final decision
on the applicability of the information and products. Mitsubishi Electric Corporation assumes no responsibility for any damage, liability or other loss resulting from the information contained herein.
Mitsubishi Electric Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. Please contact Mitsubishi Electric
Corporation or an authorized Mitsubishi Semiconductor product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical,
aerospace, nuclear, or undersea repeater use.
•
•
•
•
The prior written approval of Mitsubishi Electric Corporation is necessary to reprint or reproduce in whole or in part these materials.
If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved
destination.
Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited.
•
Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for further details on these materials or the products contained therein.
© 2000 MITSUBISHI ELECTRIC CORP.
New publication, effective Feb. 2000.
Specifications subject to change without notice.
REVISION HISTORY
M37516F8HP DATA SHEET
Rev.
No.
Rev.
date
Revision Description
0.1 First Edition
2/3/00
(1/1)
相关型号:
©2020 ICPDF网 联系我们和版权申明