M38C24M6-051HP MITSUBISHI, M38C24M6-051HP Datasheet

no-image

M38C24M6-051HP

Manufacturer Part Number
M38C24M6-051HP
Description
M38C24M6-051HPSINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI
Datasheet
Fig. 1 M38C2XMX-XXXFP pin configuration
DESCRIPTION
The 38C2 group is the 8-bit microcomputer based on the 740 family
core technology.
The 38C2 group has an LCD drive control circuit, a 10-channel A-D
converter, and a Serial I/O as additional functions.
The various microcomputers in the 38C2 group include variations of
internal memory size and packaging. For details, refer to the section
on part numbering.
FEATURES
PIN CONFIGURATION (TOP VIEW)
Basic machine-language instructions ....................................... 71
The minimum instruction execution time .......................... 0.25 s
Memory size
ROM ................................................................ 16 K to 60 K bytes
RAM ................................................................. 640 to 2048 bytes
Programmable input/output ports ............................................. 51
Interrupts ................................................... 18 sources, 16 vectors
Timers ............................................................ 8-bit
A-D converter ................................................. 10-bit
Serial I/O ........................ 8-bit
PWM .................. 10-bit
P 5
P 5
( K W
( K W
( K W
( K W
( K W
( K W
( K W
( K W
3
2
P 4
P 4
/ T
/ T
3
2
0
7
6
5
4
) / P 5
1
4 O U T
3 O U T
7
6
) / P 5
) / P 5
) / P 0
) / P 0
) / P 0
) / P 0
) / P 5
/ R T P
/ R T P
2, 16-bit
P5
P 5
7
6
4
/ P W M
/ P W M
3
2
1
0
/ S
5
/ S
1
0
/ R
/ S E G
/ S E G
/ S E G
/ S E G
/ T
VREF
1
0
/INT
/ I N T
AV
/ A N
/ A N
R D Y 1
C L K 1
X
X
D
D
2 (UART or Clock-synchronized)
SS
1
1
1
0
1
0
7
6
(at 8MHz oscillation frequency)
3
2
1
0
1 (common to IGBT output)
4 9
5 0
5 1
5 2
5 3
6 2
6 3
6 4
5 4
5 5
5 6
5 7
5 8
59
60
61
Package type : 64P6N-A/64P6Q-A
(common to SEG: 24)
4 8 4 7 4 6
1
2
M 3 8 C 2 X M X - X X X F P
4, 16-bit
3
8 channels
4 5 44 4 3 4 2 4 1 40 3 9 3 8 3 7 36 3 5 3 4 3 3
4
5
6
7
2
8
9 1 0 11 12 1 3 1 4 15 1 6
LCD drive control circuit
Bias ................................................................................... 1/2, 1/3
Duty ........................................................................... 1/2, 1/3, 1/4
Common output .......................................................................... 4
Segment output ........................................................................ 24
Two clock generating circuits
(connect to external ceramic resonator or quartz-crystal oscillator)
Watchdog timer ............................................................... 8-bit
(average current: 15 mA, peak current: 30 mA, total current: 90 mA)
Power source voltage
In through mode .......................................................... 4.0 to 5.5 V
In frequency/2 mode ................................................... 1.8 to 5.5 V
In low-speed mode ..................................................... 1.8 to 5.5 V
Power dissipation
In through mode ................................................................. 26 mW
In low-speed mode ............................................................. 21 W
Operating temperature range ................................... – 20 to 85°C
LED direct drive port .................................................................. 8
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(at 4 MHz oscillation frequency, A-D operation excluded)
MITSUBISHI MICROCOMPUTERS
3 2
3 1
30
29
2 8
2 7
2 6
2 5
2 4
2 3
2 2
2 1
2 0
19
1 8
1 7
(at 32 kHz oscillation frequency, V
(at 8 MHz oscillation frequency, V
38C2 Group
P 3
P 3
P 3
P 3
P3
P 3
P2
P2
P2
P2
V
COM
COM
COM
C O M
P3
L3
4
5
6
0
4
5
6
7
1
2
3
/ I N T
/ T
/ S
/ T
/S
/ T
/SEG
/SEG
/SEG
/SEG
/R
0
1
2
X O U T
2 O U T
3
R D Y 2
X
CLK2
X
(at 32 kHz oscillation frequency)
D
(at 8 MHz oscillation frequency)
D
2
2
/ ( L E D
2
20
21
22
23
/ ( L E D
/(LED
/ / ( L E D
/ ( L E D
/(LED
/ ( L E D
/V
/V
L1
L2
4 )
2 )
3)
1)
5 )
0 )
6 )
CC
CC
= 5 V)
= 3 V)
1

Related parts for M38C24M6-051HP

M38C24M6-051HP Summary of contents

Page 1

... Package type : 64P6N-A/64P6Q-A MITSUBISHI MICROCOMPUTERS 38C2 Group (at 8 MHz oscillation frequency) (at 32 kHz oscillation frequency) (at 8 MHz oscillation frequency (at 32 kHz oscillation frequency /SEG ...

Page 2

... Fig. 2 Functional block diagram 2 MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 3

... V V voltage voltage to LCD. L3 and COM are not used at 1/2 duty ratio not used at 1/3 duty ratio. 3 MITSUBISHI MICROCOMPUTERS 38C2 Group Function except a port function . SS . pin. OUT and X pins to IN OUT • LCD segment • Key input interrupt output pins pins • ...

Page 4

... SS 4 Function programmed as either input or output. power input pin in the flash mode. When MCU is operating, connect MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Function except a port function • Timer Y function pin • I/O pins for sub-clock generating circuit. Connect oscillators to them. ...

Page 5

... MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER : 36864 bytes 40960 bytes B : 45056 bytes C : 49152 bytes D : 53248 bytes : 57344 bytes 61440 bytes ...

Page 6

... M38C24M4-XXXFP 16384 (16254) M38C24M4-XXXHP M38C29FFFP 61440 (61310) M38C29FFHP 6 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Packages 64P6Q-A ..................................... 0.5 mm-pitch plastic molded QFP 64P6N-A ..................................... 0.8 mm-pitch plastic molded QFP Under development M38C24M6 Under development M38C24M4 384 512 640 768 896 RAM size (bytes) RAM size Package (bytes) ...

Page 7

... 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 38C2 Group ”. If the stack used to indicate the address of the next in- L ”. 7 ...

Page 8

... “ 1 ” “ 0 ” Push instruction to stack PHA PHP MITSUBISHI MICROCOMPUTERS 38C2 Group ( – ...

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 – SEI SED – CLI CLD MITSUBISHI MICROCOMPUTERS 38C2 Group B flag T flag V flag – SET – CLT – CLV N flag – ...

Page 10

... IN System clock control bits stop, X oscillating, system clock = X IN CIN oscillating oscillating oscillating MITSUBISHI MICROCOMPUTERS 38C2 Group ) CIN stop, system clock = X CIN IN oscillating, system clock = X CIN CIN oscillating, system clock = X CIN IN ...

Page 11

... MITSUBISHI MICROCOMPUTERS 38C2 Group Zero page ...

Page 12

... Fig. 9 Memory map of special function register (SFR) 12 MITSUBISHI MICROCOMPUTERS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 0020 Timer 1 (T1) 16 0021 Timer 2 (T2) 16 0022 Timer 3 (T3) 16 Timer 4 (T4) 0023 16 0024 PWM01 register (PWM01) 16 0025 Timer 12 mode register (T12M) ...

Page 13

... P3–P6 can con Note: The PULL register and segment output disable register affect only ports programmed as the input ports. Fig. 11 Structure of PULL register and segment output disable register MITSUBISHI MICROCOMPUTERS 38C2 Group b0 PULL register (PULL : address 0FF1 ) ...

Page 14

... CMOS 3-state output Sub-clock oscillation circuit LCD common output during execution of the STP instruction through the input-stage gate MITSUBISHI MICROCOMPUTERS 38C2 Group Related SFRs Ref. No. Segment output disable (1) register 1 (2) Segment output disable register 2 Segment output disable ...

Page 15

... (6) Port Direction register Data bus MITSUBISHI MICROCOMPUTERS 38C2 Group , ...

Page 16

... Data bus Port latch Serial I/O clock output MITSUBISHI MICROCOMPUTERS 38C2 Group Pull-up control 5 Pull-up control ...

Page 17

... Oscillator Port oscillation enabled MITSUBISHI MICROCOMPUTERS 38C2 Group Xc oscillation enabled + Pull-up control Direction register Port latch Sub-clock generation circuit input 3 Gate input signal of each gate depends on the duty ratio and bias values ...

Page 18

... At timer Y underflow FFE0 16 At detection of either rising or falling edge of CNTR input 1 At completion of A-D conversion FFDE 16 At BRK instruction execution FFDC 16 MITSUBISHI MICROCOMPUTERS 38C2 Group – INT , CNTR Timer Y mode register for CNTR ). 0 1 Remarks Non-maskable External interrupt (active edge selectable) ...

Page 19

... Key input interrupt interrupt switch bit Timer Y interrupt 1 : CNTR interrupt MITSUBISHI MICROCOMPUTERS 38C2 Group Interrupt request b0 Interrupt request register 2 (IREQ2 : address 003D ) 16 Timer 1 interrupt request bit Timer 2 interrupt request bit Timer 3 interrupt request bit Timer 4 interrupt request bit CNTR ...

Page 20

... Key input control register = “1” Port P5 4 latch PULL register Bit 5 = “1” MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER – ...

Page 21

... P0 key input control bit 1 P0 key input control bit 2 P0 key input control bit Key input interrupt disabled 1 : Key input interrupt enabled Fig. 18 Structure of key input control register SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ) 16 MITSUBISHI MICROCOMPUTERS 38C2 Group 21 ...

Page 22

... However, in the long interval, “H” width of output pulse is extended for ts which is set by the PWM01 register (address 0024 22 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ) or f CIN is stopped, CIN pin. 2OUT .” /T pin. 3 4OUT Mode 1 /PWM pin by set the timer 16 ts MITSUBISHI MICROCOMPUTERS 38C2 Group ...

Page 23

... MITSUBISHI MICROCOMPUTERS 38C2 Group b0 PWM01 register (PWM01: address 0024 ) 16 PWM0 set bits extended Extended once in four periods Extended twice in four periods Extended three times in four periods PWM1 set bits extended ...

Page 24

... Timer 4 output control bit “ 0 ” “ 1 ” MITSUBISHI MICROCOMPUTERS 38C2 Group Timer 1 latch ( Timer 2 write control bit Timer 2 latch (8) ...

Page 25

... When using this mode, set the port sharing the T mode. Do not write “1” to the timer X register (extension) when using the PWM mode. pin to output XOUT MITSUBISHI MICROCOMPUTERS 38C2 Group ...

Page 26

... In this time, counting is stopped during writing to the high-order reload latch. • Do not switch the timer count source during timer count operation. Stop the timer count before switching it. MITSUBISHI MICROCOMPUTERS 38C2 Group ...

Page 27

... Y. Before using this function, set the cor- 1 responding port direction registers to output mode. inter- 1 pin to 1 pin. 1 pin to input 1 MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Interrupt Active Edge Selection 1 1 interrupt request is generated at both rising and falling 1 pin input signal regardless of the setting of CNTR 1 and P4 each time the timer Y underflows ...

Page 28

... Not used (returns “0” when read) Fig. 23 Structure of Timer X, Y related registers 28 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER interrupt 1 interrupt 1 MITSUBISHI MICROCOMPUTERS 38C2 Group Timer X control register (TXCON: address 0FF4 ) 16 Noise filter sampling clock selection bit 0 : f(X )/ f(X )/4 IN External trigger delay time selection bits ...

Page 29

... data for real time port “0” P4 latch 6 MITSUBISHI MICROCOMPUTERS 38C2 Group Timer X operating mode bits “ ” “000” “001” ...

Page 30

... Data bus MITSUBISHI MICROCOMPUTERS 38C2 Group Address 0FE0 16 [Address 0FE3 ] 16 Receive interrupt request (RI) Transmit shift completion flag (TSC) Transmit interrupt request (TI) Transmit buffer empty flag (TBE) Address 001D 16 [Address 001F ] ...

Page 31

... start bit data bit parity bit stop bit (s) RBF MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Address 0FE0 16 [Address 0FE3 ] 16 1/16 UART control register Address 0FE1 16 [Address 0FE4 ] 16 Transmit shift completion flag (TSC) ...

Page 32

... The baud rate generator determines the baud rate for serial transfer. 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 generator. 32 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER /T D [P3 /TxD ] pin MITSUBISHI MICROCOMPUTERS 38C2 Group ...

Page 33

... N-channel open drain output (in output mode) Not used (return “1” when read For Serial I/ For Serial I/O2 Fig. 29 Structure of serial I/O related registers SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS 38C2 Group Serial I/O control register (SIO1CON : address 0FE0 ) 16 [SIO2CON : address 0FE3 ] 16 BRG count source selection bit (CSS) ...

Page 34

... Fig. 30 Structure of A-D control register A-D control circuit Comparator A-D conversion register (H) (Address 001B ) 16 Resistor ladder AV SS MITSUBISHI MICROCOMPUTERS 38C2 Group b0 A-D control register (ADCON: address 0019 ) 16 Analog input pin selection bits / /AN ...

Page 35

... Note : Only pins set to output ports by the direction register can be controlled to switch to output ports or segment outputs by the segment output disable register. MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Maximum number of display pixels 48 dots or 8 segment LCD 6 digits 72 dots ...

Page 36

... Fig. 33 Block diagram of LCD controller/driver 36 MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 37

... Also, these pins are set to the input port after reset, the V is output by the pull-up resistor 1/2 bias MITSUBISHI MICROCOMPUTERS 38C2 Group –COM ) to be used are determined by duty 0 ...

Page 38

... Not used (return “0” when read) (Do not write to “1”) Vcc LCD power control register (bit MITSUBISHI MICROCOMPUTERS 38C2 Group CC pin ...

Page 39

... SEG 19 SEG 21 SEG MITSUBISHI MICROCOMPUTERS 38C2 Group (divider division ratio for LCD) f(LCDCK) duty ratio using the external L1 L3 ” to dividing resistor for LCD power selection bits SEG ...

Page 40

... COM OFF COM COM OFF COM COM COM MITSUBISHI MICROCOMPUTERS 38C2 Group Voltage level COM COM ...

Page 41

... O N OFF COM COM COM COM COM COM COM MITSUBISHI MICROCOMPUTERS 38C2 Group Voltage level COM COM ...

Page 42

... frame 1 frame COM COM MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER L2 COM COM 1 ...

Page 43

... COM COM MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 44

... STP instruction disable bit 0: STP instruction enabled 1: STP instruction disabled Watchdog timer count source selection bit 0: 1/1024 of system clock 1: 1/4 of system clock 32 (at f(X msec MITSUBISHI MICROCOMPUTERS 38C2 Group )) = 8 MHz): 32.768 KHz): 8.19s CIN “ ” ...

Page 45

... “ 1 ” MITSUBISHI MICROCOMPUTERS 38C2 Group b0 Clock output control register (CKOUT : address 0018 P3 clock output control bit 6 0: Timer 2 output 1: System clock output Not used (returns “ ...

Page 46

... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER RESET (min.) and 5 (min.). CC RESET Fig. 47 Reset circuit example ? ? ? : about 8000 cycles ) and f • MITSUBISHI MICROCOMPUTERS 38C2 Group Poweron Power source voltage Reset input voltage V IL spec Power source voltage detection ...

Page 47

... Since the initial values for other than above mentioned registers and RAM contents are indefinite at reset, they must be set MITSUBISHI MICROCOMPUTERS 38C2 Group ...

Page 48

... Fig. 51 External clock input circuit MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER and X oscillations. The sufficient time IN CIN ) > ...

Page 49

... Through mode “ ” WIT instruction R MITSUBISHI MICROCOMPUTERS 38C2 Group “ ...

Page 50

... =“1” =“0” first, and then, change CM after the oscillation MITSUBISHI MICROCOMPUTERS 38C2 Group CPU mode register (CPUM : address 003B ) Main clock division ratio selection bits (frequency/8) ...

Page 51

... OSCOUT control “ ” , “ ” , “ ” “ ” STP instruction MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER pin or X pin of the oscillation OUT COUT by this function for the circuits except this MCU ...

Page 52

... The read-modify-write instructions (ROR, CLB, or SEB, etc direction register. Use instructions such as LDM and STA, etc., to set the port direction registers. 52 MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Serial I/O In clock synchronous serial I/O, if the receive side is using an exter- nal clock and output the S ...

Page 53

... CNV MITSUBISHI MICROCOMPUTERS 38C2 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Ratings –0.3 to 6.5 –0 +0.3 CC –0 6.5 L2 –0 +0.3 CC –0 +0.3 CC –0 +0.3 L3 –0 +0.3 L3 – ...

Page 54

... P6 – – – – – – MITSUBISHI MICROCOMPUTERS 38C2 Group Limits Unit Min. Typ. Max. –20 mA – 110 mA –10 mA – –1.0 mA –5 ...

Page 55

... P4 –P4 , Pull-up “OFF” 5 Pull-up “ON” 1 Pull-up “ON” MITSUBISHI MICROCOMPUTERS 38C2 Group Limits Min. Typ. Max. 4.0 (15 V –16)/11 CC 8.0 (30 V –32)/ –32 CC 32.768 50 ) < f(X )/3. CIN IN Limits Min. ...

Page 56

... Output transistors “OFF” Low-speed mode °C f stopped IN f 32.768 kHz (in WIT state) CIN Output transistors “OFF” All oscillation stopped °C (in STP state °C Output transistors “OFF” MITSUBISHI MICROCOMPUTERS 38C2 Group Limits Unit Min. Typ. Max. 1.8 5.5 V 5.1 7.5 mA 1.0 2 ...

Page 57

... LCD circuit division ratio = divided by 8 RSEL = “01” LCD circuit division ratio = divided by 2 RSEL = “01” LCD circuit division ratio = divided by 4 RSEL = “01” LCD circuit division ratio = divided by 8 RSEL = “01” MITSUBISHI MICROCOMPUTERS 38C2 Group Limits Unit Min ...

Page 58

... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Parameter input 0FE3 is “0” (UART Parameter input) IN 11000/(15 V tc(CNTR)/2–20 tc(CNTR)/2–20 or 0FE3 is “0” (UART MITSUBISHI MICROCOMPUTERS 38C2 Group Limits Unit Min. Typ. Max 125 250 ns 105 ns 105 ...

Page 59

... Measurement output pin 100pF N-channel open-drain output (Note) Note: When bit 4 of the UART control register (address 0EF1 (N-channel open-drain output mode) MITSUBISHI MICROCOMPUTERS 38C2 Group Limits Min. Typ. Max. (S )/2–30 CLK (S )/2–30 ...

Page 60

... 0. 0. MITSUBISHI MICROCOMPUTERS 38C2 Group t (CNTR (INT ...

Page 61

... Lead Material 1.11 Alloy Detail F Weight(g) Lead Material – Cu Alloy Detail F MITSUBISHI MICROCOMPUTERS 38C2 Group Plastic 64pin 14 14mm body QFP Recommended Mount Pad Dimension in Millimeters Symbol Min Nom Max A – – 3. 0.1 0 – ...

Page 62

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

REVISION DESCRIPTION LIST Rev. No. 1.0 First Edition 1.1 P53 Table 12 Recommended operating condition Parameter “ 38C2 GROUP DATA SHEET Revision Description ” (wrong) “ ” (correct) IN CIN ...

Related keywords