M38867E8AHP MITSUBISHI [Mitsubishi Electric Semiconductor], M38867E8AHP Datasheet

no-image

M38867E8AHP

Manufacturer Part Number
M38867E8AHP
Description
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER??
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M38867E8AHP
Quantity:
360
Part Number:
M38867E8AHP
Manufacturer:
MITSUBISHI
Quantity:
20 000
Part Number:
M38867E8AHP EA
Manufacturer:
FUJI
Quantity:
10 800
Part Number:
M38867E8AHP EA
Manufacturer:
RENESAS
Quantity:
1 000
Part Number:
M38867E8AHP EA
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
DESCRIPTION
The 3886 group is the 8-bit microcomputer based on the 740 fam-
ily core technology.
The 3886 group is designed for controlling systems that require
analog signal processing and include two serial I/O functions, A-D
converters, D-A converters, system data bus interface function,
watchdog timer, and comparator circuit.
The multi-master I
FEATURES
<Microcomputer mode>
Basic machine-language instructions ...................................... 71
Minimum instruction execution time .................................. 0.4 s
(at 10 MHz oscillation frequency)
Memory size
ROM ................................................................. 32K to 60K bytes
RAM ............................................................... 1024 to 2048 bytes
Programmable input/output ports ............................................ 72
Software pull-up resistors ................................................. Built-in
Interrupts ................................................. 21 sources, 16 vectors
(Included key input interrupt)
Timers ............................................................................. 8-bit
Serial I/O1 .................... 8-bit
Serial I/O2 ................................... 8-bit
PWM output circuit ....................................................... 14-bit
Bus interface .................................................................... 2 bytes
I
A-D converter ............................................... 10-bit
D-A converter ................................................. 8-bit
Comparator circuit ...................................................... 8 channels
Watchdog timer ............................................................ 16-bit
Clock generating circuit ..................................... Built-in 2 circuits
(connect to external ceramic resonator or quartz-crystal oscillator)
Power source voltage
In high-speed mode .................................................. 4.0 to 5.5 V
(at 10 MHz oscillation frequency)
In middle-speed mode ........................................... 2.7 to 5.5 V(*)
(at 10 MHz oscillation frequency)
In low-speed mode ............................................... 2.7 to 5.5 V (*)
(at 32 kHz oscillation frequency)
2
C bus interface (option) ............................................. 1 channel
2
C bus interface can be added by option.
(*: 4.0 to 5.5 V for Flash memory version)
1(UART or Clock-synchronized)
1(Clock-synchronized)
8 channels
2 channels
4
2
1
<Flash memory mode>
APPLICATION
Household product, consumer electronics, communications, note
book PC, etc.
Operating temperature range (at programming/erasing)
Notes
Power dissipation
In high-speed mode .......................................................... 40 mW
(at 10 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)
Memory expansion possible (only for M38867M8A/E8A)
Operating temperature range .................................... –20 to 85°C
Supply voltage ................................................. V
Program/Erase voltage ............................... V
Programming method ...................... Programming in unit of byte
Erasing method
Batch erasing ........................................ Parallel/Serial I/O mode
Block erasing .................................... CPU reprogramming mode
Program/Erase control by software command
Number of times for programming/erasing ............................ 100
1. The flash memory version cannot be used for application em-
2. Power source voltage Vcc of the flash memory version is 4.0
..................................................................... Normal temperature
bedded in the MCU card.
to 5.5 V.
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
3886 Group
PP
CC
= 11.7 to 12.6 V
= 5 V ± 10 %

Related parts for M38867E8AHP

M38867E8AHP Summary of contents

Page 1

DESCRIPTION The 3886 group is the 8-bit microcomputer based on the 740 fam- ily core technology. The 3886 group is designed for controlling systems that require analog signal processing and include two serial I/O functions, A-D converters, D-A converters, system ...

Page 2

... Fig. 1 M38867M8A-XXXHP, M38867E8AHP pin configuration PIN CONFIGURATION (TOP VIEW ...

Page 3

PIN CONFIGURATION (TOP VIEW) P3 /PWM /PWM / / / / / / / / REF ...

Page 4

FUNCTIONAL BLOCK Fig. 4 Functional block diagram 4 MITSUBISHI MICROCOMPUTERS 3886 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 5

PIN DESCRIPTION Table 1 Pin description (1) Pin Name Power source CC SS CNV CNV input Reference voltage REF AV Analog power source SS Reset input RESET X Clock input IN X Clock output ...

Page 6

Table 2 Pin description (2) Pin Name COUT CIN P4 /INT 2 0 /OBF 00 P4 /INT 3 1 I/O port P4 /OBF 01 P4 /RxD 4 P4 /TxD CLK1 ...

Page 7

PART NUMBERING Fig. 5 Part numbering SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 8

... Fig. 6 Memory expansion plan Currently products are listed below. Table 3 Support products (P) ROM size (bytes) Product name ROM size for User in ( M38867M8A-XXXHP M38867E8A-XXXHP M38867E8AHP 32768 (32638) M38867E8AFS M38869M8A-XXXHP M38869M8A-XXXGP M38869MCA-XXXHP 49152 (19022) M38869MCA-XXXGP M38869MFA-XXXHP M38869MFA-XXXGP 61440 (61310) ...

Page 9

FUNCTIONAL DESCRIPTION CENTRAL PROCESSING UNIT (CPU) The 3886 group uses the standard 740 Family instruction set. Re- fer to the table of 740 Family addressing modes and machine instructions or the 740 Family Software Manual for details on the instruction ...

Page 10

MEMORY 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. RAM RAM is used for data storage and for stack area of subroutine calls and ...

Page 11

...

Page 12

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

Page 13

Table 5 I/O port function (2) Pin Name Input/Output /INT /INT Port P5 P5 /INT /CNTR /CNTR ...

Page 14

– ...

Page 15

...

Page 16

...

Page 17

...

Page 18

Fig. 14 Structure of port I/O related register 18 MITSUBISHI MICROCOMPUTERS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 19

INTERRUPTS Interrupts occur by 16 sources among 21 sources: nine external, eleven internal, and one software. Interrupt Control Each interrupt is controlled by an interrupt request bit, an interrupt enable bit, and the interrupt disable flag except for the software ...

Page 20

Table 6 Interrupt vector addresses and priority Vector Addresses (Note 1) Interrupt Source Priority High Reset (Note 2) 1 FFFD INT 0 2 FFFB Input buffer full (IBF) INT 1 3 FFF9 Output buffer empty (OBE) Serial I/O1 4 FFF7 ...

Page 21

...

Page 22

...

Page 23

Key Input Interrupt (Key-on Wake Up) A Key input interrupt request is generated by applying “L” level to any pin of port P3 that have been set to input mode. In other words generated when AND of input ...

Page 24

TIMERS The 3886 group has four timers: timer X, timer Y, timer 1, and timer 2. The division ratio of each timer or prescaler is given by 1/(n + 1), where n is the value in the corresponding timer or ...

Page 25

...

Page 26

SERIAL I/O Serial I/O1 Serial I/O1 can be used as either clock synchronous or asynchro- nous (UART) serial I/O. A dedicated timer is also provided for baud rate generation ...

Page 27

Asynchronous Serial I/O (UART) Mode Clock asynchronous serial I/O mode (UART) can be selected by clearing the serial I/O1 mode selection bit of the serial I/O1 control register to “0”. Eight serial data transfer formats can be selected, and ...

Page 28

...

Page 29

...

Page 30

Serial I/O2 The serial I/O2 function can be used only for clock synchronous serial I/O. For clock synchronous serial I/O the transmitter and the receiver must use the same clock. If the internal clock is used, transfer is started by ...

Page 31

...

Page 32

PULSE WIDTH MODULATION (PWM) OUTPUT CIRCUIT The 3886 group has two PWM output circuits, PWM0 and PWM1, with 14-bit resolution respectively. These can operate indepen- dently. When the oscillation frequency X minimum resolution bit width is 200 ns and the ...

Page 33

Data Setup (PWM0) The PWM0 output pin also functions as port P3 PWM0 output pin is selected from either P3 P5 /PWM by bit 4 of the AD/DA control register (address 6 01 0034 ). 16 The PWM0 output becomes ...

Page 34

...

Page 35

BUS INTERFACE The 3886 group has a 2-byte bus interface function which is al- most functionally equal to MELPS8-41 series and the control signal from the host CPU side can operate it (slave mode possible to connect the ...

Page 36

Fig. 33 Structure of bus interface related register 36 MITSUBISHI MICROCOMPUTERS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 37

...

Page 38

Bus Buffer Status Register 0, 1 (DBBSTS0, DBBSTS1)] 0029 16 The data bus buffer status register 0, 1 consist of eight bits. Bits 0, 1, and 3 are read-only bits and indicate the condition of the data bus buffer. ...

Page 39

Table 8 Function description of control I/O pins at bus interface function selected OBF 00 Pin Name output enable bit P4 /SRDY – – /INT 1 20 ...

Page 40

MULTI-MASTER I C-BUS INTERFACE 2 The multi-master I C-BUS interface is a serial communications cir- 2 cuit, conforming to the Philips I C-BUS data transfer format. This interface, offering both arbitration lost detection and a synchro ...

Page 41

C Data Shift Register (S0)] 0012 2 The I C data shift register (S0 : address 0012 register to store receive data and write transmit data. When transmit data is written into this register transferred to ...

Page 42

C Clock Control Register (S2)] 0016 2 The I C clock control register (address 0016 control, S mode and S frequency •Bits frequency control bits (CCR0–CCR4) CL These bits control the S ...

Page 43

C Control Register (S1D)] 0015 2 The I C control register (address 0015 ) controls data communi- 16 cation format. •Bits Bit counter (BC0–BC2) These bits decide the number of bits for the next 1-byte ...

Page 44

C Status Register (S1)] 0014 2 The I C status register (address 0014 ) controls the I 16 terface status. The low-order 4 bits are read-only bits and the high-order 4 bits can be read out and written ...

Page 45

Communication mode specification bit (transfer direc- tion specification bit: TRX) This bit decides a direction of transfer for data communication. When this bit is “0,” the reception mode is selected and the data of a transmitting device is ...

Page 46

START Condition Generating Method When writing “1” to the MST, TRX, and BB bits of the I register (address 0014 ) at the same time after writing the slave 16 2 address to the I C data shift register (address ...

Page 47

C START/STOP Condition Control Register (S2D)] 0017 16 2 The I C START/STOP condition control register (address 0017 controls START/STOP condition detection. •Bits START/STOP condition set bit (SSC4–SSC0) S release time, setup time, and hold ...

Page 48

...

Page 49

Example of Master Transmission An example of master transmission in the standard clock mode, at the S frequency of 100 kHz and in the ACK return mode is CL shown below. Set a slave address in the high-order 7 bits ...

Page 50

START condition generating procedure using multi-master 1. Procedure example (The necessary conditions of the generat- ing procedure are described as the following LDA — (Taking out of slave address value) SEI (Interrupt disabled) BBS 5, S1, ...

Page 51

A-D CONVERTER [A-D Conversion Register 1,2 (AD1, AD2)] 0035 , 0038 16 16 The A-D conversion register is a read-only register that stores the result of an A-D conversion. When reading this register during an A-D conversion, the previous conversion ...

Page 52

...

Page 53

D-A CONVERTER The 3886 group has two internal D-A converters (DA with 8-bit resolution. The D-A converter is performed by setting the value in each D-A conversion register. The result of D-A conversion is output from the ...

Page 54

COMPARATOR CIRCUIT Comparator Configuration The comparator circuit consists of resistors, comparators, a com- parator control circuit, the comparator reference input selection bit (bit 7 of address 001D ), a comparator data register (address 16 002D ), the comparator reference power ...

Page 55

WATCHDOG TIMER The watchdog timer gives a mean of returning to the reset status when a program cannot run on a normal loop (for example, be- cause of a software run-away). The watchdog timer consists of an 8-bit watchdog timer ...

Page 56

RESET CIRCUIT To reset the microcomputer, RESET pin should be held at an "L" level for more. Then the RESET pin is returned to an "H" level (the power source voltage should be between 2.7 V and ...

Page 57

...

Page 58

CLOCK GENERATING CIRCUIT The 3886 group has two built-in oscillation circuits. An oscillation circuit can be formed by connecting a resonator between and X ). Use the circuit constants in accordance OUT CIN COUT with the resonator ...

Page 59

“ 0 ” “ 1 ” ...

Page 60

“ 1 ” ...

Page 61

PROCESSOR MODE Single-chip mode, memory expansion mode, and microprocessor mode in the M38867M8A/E8A can be selected by changing the contents of the processor mode bits (CM 0 address 003B ). In memory expansion mode and microprocessor 16 mode, memory can ...

Page 62

BUS CONTROL AT MEMORY EXPANSION The M38867M8A/E8A have a built-in ONW function to facilitate access to an external (expanded) memory and I/O devices in memory expansion mode or microprocessor mode “L” level signal is input to the P3 ...

Page 63

... PCA4738H-80A PCA4738L-80A 80D0 Table 17 PROM programmer setup PROM programmer setup Product name Corresponding Writing device area M38867E8AHP M5M27C101K 08080 16 byte | M38867E8AFS program 0FFFD 16 The PROM of the blank One Time PROM version is not tested or screened in the assembly process and following processes. To en- sure proper operation after programming, the procedure shown in Figure 65 is recommended to verify programming ...

Page 64

FLASH MEMORY MODE The M38869FFAHP/GP has the flash memory mode in addition to the normal operation mode (microcomputer mode). The user can use this mode to perform read, program, and erase operations for the internal flash memory. The M38869FFAHP/GP has ...

Page 65

Table 20 Pin description (flash memory parallel I/O mode) Pin Name Power supply CC SS CNV V input SS PP _____ RESET Reset input X Clock input IN X Clock output OUT AV Analog supply input SS ...

Page 66

...

Page 67

Read-only Mode The microcomputer enters the read-only mode by applying V to the V pin. In this mode, the user can input the address memory location to be read and the control signals at the timing V ...

Page 68

Read command The microcomputer enters the read mode by inputting command code “00 ” in the first cycle. The command code is latched into 16 the internal command latch at the rising edge of the WE input. When the address ...

Page 69

Program command The microcomputer enters the program mode by inputting com- mand code “40 ” in the first cycle. The command code is latched 16 into the internal command latch at the rising edge of the WE input. When the ...

Page 70

Erase command The erase command is executed by inputting command code 20 in the first cycle and command code 20 cycle. The command code is latched into the internal command ___ latch at the rising edges of the WE input ...

Page 71

Reset command The reset command provides a means of stopping execution of the erase or program command safely. If the user inputs command code FF in the second cycle after inputting the erase or program 16 command in the first ...

Page 72

Program START ADRS = first location WRITE PROGRAM COMMAND WRITE PROGRAM DATA DURATION = WRITE PROGRAM-VERIFY COMMAND DURATION = 6 s ...

Page 73

Table 22 DC ELECTRICAL CHARACTERISTICS (T Symbol Parameter I SB1 V supply current (at standby SB2 I V supply current (at read) CC1 supply current (at program) CC2 supply current (at erase) ...

Page 74

Flash memory mode 2 (serial I/O mode) The M38869FFAHP/GP has a function to serially input/output the software commands, addresses, and data required for operation on the internal flash memory (e. g., read, program, and erase) us- ing only a ...

Page 75

Table 25 Pin description (flash memory serial I/O mode) Pin Name Power supply CC SS CNV V input SS PP _____ RESET Reset input X Clock input IN X Clock output OUT AV Analog supply input SS ...

Page 76

Functional Outline (serial I/O mode) In the serial I/O mode, data is transferred synchronously with the clock using serial input/output. The input data is read from the SDA pin into the internal circuit synchronously with the rising edge of the ...

Page 77

Program command Input command code 40 in the first transfer. Proceed and input 16 the low-order 8 bits and the high-order 8 bits of the address and then program data. Programming is initiated at the last rising edge of the ...

Page 78

Erase command Input command code 20 in the first transfer and command code 16 20 again in the second transfer. When this is done, the 16 M38869FFAHP/GP executes an erase command. Erase is initi- ated at the last rising edge ...

Page 79

Error check command Input command code 80 in the first transfer, and the 16 M38869FFAHP/GP outputs error information from the SDA pin, beginning at the next falling edge of the serial clock. If the LSB bit of the 8-bit error ...

Page 80

DC ELECTRICAL CHARACTERISTICS -relevant standards during read, program, and erase are the same as in the parallel input/output mode for the SCLK, SDA, BUSY, OE pins conform to the microcomputer modes. IL ...

Page 81

Flash memory mode 3 (CPU reprogramming mode) The M38869FFAHP/GP has the CPU reprogramming mode where a built-in flash memory is handled by the central processing unit (CPU). In CPU reprogramming mode, the flash memory is handled by writing and ...

Page 82

CPU reprogramming mode operation procedure The operation procedure in CPU reprogramming mode is de- scribed below. < Beginning procedure > Apply the CNVss/V pin for reset release. PP After CPU reprogramming mode control program is transferred to ...

Page 83

Program command When “40 ” is written to the flash command register, the 16 M38869FFAHP/GP enters the program mode. Subsequently to this, if the instruction (for instance, STA instruction) for writing byte data in the address to be programmed is ...

Page 84

Program START ADRS = first location WRITE PROGRAM COMMAND WRITE PROGRAM DATA WAIT ERASE PROGRAM BUSY FLAG = 0 YES WRITE PROGRAM-VERIFY COMMAND DURATION = ...

Page 85

NOTES ON PROGRAMMING Processor Status Register The contents of the processor status register (PS) after a reset are undefined, except for the interrupt disable flag (I) which is “1.” Af- ter a reset, initialize flags which affect program execution. In ...

Page 86

NOTES ON USAGE Handling of Power Source Pins In order to avoid a latch-up occurrence, connect a capacitor suit- able for high frequencies as bypass capacitor between power source pin (V pin) and GND pin ( source pin ...

Page 87

ELECTRICAL CHARACTERISTICS Table 28 Absolute maximum ratings Symbol Parameter V Power source voltage (Note Power source voltage (Note Input voltage P0 – – ...

Page 88

Table 29 Recommended operating conditions (V = 2 4.0 to 5.5 V for flash memory version Symbol V CC Power source voltage (except flash memory version Power source voltage (flash ...

Page 89

Table 30 Recommended operating conditions (V = 2 4.0 to 5.5 V for flash memory version Symbol I “H” total peak output current OH(peak) “H” total peak output current I OH(peak) “L” ...

Page 90

Table 31 Recommended operating conditions (V = 2 4.0 to 5.5 V for flash memory version Symbol “H” peak output current I OH(peak) “L” peak output current I OL(peak) “L” peak output ...

Page 91

Table 32 Electrical characteristics (V = 2 4.0 to 5.5 V for flash memory version Symbol Parameter “H” output voltage P0 – – –P3 ...

Page 92

Table 33 Electrical characteristics (V = 2 4.0 to 5.5 V for flash memory version Symbol Parameter I Power source current CC 92 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER = ...

Page 93

Table 34 A-D converter characteristics ( 2 4.0 to 5.5 V for flash memory version otherwise noted) 10-bit A-D mode (when conversion mode selection bit (bit 7 of address 0038 ...

Page 94

TIMING REQUIREMENTS Table 38 Timing requirements ( 4 – °C, unless otherwise noted Symbol t (RESET) Reset input “L” pulse width ...

Page 95

Table 39 Timing requirements ( 2 – °C, unless otherwise noted Symbol t (RESET) Reset input “L” pulse width Main ...

Page 96

Table 40 Timing requirements for system bus interface (V = 4 – °C, unless otherwise noted Symbol t (S- setup time 0 ...

Page 97

Table 42 Switching characteristics 4 – °C, unless otherwise noted Symbol Serial I/O1 clock output “H” pulse width WH CLK1 ...

Page 98

Table 44 Switching characteristics for system bus interface (V = 4 – °C, unless otherwise noted Symbol t (R-D) After read data output enable time a ...

Page 99

Table 46 Timing requirements in memory expansion mode and microprocessor mode (V = 4 – °C, in high-speed mode, unless otherwise noted Symbol ONW input setup ...

Page 100

Fig. 83 Circuit for measuring output switching characteristics (1) 100 ...

Page 101

...

Page 102

...

Page 103

...

Page 104

...

Page 105

Table 48 Multi-master I C-BUS bus line characteristics Symbol t Bus free time BUF t Hold time for START condition HD;STA t Hold time for S clock = “0” LOW CL t Rising time of both S and S ...

Page 106

PACKAGE OUTLINE 80P6Q-A EIAJ Package Code JEDEC Code LQFP80-P-1212-0.5 – 80D0 EIAJ Package Code JEDEC Code – – 21.0 0.2 INDEX 106 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Weight(g) Lead ...

Page 107

EIAJ Package Code JEDEC Code QFP80-P-1414-0. SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Weight(g) Lead Material 1.11 Alloy Detail F ...

Page 108

REVISION DESCRIPTION LIST Rev. No. 1.0 First Edition 2.0 The contents of flash memory version were added. 2.1 All pages; “PRELIMINARY Notice: This is...” eliminated. Page 1; The second “In high-speed mode” of “Power dissipation” eliminated. Page 1; “Memory expansion” ...

Page 109

REVISION DESCRIPTION LIST Rev. No. 2.1 Page 73; Minimum limits of V Page 74; Figure 72 is partly revised. Page 81; Explanation of “Flash memory mode 3 (CPU reprogramming mode)” is added. Page 81; Note into Figure 79 is eliminated ...

Page 110

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

Related keywords