M38049FFFP MITSUBISHI, M38049FFFP Datasheet

no-image

M38049FFFP

Manufacturer Part Number
M38049FFFP
Description
Manufacturer
MITSUBISHI
Datasheet
DESCRIPTION
The 3803/3804 group is the 8-bit microcomputer based on the 740
family core technology.
The 3803/3804 group is designed for household products, office
automation equipment, and controlling systems that require ana-
log signal processing, including the A-D converter and D-A
converters.
The 3804 group is the version of the 3803 group to which an I
BUS control function has been added.
FEATURES
Basic machine-language instructions ...................................... 71
Minimum instruction execution time ................................ 0.24 s
Memory size
ROM ............................................................... 16 K to 60 K bytes
RAM ................................................................. 640 to 2048 bytes
Programmable input/output ports ............................................ 56
Software pull-up resistors ................................................. Built-in
Interrupts
21 sources, 16 vectors ............................................... 3803 group
23 sources, 16 vectors ............................................... 3804 group
Timers ........................................................................... 16-bit
Watchdog timer ............................................................ 16-bit
Serial I/O ...................... 8-bit
PWM ............................................ 8-bit
I
A-D converter ............................................. 10-bit
D-A converter ................................................. 8-bit
LED direct drive port .................................................................. 8
Clock generating circuit ..................................... Built-in 2 circuits
(connect to external ceramic resonator or quartz-crystal oscillator)
Power source voltage
In high-, middle-speed mode
At 16.8 MHz oscillation frequency ............................ 4.5 to 5.5 V
At 12.5 MHz oscillation frequency ............................ 4.0 to 5.5 V
At 8.38 MHz oscillation frequency) ........................ 2.7 to 5.5 V
In low-speed mode
At 32 kHz oscillation frequency .............................. 2.7 to 5.5 V
Power dissipation
In high-speed mode ................................................ 60 mW (typ.)
(at 16.8 MHz oscillation frequency, at 5 V power source voltage)
In low-speed mode ................................................... 60 W (typ.)
(at 32 kHz oscillation frequency, at 3 V power source voltage)
Operating temperature range .................................... –20 to 85°C
Packages
SP .................................................. 64P4B (64-pin 750 mil SDIP)
FP ....................................... 64P6N-A (64-pin 14
HP ..................................... 64P6Q-A (64-pin 10
2
C-BUS interface (3804 group only) ........................... 1 channel
( This value of flash memory version is 4.0 to 5.5 V.)
(external 8, internal 12, software 1)
(external 9, internal 13, software 1)
(at 16.8 MHz oscillation frequency)
2 (UART or Clock-synchronized)
8-bit
1 (Clock-synchronized)
1 (with 8-bit prescaler)
(8-bit reading enabled)
(with 8-bit prescaler)
10 mm LQFP)
14 mm QFP)
16 channels
2 channels
8-bit
2
C-
1
4
1
<Flash memory mode>
Notes
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. Supply voltage Vcc of the flash memory version is 4.0 to 5.5
Operating temperature range (at programming/erasing) ...........
........................................................................ Room temperature
bedded in the MCU card.
V.
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3803/3804 Group
MITSUBISHI MICROCOMPUTERS
PP
= 11.7 V to 12.6 V
CC
= 5 V ± 10 %

Related parts for M38049FFFP

M38049FFFP Summary of contents

Page 1

... Room temperature Notes 1. The flash memory version cannot be used for application em- bedded in the MCU card. 2. Supply voltage Vcc of the flash memory version is 4 8-bit 4 (with 8-bit prescaler channels 2 channels 14 mm QFP LQFP) MITSUBISHI MICROCOMPUTERS = 5 V ± 11 12 ...

Page 2

... Package type : 64P4B MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 32 P2 LED LED LED LED ...

Page 3

... Fig. 4 3804 group pin configuration M38049FFFP/ M38047M8-XXXFP/ ...

Page 4

... FUNCTIONAL BLOCK Fig. 5 3803 group functional block diagram 4 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 5

... Fig. 6 3804 group functional block diagram MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 5 ...

Page 6

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Function except a port function power source input pin. ...

Page 7

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Function except a port function power source input pin. ...

Page 8

... Group 3803: 3803 group 3804: 3804 group MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 9

... GROUP EXPANSION GROUP EXPANSION Mitsubishi plans to expand the 3803/3804 group as follows. Memory Type Support for mask ROM and flash memory versions. Memory Size Flash memory size ......................................................... 60 K bytes Mask ROM size ................................................. bytes RAM size ............................................................ 640 to 2048 bytes Memory Expansion Plan ...

Page 10

... M38049MC-XXXSP (49022) M38049MC-XXXFP M38049MC-XXXHP M38039MF-XXXSP M38039MF-XXXFP M38039MF-XXXHP 61440 M38049MF-XXXSP (61310) M38049MF-XXXFP M38049MF-XXXHP M38039FFSP M38039FFFP M38039FFHP 61440 M38049FFSP M38049FFFP M38049FFHP 10 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER RAM size (bytes) Package ) 64P4B 64P6N-A 64P6Q-A Mask ROM version 640 64P4B 64P6N-A 64P6Q-A 64P4B 64P6N-A 64P6Q-A ...

Page 11

... 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 3803/3804 Group used to indicate the address of the L ” ...

Page 12

... ( Interrupt enable flag is “1” “ 0 ” Push instruction to stack PHA PHP MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER M (S) ( – ...

Page 13

... 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 3803/3804 Group N flag T flag V flag – – SET – – – CLT CLV ...

Page 14

... Main clock division ratio selection bits Not available MITSUBISHI MICROCOMPUTERS 3803/3804 Group ) – )/2 (high-speed mode) IN )/8 (middle-speed mode) IN )/2 (low-speed mode) ...

Page 15

... Invalid 1: Automatic switch start (Note “ 0 ” “ 1 ” MITSUBISHI MICROCOMPUTERS 3803/3804 Group ). Bit 5 is the ...

Page 16

... FFFE 16 4080 16 FFFF 16 3080 16 2080 16 1080 16 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER SFR area Zero page Not used SFR area Not used Reserved ROM area (128 bytes) Special page Interrupt vector area Reserved ROM area ...

Page 17

... Fig. 14 Memory map of 3803 group’s special function register (SFR) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 18

... Fig. 15 Memory map of 3804 group’s special function register (SFR) 18 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 19

... Serial I/O1 function I/O Timer Z function I/O Serial I/O2 function I/O Timer X, Y function I/O PWM output External interrupt input A-D converter input during execution of the STP instruction MITSUBISHI MICROCOMPUTERS 3803/3804 Group Related SFRs AD/DA control register Interrupt edge selection register AD/DA control register Serial I/O3 control register UART3 control register ...

Page 20

... Serial I/O1 function I/O Serial I/O1 function I/O Timer Z function I/O Serial I/O2 function I/O Timer X, Y function I/O PWM output External interrupt input A-D converter input during execution of the STP instruction. CC MITSUBISHI MICROCOMPUTERS 3803/3804 Group Related SFRs AD/DA control register Interrupt edge selection register AD/DA control register control register Serial I/O3 control ...

Page 21

... Serial I/O mode selection bit Serial I/O enable bit Direction register MITSUBISHI MICROCOMPUTERS 3803/3804 Group , ...

Page 22

... Direction register Data bus Port latch Serial I/O2 input Fig. 17 Port block diagram of 3803 group (2) 22 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ( Port X switch bit ...

Page 23

... Pull-up control bit PWM output enable bit Data bus MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 24

... (8) Ports P3 Serial I/O synchronous clock Serial I/O enable bit Data bus MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER , ...

Page 25

... Direction register Data bus Port latch Serial I/O2 input Fig. 20 Port block diagram of 3804 group (2) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER (10) Port P4 0 Pull-up control bit Port X switch bit C ...

Page 26

... PWM output enable bit MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 27

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group of the port direction register is “0” (input). When that bit is “1” (output), pull-up cannot be set to the port of which pull-up is selected. ...

Page 28

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER “ 0 ” ...

Page 29

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER of the port direction register is “0” (input). When that bit is “1” (output), pull-up cannot be set to the port of which pull-up is selected. of the port direction register is “ ...

Page 30

... Note: Pull-up control is valid when the corresponding bit P6 pull-up control bit pull-up 1: Pull-up MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER of the port direction register is “0” (input). When that bit is “1” (output), pull-up cannot be set to the port of which pull-up is selected. ...

Page 31

... Accept the interrupt after clearing the interrupt request bit to “0” af- ter interrupt is disabled and the above register or bit is set. and INT 0 4 and INT pin INT interrupt switch bit MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ) ...

Page 32

... CNTR At completion of A-D conversion FFDE completion of serial I/O3 transmission shift or when transmission buffer is empty FFDC At BRK instruction execution 16 16 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Remarks Non-maskable External interrupt input (active edge selectable) 0 External interrupt input (active edge selectable) ...

Page 33

... CNTR At completion of A-D conversion FFDE completion of serial I/O3 transmission shift or when transmission buffer is empty FFDC At BRK instruction execution 16 16 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Remarks Non-maskable External interrupt input (active edge selectable) 0 External interrupt input (active edge selectable) ...

Page 34

... Fig. 26 Interrupt control 34 MITSUBISHI MICROCOMPUTERS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 3803/3804 Group ...

Page 35

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 36

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 37

... CNTR CNTR pin is inverted. 1 Precautions Set the double-function port of CNTR P5 to output in this mode and the timer among 1/ MITSUBISHI MICROCOMPUTERS 3803/3804 Group ”, an underflow occurs at the next pin. When the CNTR active edge switch bit 1 0 ...

Page 38

... Therefore, select the timer count source before setting the value to the prescaler and the timer. 38 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ). 16 or CNTR pin. The 0 1 active 0 ). When it is “0”, the 16 pin and port ac- 1 pin and port MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 39

... Data bus Timer 1 latch ( Timer 1 (8) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER timer X interrupt request bit ...

Page 40

... Fig. 30 Structure of timer XY mode register 40 MITSUBISHI MICROCOMPUTERS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER b 0 Timer XY mode register (TM : address 0023 ) 16 Timer X operating mode bits Timer mode Pulse output mode Event counter mode Pulse width measurement mode CNTR active edge switch bit ...

Page 41

... IN CIN f(X )/512 or f(X )/512 IN CIN f(X )/1024 or f(X )/1024 IN CIN f(X ) CIN MITSUBISHI MICROCOMPUTERS 3803/3804 Group 1011 : 1100 : 1101 : Not used 1110 : 1111 : ...

Page 42

... CNTR active edge switch bit by writing to the timer. 2 [During timer operation enabled] When the value of the CNTR the output level of CNTR Figure 35 shows the timing chart of the pulse output mode. MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ). 16 pin and port ...

Page 43

... Conse- quently, the timer value at start of pulse width measurement depends on the timer value just before measurement start. Figure 37 shows the timing chart of the pulse width measurement mode. MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ); or f(X ) can be selected ...

Page 44

... Therefore, select the timer count source before setting the value to the prescaler and the timer. pin) is in- 1 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER pin is initialized to “H” at mode selec- 2 pin and port P4 ...

Page 45

... Count source Divider selection bit ( MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER active edge 2 Data bus “ ...

Page 46

... Note: When selecting the modes except the timer/event counter mode, set “0” to this bit. MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 47

... “ 0 ” MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER TR 47 ...

Page 48

... “ L ” MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 49

... CNTR CNTR One-shot pulse width TR : Timer interrupt request CNTR : CNTR interrupt request 2 2 (CNTR active edge switch bit = “0”; Falling edge active) 2 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 50

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ) to “1”. 16 Serial I/O1 control register Receive buffer full flag (RBF) Receive interrupt request (RI) 1/4 Transmit shift completion flag (TSC) ...

Page 51

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 52

... 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. 52 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER /T D pin MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 53

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group ) ...

Page 54

... When the serial I/O enable bit is set to “1” at this time, the data during internally shifting is output to the TxD pin and an operation failure occurs. Note 2 (only receive operation is stopped) Clear the receive enable bit to “0” (receive disabled). MITSUBISHI MICROCOMPUTERS 3803/3804 Group , and S function as I/O ports, CLK ...

Page 55

... Therefore, regardless of selecting which timing for the generating of transmit interrupts, the interrupt request is gener- ated and the transmit interrupt request bit is set at this point. Can be set with the LDM instruction at the same time CLK MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 55 ...

Page 56

... “ 0 ” External clock Serial I/O counter 2 (3) Serial I/O shift register 2 (8) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER b 0 Serial I/O2 control register (SIO2CON : address 001D ) 16 ...

Page 57

... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS 3803/3804 Group ( ...

Page 58

... TBE = 1 TSC = 0 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ) to “1”. 16 Serial I/O3 control register Receive buffer full flag (RBF) Receive interrupt request (RI) 1/4 Transmit shift completion flag (TSC) Transmit interrupt source selection bit ...

Page 59

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 60

... 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. 60 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER /T D pin MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 61

... Receive disabled 1: Receive enabled Serial I/O3 mode selection bit (SIOM) 0: Clock asynchronous (UART) serial I/O 1: Clock synchronous serial I/O Serial I/O3 enable bit (SIOE) 0: Serial I/O disabled (pins P3 1: Serial I/O enabled (pins MITSUBISHI MICROCOMPUTERS 3803/3804 Group ) low-speed mode) IN CIN )/4 (f(X )/4 in low-speed mode) IN CIN serial I/O is selected, BRG output divided by 16 when UART is selected ...

Page 62

... When the serial I/O enable bit is set to “1” at this time, the data during internally shifting is output to the TxD pin and an operation failure occurs. Note 2 (only receive operation is stopped) Clear the receive enable bit to “0” (receive disabled). MITSUBISHI MICROCOMPUTERS 3803/3804 Group , and S function as I/O ports, CLK ...

Page 63

... Therefore, regardless of selecting which timing for the generating of transmit interrupts, the interrupt request is gener- ated and the transmit interrupt request bit is set at this point. Can be set with the LDM instruction at the same time CLK MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 63 ...

Page 64

... PWM PWM prescaler latch register latch PWM register MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 31.875 m (n+1) s 255 T = [31.875 5 (n+1 Contents of PWM register ...

Page 65

... Fig. 56 PWM output timing when PWM register or PWM prescaler is changed SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ) (Changes “H” term from “A” to “B”.) (Changes PWM period from “T” to “T2”.) MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 66

... A-D mode V REF V = (n–0. 1–255) ref 256 = MITSUBISHI MICROCOMPUTERS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Channel Selector The channel selector selects one of ports /AN , and inputs the voltage to the comparator Comparator and Control Circuit ...

Page 67

... Resistor ladder V AV REF SS MITSUBISHI MICROCOMPUTERS 3803/3804 Group (Address 0038 ) 16 (Address 0035 ) ...

Page 68

... Fig. 60 Block diagram of D-A converter “ 1 ” MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 69

... Watchdog timer H (for read-out of high-order 6 bit) 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 )/16 IN CIN MITSUBISHI MICROCOMPUTERS 3803/3804 Group Data bus “FF ” is set when 16 watchdog timer control register is written to. Reset Internal reset ...

Page 70

... Fig. 64 Block diagram of multi-master I : Purchase of MITSUBISHI ELECTRIC CORPORATIONS system, provided that the system conforms to the I 70 Table 10 Multi-master I Format ...

Page 71

... Fig. 65 Structure control register ) are “1,” data shift regis- MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 72

... CCR value) High-speed clock mode (CCR value = 5) Do not set CCR value regardless of Set 100 kHz (max.) in the standard clock mode and 400 kHz (max.) in the high-speed clock mode to the SCL frequency by setting the SCL frequency control bits CCR4 to CCR0. MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 73

... C-BUS interface. When Fig. 67 Structure slave address MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ALS ES0 BC2 ...

Page 74

... BB flag is set to “0.” 16 For the writing function to the BB flag, refer to the sections “START Condition Generating Method” and “STOP Condition Gen- erating Method” described later. MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 2 C data shift register (S0: ad- ...

Page 75

... BB flag is confirmed, the START condition duplication preventing function makes the writing to the MST and TRX bits in- valid. The duplication preventing function becomes valid from the rising of the BB flag to reception completion of slave address. MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER b 7 ...

Page 76

... Table 13 STOP condition generating timing table Item Setup time Hold time High-speed clock mode Note: Absolute time at number of 2.5 s (10 cycles) 2.5 s (10 cycles) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 2 C control register (S1D: address 2 C status register (S1: address 0013 ...

Page 77

... High-speed clock mode 4 cycles (1 cycles (1 cycles (0.5 s) 3.5 cycles (0.875 START/ ” MHz. 16 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SCL release time SCL release time Setup ...

Page 78

... XXX11010 6.75 s (27 cycles) XXX11000 6.25 s (25 cycles) XXX00100 5 cycles) XXX01100 6.5 s (13 cycles) XXX01010 5.5 s (11 cycles) XXX00100 5 cycles) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 2 C-BUS interface enable bit Setup time Hold time ( 3.25 s (13 cycles) 3.5 s (14 cycles) 3.25 s (13 cycles) 3 ...

Page 79

... “ 1 ” MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 80

... S low. STOP condition flag clear bit (Note 2) Writing “1” to this bit initializes the STOP condition flag to “0” “ 0 ” MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ) becomes valid ...

Page 81

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 2 C status register (S1: address 0013 ), perform an ad ...

Page 82

... Set dummy data in the I 0011 ). ) When receiving control data of more than 1 byte, repeat step When a STOP condition is detected, the communication ends. MITSUBISHI MICROCOMPUTERS 3803/3804 Group 2 C slave ad status register (S1: address 0013 16 ” in the ...

Page 83

... S1 until the bus busy flag BB becomes “0” after generating the STOP condition in the master mode because the STOP condition waveform might not be normally generated. Reading to the above registers does not have the problem. MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER (Select slave receive mode) ...

Page 84

... Fig. 78 Reset circuit example ? ? ? ? FFFC ? ? ? ? ? AD Notes 1: The frequency relation of f(X ) and f The question marks (?) indicate an undefined state that depends on the previous state. MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Poweron (Note) Power source V voltage CC 0V Reset input voltage 0. Note : Reset release voltage ...

Page 85

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group 0028 ...

Page 86

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group 0028 0029 002A 16 ...

Page 87

... The internal clock starts when an interrupt is received or reset. Since the oscillator does not stop, normal operation can be started immediately after the clock is restarted MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER and X oscillators stop. When the oscillation IN CIN ” ...

Page 88

... COUT CIN COUT IN Fig. 82 Ceramic resonator circuit CIN COUT IN Open External oscillation External oscillation circuit circuit Fig. 83 External clock input circuit 88 OUT C OUT X OUT Open MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 89

... WIT instruction MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 90

... MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER b4 ...

Page 91

... The parallel I/O mode can be selected by connecting wires as shown in Figures 86, 87 and supplying power to the V pins. In this mode, the M38039FFSP/FP/HP operates as an equivalent of MITSUBISHI’s CMOS flash memory M5M28F101. However, because the M38039FFSP/FP/HP’s internal memory has a capacity of 60 Kbytes, programming is available for ad- ...

Page 92

... Input “H” or “L” Input Input “H” or “L”, or keep them open. Input Input “H” or “L”, or keep them open. Input MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Functions . SS and OUT –A ) ...

Page 93

... Pin connection of M38039FFFP/HP when operating in parallel input/output mode M38039FFFP/ Outline 64P6N-A/64P6Q-A MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 94

... Outline 64P4B MITSUBISHI MICROCOMPUTERS 3803/3804 Group ...

Page 95

... device code 00001 device code MITSUBISHI MICROCOMPUTERS 3803/3804 Group Floating ___ Second cycle Address input Data I/O Read address Read data (Output) Program address Program data (Input) Verify data (Output) 20 (Input) 16 Verify data (Output) ...

Page 96

... The contents of the command latch immedi- ately after power- Valid address a(CE RRW WP WRR t a(OE OLZ 00 Dout 16 t CLZ VSC a(AD) MITSUBISHI MICROCOMPUTERS 3803/3804 Group . ...

Page 97

... WPH MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ” in the first cycle. This command is used to 16 ___ Program verify WRR Dout Verify data output 97 ...

Page 98

... WPH MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ___ ___ erase verify” over again. In this case, Erase verify Verify WRR Dout 16 Verify data output t DH ...

Page 99

... WE input. At this time, the user can read out manufacture’s code 1C (i.e., MITSUBISHI) by inputting 00000 16 pins in the second cycle; the user can read out device code D0 (i. e., 1M-bit flash memory) by inputting 00001 These command and data codes are input/output at the same tim- ing as for read ...

Page 100

... Fig. 92 Programming/Erasing algorithm flow chart 100 Erase H PP YES PASS VERIFY BYTE ? FAIL FAIL 00 16 INC ADRS DEVICE FAILED MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER START ALL BYTES = PROGRAM ALL BYTES = 00 16 ADRS = first location ...

Page 101

... 2 –400 –100 ° ± unless otherwise noted Parameter Parameter MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Limits Min. Typ. Max. IH 100 , 100 100 0.8 2 0.45 2.4 V –0.4 ...

Page 102

... LSB (LSB first M38039FFFP/ Outline 64P6N-A/64P6Q-A MITSUBISHI MICROCOMPUTERS 3803/3804 Group pin and then applying LED LED 2( 2) ...

Page 103

... Outline 64P4B MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ...

Page 104

... This pin is for serial clock input. Output This pin is for BUSY signal output. Input Input “H” or “L”, or keep them open. Input Input “H” or “L”, or keep them open. MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Functions . SS and X ...

Page 105

... Read address input (L) Read address input (H) after the last rising edge of SCLK (at the 8th bit). (C-E) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Third Fourth Read data (Output) Program data (Input) ————— ————— ...

Page 106

... SDA pin CRPV WR RC Verify read after the last rising edge of SCLK (at the 8th bit). (C-E) MITSUBISHI MICROCOMPUTERS 3803/3804 Group Program data input t WP ...

Page 107

... Verify address input (L) Verify address input (H) 16 after the last rising edge of SCLK (at the 8th bit). (C-E) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER tw E Erase erase verify” over again. In this case Verify data output ...

Page 108

... Command code input (80 ) Error flag output 16 “H” “L” after the last rising edge of the serial clock (at the 8th bit). (C-E) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER pin input to the V L level to terminate PP PP ...

Page 109

... V ± MHz, unless otherwise noted) IN Parameter t c(CK) t r(CK w(CKL) w(CKH) t h(C-Q) t h(C- su(D-C) h(C-D) MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER = 11 12.6 V, unless otherwise noted Limits Min. Max. (Note 1) 500 (Note 1) 500 (Note 2) 400 (Note 1) 500 ...

Page 110

... Addresses 1000 to 7FFF (total 28 Kbytes Addresses 8000 to FFFF (total 32 Kbytes Not available Fix this bit to “0.” Not used (returns "0" when read) /V pin MITSUBISHI MICROCOMPUTERS 3803/3804 Group pin, CPU reprogramming mode is valid. ...

Page 111

... Fig. 103 CPU mode register bit configuration in CPU rewriting mode MITSUBISHI MICROCOMPUTERS 3803/3804 Group /V pin pin becomes CPU mode register ( ...

Page 112

... I/O mode. AC Electric Characteristics program verify” Note: The characteristics are the same as the characteristic of the microcomputer mode. ” set. 16 MITSUBISHI MICROCOMPUTERS 3803/3804 Group ” (i.e., data is not erased) 16 erase verify” again. erase verify” again ” before erasing in this case. ...

Page 113

... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Erase YES 40 16 DIN YES PASS VERIFY BYTE ? FAIL FAIL 00 16 DEVICE NO INC ADRS FAILED MITSUBISHI MICROCOMPUTERS 3803/3804 Group START ALL BYTES = PROGRAM ALL BYTES = 00 16 ADRS = first location WRITE ERASE 20 16 COMMAND WRITE ERASE 20 16 ...

Page 114

... The read-modify-write instructions (ROR, CLB, or SEB, etc direction register. Use instructions such as LDM and STA, etc., to set the port direc- tion registers. 114 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Serial I/O In clock synchronous serial I/O, if the receive side is using an ex- ...

Page 115

... The following are necessary when ordering a mask ROM produc- tion: 1.Mask ROM Confirmation Form 2.Mark Specification Form 3.Data to be written to ROM, in EPROM form (three identical cop- ies) pin), and between power SS pin) as well. SS resistance. MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 115 ...

Page 116

... P2 – – – – OUT °C a MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Ratings –0.3 to 6.5 –0 +0.3 CC –0 –0 +0.3 CC –0 +0.3 CC –0 –0 +0.3 CC –0.3 to 5.8 1000 (Note) – –65 to 125 ...

Page 117

... CIN SS P0 – – – – – RESET, CNV CIN MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Limits Min. Typ. 2.7 5.0 4.0 5.0 4.5 5.0 4.0 5.0 0 2.0 2 – 0.8V CC 0.8V CC 0.7V CC 1.4 0.8V CC – – ...

Page 118

... P6 –P6 (Note –P2 (Note Vcc = 4.5–5.5 V Vcc = 4.0–4.5 V Vcc = 2.7–4.0 V (avg), I (avg) are average value measured over 100 ms. OH MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Limits Min. Typ –P3 (Note –P3 (Note ...

Page 119

... When clock stopped P-channel output disable bit of the UART3 control register (bit 4 of address 0033 3 P-channel output disable bit of the UART1 control register (bit 4 of address 001B 1 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Limits Min. Typ. Max. V –2.0 ...

Page 120

... MHz (in WIT state stopped CIN Output transistors “off” Increment when A-D conversion is executed f 16.8 MHz IN All oscillation stopped °C (in STP state) Output transistors “off” °C MITSUBISHI MICROCOMPUTERS 3803/3804 Group Limits Unit Typ. Max. Min 13 ...

Page 121

... MHz (in WIT state stopped CIN Output transistors “off” Increment when A-D conversion is executed f 16.8 MHz IN All oscillation stopped °C (in STP state) Output transistors “off” °C MITSUBISHI MICROCOMPUTERS 3803/3804 Group Limits Unit Typ. Max. Min 6 ...

Page 122

... V REF at A-D converter stopped V = 5.0 V REF , – °C, unless otherwise noted Test conditions V = 4.0–5 2.7–4 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ) is “0”) Limits Min. Typ. Max 5.0 V ± 100 50 150 200 5 5 “1”) Limits Min ...

Page 123

... INT , INT input “L” pulse width are “1” (clock synchronous). 16 and bit 6 of address 0032 are “0” (UART MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Limits Min. Typ. Max. 16 59.5 10000 86Vcc–219 25 4000 86Vcc–219 ...

Page 124

... INT input “H” pulse width INT INT INT , INT input “L” pulse width “0” (UART). 16 MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Limits Min. Typ. Max 82V –3 cc 10000 82V –3 ...

Page 125

... D3 P-channel output disable bit of the UART3 control register (bit 4 of address 0033 The X pin is excluded. OUT SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Test Parameter conditions Fig. 105 Test Parameter conditions Fig. 105 MITSUBISHI MICROCOMPUTERS 3803/3804 Group Limits Unit Min. Typ. Max )/2–30 C CLK1 )/2– ...

Page 126

... Fig. 105 Circuit for measuring output switching characteristics (1) 126 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Fig. 106 Circuit for measuring output switching characteristics (2) MITSUBISHI MICROCOMPUTERS 3803/3804 Group 1 k 100pF N-channel open–drain output ...

Page 127

... IN2- S CLK2 ), t t h(S su CLK3 ) 0. d(S -T D1) d d(S CLK1 X CLK2- OUT2 CLK3- MITSUBISHI MICROCOMPUTERS 3803/3804 Group 0. WL(X ) CIN C(S ) CLK3 WH(S ), WH(S ) CLK1 CLK2 CLK3 CC ...

Page 128

... Fig. 108 Timing diagram of multi-master I 128 Parameter and S signals DA and S signals su:STA 2 C-BUS MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Standard clock mode High-speed clock mode Min. Max. Max. Min. 4.7 1.3 0.6 4.0 4.7 1.3 20+0.1C 300 1000 ...

Page 129

... Detail F Weight(g) Lead Material 7.9 Alloy 42/Cu Alloy MITSUBISHI MICROCOMPUTERS 3803/3804 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Plastic 64pin 14 14mm body QFP Recommended Mount Pad Dimension in Millimeters Symbol Min Nom A – – 0 – ...

Page 130

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

REVISION DESCRIPTION LIST Rev. No. 0.1 First Edition; Only including overview. The issue including all information will be released in April. 1.0 Functional descriptions are added. 2.0 All pages; “PRELIMINARY Notice: This is...” eliminated. Page 9; Product names are added ...

Page 132

REVISION DESCRIPTION LIST Rev. No. 2.0 Page 117; Table 28 is revised for only flash memory version. Table 29 is added. 3.0 Page 1; “ Minimum instruction execution time” of “FEATURES” is revised. Page 1; “ Memory size” of “FEATURES” ...

Page 133

REVISION DESCRIPTION LIST Rev. No. 3.0 Page 38; Explanations of “ Mode selection” and “ Explanation of operation” of “(3) Event counter mode” of “Timer X and Timer Y” are revised. Page 38; “ Interrupt” of “(3) Event counter mode” ...

Page 134

REVISION DESCRIPTION LIST Rev. No. 3.0 Page 63; Explanations of “7. Transmit interrupt request when transmit enable bit is set” are revised. Page 68; Explanations of “D-A CONVERTER” are partly eliminated. Page 70; Figure 64 is partly revised. Page 71; ...

Page 135

REVISION DESCRIPTION LIST Rev. No. 3.0 Page 124; Limits and unit of tw(RESET) into Table 36 are revised. Page 125; Limits 3803/3804 GROUP DATA SHEET Revision Description ), into Tables 37 and 38 ...

Related keywords