M38869FFAHP Renesas Electronics America, M38869FFAHP Datasheet

no-image

M38869FFAHP

Manufacturer Part Number
M38869FFAHP
Description
IC 740 MCU FLASH 61K 80LQFP
Manufacturer
Renesas Electronics America
Series
740/38000r
Datasheet

Specifications of M38869FFAHP

Core Processor
740
Core Size
8-Bit
Speed
10MHz
Connectivity
I²C, SIO, UART/USART
Peripherals
PWM, WDT
Number Of I /o
64
Program Memory Size
60KB (60K x 8)
Program Memory Type
FLASH
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 8x10b; D/A 2x8b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 85°C
Package / Case
80-LQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M38869FFAHP
Manufacturer:
MIT
Quantity:
20 000
Part Number:
M38869FFAHP#UU
Manufacturer:
Renesas Electronics America
Quantity:
10 000
To our customers,
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Renesas Electronics website:
Old Company Name in Catalogs and Other Documents
http://www.renesas.com
April 1
Renesas Electronics Corporation
st
, 2010

Related parts for M38869FFAHP

M38869FFAHP Summary of contents

Page 1

To our customers, Old Company Name in Catalogs and Other Documents st On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the ...

Page 2

All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm ...

Page 3

To all our customers Regarding the change of names mentioned in the document, such as Mitsubishi Electric and Mitsubishi XX, to Renesas Technology Corp. The semiconductor operations of Hitachi and Mitsubishi Electric were transferred to Renesas Technology Corporation on April ...

Page 4

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 5

PIN CONFIGURATION (TOP VIEW ...

Page 6

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

Page 7

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

Page 8

PIN DESCRIPTION Table 1 Pin description (1) Pin Name •Apply voltage of 2.7 V – 5 Vcc, and Vss Power source CC SS •In the flash memory version, apply voltage of 4.0 ...

Page 9

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 10

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

Page 11

... M38869M8A-XXXHP M38869M8A-XXXGP M38869MCA-XXXHP 49152 (19022) M38869MCA-XXXGP M38869MFA-XXXHP M38869MFA-XXXGP 61440 (61310) M38869FFAHP M38869FFAGP 8 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Packages 80P6Q-A .................................. 0.5 mm-pitch plastic molded LQFP 80P6S-A ................................... 0.65mm pitch plastic molded QFP 80D0 ....................... 0.8 mm-pitch ceramic LCC (EPROM version) The pin number and the position of the function pin may change by the kind of package ...

Page 12

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 13

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 14

...

Page 15

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 16

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

Page 17

– ...

Page 18

...

Page 19

...

Page 20

...

Page 21

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

Page 22

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 23

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

Page 24

...

Page 25

...

Page 26

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 27

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 28

...

Page 29

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 30

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 31

...

Page 32

...

Page 33

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 34

...

Page 35

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 36

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 37

...

Page 38

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 39

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

Page 40

...

Page 41

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 42

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

Page 43

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 44

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 45

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 46

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 47

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 48

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 49

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 50

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 51

...

Page 52

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 53

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 54

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 55

...

Page 56

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 57

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 58

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 59

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 60

...

Page 61

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 62

“ 0 ” “ 1 ” ...

Page 63

“ 1 ” ...

Page 64

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 and CM 0 address 003B ). In memory expansion mode and microprocessor 16 mode, ...

Page 65

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 66

EPROM MODE The built-in PROM of the blank One Time PROM version and built- in EPROM version can be read or programmed with a general-purpose PROM programmer using a special programming adapter. The One Time PROM version and the built-in ...

Page 67

... Note also that the M38869FFAHP/GP does not contain a facility to read out a device identification code by applying a high voltage to address input (A9). Be careful not to erratically set program condi- tions when using a general-purpose PROM programmer. Table 18 shows the pin assignments when operating in the paral- lel input/output mode ...

Page 68

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

Page 69

... Fig. 66 Pin connection of M38869FFAHP/GP when operating in parallel input/output mode 66 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER AGP MITSUBISHI MICROCOMPUTERS 3886 Group ...

Page 70

... DDI = Device identification data : manufacturer’s code 1C X can SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER shown in Figure 67, and the M38869FFAHP/GP will output the contents of the user’s specified address from data I/O pin to the L PP external. In this mode, the user cannot perform any operation other than read. Valid address ...

Page 71

... WE input. When the address of a memory location to be read is input in the second cycle, with control signals input at the timing shown in Figure 68, the M38869FFAHP/GP outputs the contents of the specified address from the data I/O pins to the external. V ...

Page 72

... M38869FFAHP/GP internally latches the address at the falling edge of the WE input and the ___ data at the rising edge of the WE input. The M38869FFAHP/GP starts programming at the rising edge of the WE input in the sec- ond cycle and finishes programming within measured by its internal timer ...

Page 73

... WE input. When control signals are input in the second cycle at the timing shown in Figure 70, the must be written to M38869FFAHP/GP outputs the contents of the specified address 16 to the external. Note: If any memory location where the contents have not been erased is found in the erase verify operation, execute the op- eration of “ ...

Page 74

... FF the third cycle, the erase or program command is disabled (i.e., reset), and the M38869FFAHP/GP is placed in the read mode. If the reset command is executed, the contents of the memory does not change. Device identification code command ...

Page 75

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

Page 76

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 77

... Fig. 72 Pin connection of M38869FFAHP/GP when operating in serial I/O mode 74 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER connecting wires as shown in Figures 72 and powering on the V pin and then applying V In the serial I/O mode, the user can use six types of software com- mands: read, program, program verify, erase, erase verify and error check ...

Page 78

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

Page 79

... Input command code 00 in the first transfer. Proceed and input 16 the low-order 8 bits and the high-order 8 bits of the address and __ pull the OE pin low. When this is done, the M38869FFAHP/GP reads out the contents of the specified address, and then latchs SCLK SDA ...

Page 80

... Fig. 74 Timings during programming Program verify command Input command code C0 in the first transfer. Proceed and drive 16 __ the OE pin low. When this is done, The M38869FFAHP/GP verify- reads the programmed address’s contents, and then latchs it into SCLK SDA Command code input (C0 OE BUSY “ ...

Page 81

... OE pin low. When this is done, the M38869FFAHP/GP reads out the contents of the specified ad- dress, and then latchs it into the internal data latch. When the OE pin is released back high and serial clock is input to the SCLK pin, ...

Page 82

... Figure 71. SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER temporarily drop the V the serial input/output mode. Then, place the M38869FFAHP/GP into the serial I/O mode back again. The serial communication cir- cuit is reset by this operation and is ready to accept commands. The error flag alone is not cleared by this operation, so the user can examine the serial communication circuit’ ...

Page 83

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 84

... 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 reading to/from the flash memory control register (see Figure 79) and the flash command register (see Figure 80). ...

Page 85

... When “00 " is written to the flash command register, the 16 M38869FFAHP/GP enters the read mode. The contents of the corresponding address can be read by reading the flash memory (For instance, with the LDA instruction etc.) under this condition. The read mode is maintained until another command code is written to the flash command register ...

Page 86

... When “FF register two times continuously after “40 flash command register, the program, or erase command becomes invalid (reset), and the M38869FFAHP/GP enters the reset mode. The contents of the memory does not change even if the reset com- mand is executed. ...

Page 87

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

Page 88

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 89

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 90

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

Page 91

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 92

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 93

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 94

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

Page 95

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 96

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 97

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

Page 98

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

Page 99

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

Page 100

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

Page 101

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 102

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

Page 103

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

Page 104

...

Page 105

...

Page 106

...

Page 107

...

Page 108

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 109

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

Page 110

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

Page 111

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 112

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 113

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

Related keywords