M38503M4-094FP MITSUBISHI, M38503M4-094FP Datasheet

no-image

M38503M4-094FP

Manufacturer Part Number
M38503M4-094FP
Description
M38503M4-094FPSINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI
Datasheet
DESCRIPTION
The 3850 group (spec. H) is the 8-bit microcomputer based on the
740 family core technology.
The 3850 group (spec. H) is designed for the household products
and office automation equipment and includes serial I/O functions,
8-bit timer, and A-D converter.
FEATURES
Fig. 1 M38503M4H-XXXFP/SP pin configuration
PIN CONFIGURATION (TOP VIEW)
(connect to external ceramic resonator or quartz-crystal oscillator)
Basic machine-language instructions ...................................... 71
Minimum instruction execution time .................................. 0.5 s
Memory size
ROM ................................................................... 8K to 32K bytes
RAM ................................................................. 512 to 1024 bytes
Programmable input/output ports ............................................ 34
Interrupts ................................................. 14 sources, 14 vectors
Timers ............................................................................. 8-bit
Serial I/O1 .................... 8-bit
Serial I/O2 ................................... 8-bit
PWM ............................................................................... 8-bit
A-D converter ............................................... 10-bit
Watchdog timer ............................................................ 16-bit
Clock generating circuit ..................................... Built-in 2 circuits
P 2
7
P 4
P 4
/ C N T R
3
4
Package type : FP ........................... 42P2R-A/E (42-pin plastic-molded SSOP)
Package type : SP ........................... 42P4B (42-pin plastic-molded SDIP)
/ I N T
P 4
/ I N T
P 2
P 2
P 4
P 4
0
P 2
P 2
P 2
/ C N T R
0
0
R E S E T
2
3
C N V
/ X
/ S
/ S
/ P W M
6
2
1
1
4
5
/ S
/ I N T
/ I N T
V
/ R x D
/ X
X
1(UART or Clock-synchronized)
C O U T
(at 8 MHz oscillation frequency)
R D Y 1
/ T x D
C M P 2
V
P 2
P 2
V
R E F
O U T
C L K
X
C I N
C C
S S
S S
I N
1
0
1
3
2
1(Clock-synchronized)
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
2 0
2 1
1
2
3
4
5
6
7
8
9
5 channels
4
1
1
3850 Group (Spec. H)
APPLICATION
Office automation equipment, FA equipment, Household products,
Consumer electronics, etc.
Power source voltage
In high-speed mode .................................................. 4.0 to 5.5 V
(at 8 MHz oscillation frequency)
In middle-speed mode ............................................... 2.7 to 5.5 V
(at 8 MHz oscillation frequency)
In low-speed mode .................................................... 2.7 to 5.5 V
(at 32 kHz oscillation frequency)
Power dissipation
In high-speed mode ..........................................................34 mW
(at 8 MHz oscillation frequency, at 5 V power source voltage)
In low-speed mode ............................................................ 60 W
(at 32 kHz oscillation frequency, at 3 V power source voltage)
Operating temperature range .................................... –20 to 85°C
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
4 2
4 1
4 0
3 9
3 8
3 7
3 6
3 5
3 4
3 3
3 2
3 1
3 0
2 9
2 8
2 7
2 6
2 5
2 4
2 3
2 2
MITSUBISHI MICROCOMPUTERS
P 3
P 3
P 3
P 3
P 3
P 0
P 0
P 0
P 0
P 0
P 0
P 0
P 0
P 1
P 1
P 1
P 1
P 1
P 1
P 1
P 1
0
1
2
3
4
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
/ A N
/ A N
/ A N
/ A N
/ A N
/ S
/ S
/ S
/ S
/ ( L E D
/ ( L E D
/ ( L E D
/ ( L E D
/ ( L E D
/ ( L E D
/ ( L E D
/ ( L E D
O U T 2
C L K 2
R D Y 2
I N 2
0
1
2
3
4
0
1
2
3
4
5
6
7
)
)
)
)
)
)
)
)

Related parts for M38503M4-094FP

M38503M4-094FP Summary of contents

Page 1

... Package type : FP ........................... 42P2R-A/E (42-pin plastic-molded SSOP) Package type : SP ........................... 42P4B (42-pin plastic-molded SDIP) Fig. 1 M38503M4H-XXXFP/SP pin configuration 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Power source voltage In high-speed mode .................................................. 4.0 to 5.5 V (at 8 MHz oscillation frequency) In middle-speed mode ............................................... 2.7 to 5.5 V (at 8 MHz oscillation frequency) In low-speed mode ...

Page 2

... FUNCTIONAL BLOCK Fig. 2 Functional block diagram 2 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 3

... CMOS I/O port with the same function as port P0. •CMOS compatible input level. •CMOS 3-state output structure. •8-bit CMOS I/O port with the same function as port P0. •CMOS compatible input level. •CMOS 3-state output structure. MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Function except a port function and X pins to set IN ...

Page 4

... MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) ...

Page 5

... GROUP EXPANSION Mitsubishi plans to expand the 3850 group (spec follows. Memory Type Support for mask ROM, One Time PROM, and flash memory ver- sions. Memory Size Flash memory size ......................................................... 32 K bytes One Time PROM size ..................................................... 24 K bytes Mask ROM size ................................................... bytes RAM size ...

Page 6

... M38504M6-XXXFP M38504E6-XXXFP M38504E6FP Table 3 3850 group (standard) and 3850 group (spec. H) corresponding products 3850 group (standard) 3850 group (spec. H) M38503M2-XXXFP/SP M38503M2H-XXXFP/SP M38503M4-XXXFP/SP M38503M4H-XXXFP/SP M38503E4-XXXFP/SP M38504M6-XXXFP/SP M38503E4FP/SP M38504E6-XXXFP/SP M38503E4SS M38504E6FP/SP M38504E6SS M38507M8-XXXFP/SP M38507F8FP/SP Table 4 Differences between 3850 group (standard) and 3850 group (spec. H) ...

Page 7

... Program counter Processor status register (PS) Carry flag Zero flag Interrupt disable flag Decimal mode flag Break flag Index X mode flag Overflow flag Negative flag MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) ” used to indicate the address of the L 7 ...

Page 8

... “ 1 ” “ 0 ” Push instruction to stack PHA PHP MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ( – ...

Page 9

... When the BIT instruction is executed, bit 7 of the memory location operated on by the BIT instruction is stored in the negative flag. Z flag I flag D flag B flag _ SEI SED _ CLI CLD MITSUBISHI MICROCOMPUTERS 3850 Group (Spec flag V flag N flag SET _ _ CLT CLV ...

Page 10

... CIN COUT Main clock (X – Oscillating 1 : Stopped Main clock division ratio selection bits Not available MITSUBISHI MICROCOMPUTERS 3850 Group (Spec oscillating function ) stop bit OUT )/2 (high-speed mode) IN )/8 (middle-speed mode) IN )/2 (low-speed mode) CIN ...

Page 11

... FFFE 16 4080 16 FFFF 16 3080 16 2080 16 1080 16 Note: Flash memory version only MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SFR area Zero page Not used SFR area (Note) Not used Reserved ROM area (128 bytes) Special page Interrupt vector area Reserved ROM area 11 ...

Page 12

... Fig. 9 Memory map of special function register (SFR) 12 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 13

... CMOS compatible Timer X function I/O input level CMOS 3-state output A-D conversion input Timer Y function I/O External interrupt input External interrupt input S output CMP2 External interrupt input PWM output MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Related SFRs Ref.No. (1) Serial I/O2 control (2) register (3) (4) (5) (6) CPU mode register ...

Page 14

... Fig. 10 Port block diagram (1) 14 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ( ...

Page 15

... Port P4 Data bus Pulse output mode Analog input pin selection bit (16) Port P4 3 comparison signal control bit Data bus comparison signal output MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Direction register Port latch Serial I/O1 output Pulse output mode Direction register Port latch ...

Page 16

... Port P4 4 PWM output enable bit Direction register Port latch Data bus PWM output Interrupt input Fig. 12 Port block diagram (3) 16 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 17

... The interrupt disable flag is set and the corresponding interrupt request bit is cleared. 3. The interrupt jump destination address is read from the vector table into the program counter. MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Notes When the active edge of an external interrupt (INT ...

Page 18

... At detection of either rising or FFE0 16 16 falling edge of CNTR FFDE completion of A-D conversion FFDC BRK instruction execution MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Remarks Non-maskable External interrupt input (active edge selectable) 0 External interrupt input (active edge selectable) 1 External interrupt ...

Page 19

... MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Interrupt request ...

Page 20

... CIN amount owing to generating of a thin pulses in the count input signals. Therefore, select the timer count source before set the value to the prescaler and the timer. MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER (or CNTR ) pin is inverted. If the active edge selection bit is “ ...

Page 21

... Toggle flip-flop “0” Data bus Prescaler 12 latch (8) Timer 1 latch (8) Prescaler 12 (8) Timer 1 (8) MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Timer X latch (8) To timer X interrupt Timer X (8) request bit To CNTR interrupt 0 request bit Timer X latch write pulse Pulse output mode ...

Page 22

... TBE = 1 TSC = 0 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec “1”. 16 Address 001A 16 Receive interrupt request (RI) 1/4 Transmit shift completion flag (TSC) Transmit interrupt request (TI) Transmit buffer empty flag (TBE) Address 0019 ...

Page 23

... MITSUBISHI MICROCOMPUTERS 3850 Group (Spec ...

Page 24

... Rate Generator (BRG)] 001C The baud rate generator determines the baud rate for serial trans- fer. The baud rate generator divides the frequency of the count source by 1/(n + 1), where n is the value written to the baud rate genera- tor. MITSUBISHI MICROCOMPUTERS 3850 Group (Spec ...

Page 25

... MITSUBISHI MICROCOMPUTERS 3850 Group (Spec ...

Page 26

... OUT2 pin. If not, “H” CMP2 Fig. 23 Structure of Serial I/O2 control registers 1, 2 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec ...

Page 27

... MITSUBISHI MICROCOMPUTERS 3850 Group (Spec ...

Page 28

... S CMP2 S CLK2 S OUT2 S IN2 Fig output operation CMP2 28 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Judgement of I/O data comparison ...

Page 29

... Fig. 27 Timing of PWM period PWM PWM prescaler pre-latch register pre-latch Transfer control circuit PWM PWM prescaler latch register latch PWM register PWM prescaler MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) 31.875 m (n+1) s 255 T = [31.875 (n+1 MHz,count source IN Port P4 4 Port P4 ...

Page 30

... IN 30 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ) low-speed mode) )/2 at low-speed mode) CIN (Changes “H” term from “A” to “B”.) (Changes PWM period from “T” to “T2”.) MITSUBISHI MICROCOMPUTERS 3850 Group (Spec ...

Page 31

... Fig. 32 Structure of A-D conversion registers Data bus A-D control circuit A-D conversion high-order register Comparator A-D conversion low-order register 10 Resistor ladder V AV REF SS MITSUBISHI MICROCOMPUTERS 3850 Group (Spec control register (ADCON : address 0034 ) 16 Analog input pin selection bits / /AN ...

Page 32

... STP instruction disable bit 0: STP instruction enabled 1: STP instruction disabled Watchdog timer H count source selection bit 0: Watchdog timer L underflow 1: f(X )/16 or f(X IN MITSUBISHI MICROCOMPUTERS 3850 Group (Spec kHz frequency. CIN ) (or f(X )). The detection time in this case IN CIN ) = 8 MHz frequency and 128 ms at f(X ...

Page 33

... Notes 1: The frequency relation of f(X ) and f The question marks (?) indicate an undefined state that depends on the previous state. 3: All signals except X and are internals. RESET IN MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Poweron (Note) Power source voltage Reset input voltage 0. Note : Reset release voltage ...

Page 34

... 0028 0034 16 0035 0036 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Address Register contents 00 0038 16 16 0039 003A 003B ...

Page 35

... CIN Fig. 39 Ceramic resonator circuit is IN stops at an .” When the 16 Fig. 40 External clock input circuit is supplied for MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER divided by 16. Accordingly, set the CIN COUT ...

Page 36

... Main clock division ratio selection bits (Note 1) Middle-speed mode High-speed or low-speed mode Main clock stop bit WIT instruction MITSUBISHI MICROCOMPUTERS 3850 Group (Spec MISRG (MISRG : address 0038 ) 16 Oscillation stabilizing time set after STP instruction released bit 0: Automatically set “01 ” to Timer 1, 16 “ ...

Page 37

... MITSUBISHI MICROCOMPUTERS 3850 Group (Spec ...

Page 38

... F–0 recom- mended. signal, set the transmit output enable bit RDY1 D pin after X MITSUBISHI MICROCOMPUTERS 3850 Group (Spec the middle/high-speed mode the number of cycles needed to is half of the X frequency – ...

Page 39

... P3 – – –P2 ,P4 –P4 (Note MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Ratings –0.3 to 6.5 –0 +0.3 CC –0 –0 +0.3 CC –0 +0.3 CC –0 +0.3 CC –0.3 to 5.8 1000 (Note) – –40 to 125 Limits Min. Typ. ...

Page 40

... P2 – – – – 4.0 to 5.5V) (Note 2.7 to 5.5V) (Note 3) CC (avg) are average value measured over 100 ms. OH MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Limits Min. Typ. Max – – – – ...

Page 41

... – When clock stopped MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Limits Min. Typ. Max. V –2 –1.0 CC 2.0 1.0 2.0 1.0 0.4 0.5 0.5 5.0 5.0 4 –5.0 –5.0 –4 2.0 5 “0”. 16 Unit ...

Page 42

... MHz (in WIT state stopped CIN Output transistors “off” Increment when A-D conversion is executed f MHz IN All oscillation stopped °C (in STP state) Output transistors “off” °C MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Limits Unit Typ. Max. Min 200 A 20 ...

Page 43

... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER = – °C, f MHz, unless otherwise noted) IN Test conditions High-speed mode, Middle-speed mode Low-speed mode “on” REF REF V “off” REF MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Limits Unit Min. Typ. Max. 10 bit ±4 LSB 61 2tc ...

Page 44

... MHz and bit 6 of address 001A IN 44 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Parameter is “1” (clock synchronous “0” (UART). 16 Parameter is “1” (clock synchronous “0” (UART). 16 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Limits Unit Min. Typ. Max 125 ...

Page 45

... P-channel output disable bit of the Serial I/O2 control register 1 (bit 7 of address 0015 1 OUT2 2 CLK2 3: The X pin is excluded. OUT Test conditions Fig.44 P-channel output disable bit of the Serial I/O2 control register 1 (bit 7 of address 0015 Test conditions Fig.44 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Limits Min. Typ. Max )/2–30 C CLK1 t (S )/2– ...

Page 46

... Measurement output pin CMOS output Fig. 44 Circuit for measuring output switching characteristics 46 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 100pF MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) ...

Page 47

... WL(S ), WL(S ) CLK1 CLK2 r 0.8V 0. h(S su CLK1 t t h(S su IN2 CLK2 0. d(S -T D), CLK1 CLK2 OUT2 MITSUBISHI MICROCOMPUTERS 3850 Group (Spec WL(CNTR WL(INT WH(S ), WH(S ) CLK1 CLK2 CLK1 S ) CLK2 - IN2 t v(S -T CLK1 X t v(S -S CLK2 OUT2 D), ) ...

Page 48

... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Weight(g) Lead Material 4.1 Alloy 42/Cu Alloy Weight(g) Lead Material 0.63 Alloy Detail F MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Plastic 42pin 600mil SDIP Dimension in Millimeters Symbol Min Nom Max A – – 5.5 A 0.51 – – – 3.8 – 2 0.35 0.45 ...

Page 49

... EIAJ Package Code JEDEC Code WDIP42-C-600-1.78 – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Weight( SEATING PLANE MITSUBISHI MICROCOMPUTERS 3850 Group (Spec. H) Metal seal 42pin 600mil DIP Dimension in Millimeters Symbol Min Nom Max A – – 5.0 A 1.0 – – – ...

Page 50

... 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. ...

Page 51

REVISION DESCRIPTION LIST Rev. No. 1.0 First Edition 1.1 Font errors are revised. 3850 GROUP (SPEC. H) DATA SHEET Revision Description (1/1) Rev. date 000309 000322 ...

Related keywords