Upd784036a Nec
Upd784036a Nec
µPD784035(A), 784036(A)
16/8-BIT SINGLE-CHIP MICROCONTROLLER
The µPD784036(A) is a product of the µPD784038 sub-series in the 78K/IV series. A stricter quality assurance
program applies to the µPD784036(A) than the µPD784036 (standard product). In terms of the NEC quality, the
µPD784036(A) is classified as the special grade.
The µPD784036(A) contains various peripheral hardware such as ROM, RAM, I/O ports, 8-bit resolution A/D and
D/A converters, timers, serial interface, and interrupt functions, as well as a high-speed, high-performance CPU.
In addition, the µPD78P4038(A) (one-time PROM or EPROM product), which can be operated within the same
power supply voltage ranges as masked-ROM products, and development tools are supported.
For specific functions and other detailed information, consult the following user’s manual.
This manual is required reading for design work.
µPD784038, 784038Y Sub-Series User’s Manual, Hardware : U11316E
78K/IV Series User’s Manual, Instruction : U10905E
FEATURES
• Higher reliability than the µPD784036 (Refer to Qual- • PWM outputs: 2
ity Grade on NEC Semiconductor Devices (Document • Serial interface: 3 channels
number C11531E).) UART/IOE (3-wire serial I/O): 2 channels
• Minimum instruction execution time: 125 ns CSI (3-wire serial I/O, 2-wire serial I/O): 1 channel
(at 32 MHz) • Clock frequency division function
• Number of I/O ports: 64 • Watchdog timer: 1 channel
• Timer/counters • Clock output function
16-bit timer/counter × 3 units Selected from fCLK, fCLK/2, fCLK/4, fCLK/8, or fCLK/16
16-bit timer × 1 unit • Power supply voltage: VDD = 2.7 to 5.5 V
• A/D converter: 8-bit resolution × 8 channels
• D/A converter: 8-bit resolution × 2 channels
• Standby function
HALT/STOP/IDLE mode
APPLICATIONS
Controllers for automobile electronic control systems, gas detector circuit-breakers, various types of safety
equipment, etc.
ORDERING INFORMATION
Part number Package Internal ROM Internal RAM
(bytes) (bytes)
µPD784035GC(A)-×××-3B9 80-pin plastic QFP (14 × 14 mm) 48K 2 048
µPD784036GC(A)-×××-3B9 80-pin plastic QFP (14 × 14 mm) 64K 2 048
QUALITY GRADE
Please refer to "Quality Grades on NEC Semiconductor Devices" (Document No. C11531E) published by
NEC Corporation to know the specification of quality grade on the devices and its recommended applications.
2
µPD784035(A), 784036(A)
: Under development
Enhanced A/D, Multimaster I2C bus supported Multimaster I2C bus supported
16-bit timer,
and power µPD784216Y µPD784218Y
management
µPD784216 µPD784218
100 pins, Enhanced internal memory capacity,
enhanced I/O and added ROM correction
internal memory capacity
µPD784054
µPD784046
ASSP models Equipped with 10-bit A/D
µ PD784955
For DC inverter control
µ PD784908
Equipped with IEBusTM
controller
3
µPD784035(A), 784036(A)
FUNCTIONS
Product
Item µPD784035(A) µPD784036(A)
4
µPD784035(A), 784036(A)
CONTENTS
5
µPD784035(A), 784036(A)
6
µPD784035(A), 784036(A)
The only difference between the µPD784031(A), µPD784035(A), and µPD784036(A) is their capacity of internal
memory.
The µPD78P4038(A) is produced by replacing the masked ROM in the µPD784031(A), µPD784035(A), or
µPD784036(A) with 128K-byte one-time PROM or EPROM. Table 1-1 shows the differences between these products.
Table 2-1 shows the differences between standard and special products.
Product
µPD784035(A), µPD784036(A) µPD784035, µPD784036, µPD784037, µPD784038
Item
Quality grade Special Standard
Package 80-pin plastic QFP (14 × 14 × 2.7 mm) 80-pin plastic QFP (14 × 14 × 2.7 mm)
80-pin plastic QFP (14 × 14 × 1.4 mm)
80-pin plastic TQFP (fine pitch, 12 × 12 mm)
7
µPD784035(A), 784036(A)
P25/INTP4/ASCK/SCK1
P31/ TxD/SO1
P23/INTP2/CI
P30/RxD/SI1
P22/INTP1
P24/INTP3
P26/INTP5
P21/INTP0
P77/ANI7
P76/ANI6
P75/ANI5
P20/NMI
P27/SI0
AVREF3
AVREF2
AVREF1
ANO1
ANO0
AVDD
AVSS
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61
P32/SCK0/SCL 1 60 P74/ANI4
P33/SO0/SDA 2 59 P73/ANI3
P34/ TO0 3 58 P72/ANI2
P35/ TO1 4 57 P71/ANI1
P36/ TO2 5 56 P70/ANI0
P37/ TO3 6 55 VDD0
RESET 7 54 P17
VDD1 8 53 P16
X2 9 52 P15
X1 10 51 P14/TXD2/SO2
VSS1 11 50 P13/RXD2/SI2
P00 12 49 P12/ASCK2/SCK2
P01 13 48 P11/PWM1
P02 14 47 P10/PWM0
P03 15 46 TESTNote
P04 16 45 VSS0
P05 17 44 ASTB/CLKOUT
P06 18 43 P40/AD0
P07 19 42 P41/AD1
P67/REFRQ/HLDAK 20 41 P42/AD2
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
P66/ WAIT/HLDRQ
P65/WR
P64/RD
P63/A19
P62/A18
P61/A17
P60/A16
P57/A15
P56/A14
P55/A13
P54/A12
P53/A11
P52/A10
P51/A9
P50/A8
P47/AD7
P46/AD6
P45/AD5
P44/AD4
P43/AD3
8
µPD784035(A), 784036(A)
9
µPD784035(A), 784036(A)
4. BLOCK DIAGRAM
RxD/SI1
UART/IOE2
TxD/SO1
NMI Baud-rate
Programmable ASCK/SCK1
interrupt controller generator
INTP0-INTP5
RxD2/SI2
UART/IOE1
TxD2/SO2
INTP3
Timer/counter 0 Baud-rate
TO0 ASCK2/SCK2
(16 bits) generator
TO1
SCK0/SCL
Clocked serial
INTP0 Timer/counter 1 SO0/SDA
interface
(16 bits)
SI0
78K /IV ASTB/CLKOUT
INTP1 ROM Clock output
CPU core AD0-AD7
INTP2/CI Timer/counter 2
TO2 (16 bits) A8-A15
TO3 A16-A19
Bus interface
RD
Timer 3 WR
(16 bits) WAIT/HLDRQ
REFRQ/HLDAK
P00-P03 Port 0 P00-P07
Real-time output
port
P04-P07
RAM Port 1 P10-P17
PWM0
PWM Port 2 P20-P27
PWM1
Port 3 P30-P37
ANO0
ANO1
D/A converter Port 4 P40-P47
AVREF2
AVREF3
Port 5 P50-P57
10
µPD784035(A), 784036(A)
P13 RxD2/SI2 • The use of the pull-up resistors can be specified by software for the pins
in input mode together.
P14 TxD2/SO2
• Can drive LED.
P15-P17 -
P33 SO0/SDA • The use of the pull-up resistors can be specified by software for the pins
in input mode together.
P34-P37 TO0-TO3
11
µPD784035(A), 784036(A)
P66 WAIT/HLDRQ • The use of the pull-up resistors can be specified by software for the pins
in the input mode together.
P67 REFRQ/HLDAK
P70-P77 I/O ANI0-ANI7 Port 7 (P7):
• 8-bit I/O port.
• Inputs and outputs can be specified bit by bit.
12
µPD784035(A), 784036(A)
13
µPD784035(A), 784036(A)
ANI0-ANI7 Input P70-P77 Analog voltage inputs for the A/D converter
ANO0, ANO1 Output - Analog voltage outputs for the D/A converter
TEST Directly connect to VSS0. (The TEST pin is for the IC test.)
Notes 1. The potential of the VDD0 pin must be equal to that of the VDD1 pin.
2. The potential of the VSS0 pin must be equal to that of the VSS1 pin.
14
µPD784035(A), 784036(A)
Table 5-1. Types of I/O Circuits for Pins and Handling of Unused Pins (1/2)
Pin I/O circuit type I/O Recommended connection method for unused pins
P12/ASCK2/SCK2 8-C
P13/RxD2/SI2 5-H
P14/TxD2/SO2
P15-P17
P21/INTP0
P23/INTP2/CI
P24/INTP3
P27/SI0
P32/SCK0/SCL 10-B
P33/SO0/SDA
P34/TO0-P37/TO3 5-H
P40/AD0-P47/AD7
P50/A8-P57/A15
P60/A16-P63/A19
P64/RD
P65/WR
P66/WAIT/HLDRQ
P67/REFRQ/HLDAK
P70/ANI0-P77/ANI7 20-A I/O Input state : Connect these pins to VDD0 or VSS0.
Output state: Leave open.
ASTB/CLKOUT 4-B
15
µPD784035(A), 784036(A)
Table 5-1. Types of I/O Circuits for Pins and Handling of Unused Pins (2/2)
Pin I/O circuit type I/O Recommended connection method for unused pins
RESET 2 Input -
AVSS
Caution When I/O mode of an I/O dual-function pin is unpredictable, connect the pin to VDD0 through a
resistor of 10 to 100 kilohms (particularly when the voltage of the reset input pin becomes higher
than that of the low level input at power-on or when I/O is switched by software).
Remark Since type numbers are consistent in the 78K series, those numbers are not always serial in each product.
(Some circuits are not included.)
16
µPD784035(A), 784036(A)
VDD0
P
IN Pull-up
P enable
N
VSS0 IN
Type 2
Pull-up
enable P
VDD0
Data P P
Analog output
IN/OUT voltage OUT
Output N
N
disable
VSS0
VDD0 Output N
disable
Data P VSS0
Open IN/OUT Comparator
drain P
N +
Output – N
disable VSS0
AVREF AVSS
(Threshold voltage)
Input
enable
17
µPD784035(A), 784036(A)
6. CPU ARCHITECTURE
• Internal memory
The table below indicates the internal data areas and internal ROM areas of each product.
µPD784036(A) 00000H-0F6FFH
Caution The following internal ROM areas, existing at the same addresses as the internal data areas,
cannot be used when the LOCATION 0 instruction is executed:
µPD784035(A) -
• External memory
External memory is accessed in external memory expansion mode.
• Internal memory
The table below lists the internal data areas and internal ROM areas for each product.
µPD784036(A) 00000H-0FFFFH
• External memory
External memory is accessed in external memory expansion mode.
18
Figure 6-1. µPD784035(A) Memory Map
µPD784035(A), 784036(A)
(14 080 bytes)Note 1 0 1 0 0 0H
0 0 F FFH 1 00 0 0H
CALLF entry area 0FF FFH
(2K bytes) Note 2
0C 0 0 0 H 0 0 8 0 0H 0C0 0 0H
0B F FF H 0 0 7 FFH 0BF FFH
0 0 0 8 0H
Internal ROM 0 0 0 7FH CALLT table area
Internal ROM
(48K bytes) 0 0 0 4 0H (64 bytes) (48K bytes)
0 0 0 3FH Vector table area
2. Base area, or entry area based on a reset or interrupt. Internal RAM is excluded in the case of a reset.
20
µPD784035(A), 784036(A)
0 008 0H
0 0 0 7 FH CALLT table area
Internal ROM
0 0 0 4 0 H (64 bytes)
Note 4
(64K bytes)
0 0 0 3 FH Vector table area
A (R1) X (R0)
AX (RP0)
B (R3) C (R2)
BC (RP1)
R5 R4
RP2
R7 R6
RP3
V R9 R8
VVP (RG4) VP (RP4)
U R11 R10
UUP (RG5) UP (RP5)
T D (R13) E (R12)
TDE (RG6) DE (RP6)
W H (R15) L (R14)
WHL (RG7) HL (RP7) 8 banks
Caution By setting the RSS bit of PSW to 1, R4, R5, R6, R7, RP2, and RP3 can be used as the X, A, C, B,
AX, and BC registers, respectively. However, this function must be used only when using
programs for the 78K/III series.
21
µPD784035(A), 784036(A)
19 0
PC
15 14 13 12 11 10 9 8
PSW
7 6 5 4 3 2 1 0
Note This flag is used to maintain compatibility with the 78K/III series. This flag must be set to 0 when programs
for the 78K/III series are being used.
23 20 0
SP 0 0 0 0
22
µPD784035(A), 784036(A)
Note Applicable when the LOCATION 0 instruction is executed. FFF00H-FFFFFH when the LOCATION 0FH
instruction is executed.
Caution Never attempt to access addresses in this area where no SFR is allocated. Otherwise, the
µPD784036(A) may be placed in the deadlock state. The deadlock state can be cleared only by
a reset.
Table 6-1 lists the special function registers (SFRs). The titles of the table columns are explained below.
• Abbreviation ................... Symbol used to represent a built-in SFR. The abbreviations listed in the table are
reserved words for the NEC assembler (RA78K4). The C compiler (CC78K4) allows
the abbreviations to be used as sfr variables with the #pragma sfr command.
• R/W ................................. Indicates whether each SFR allows read and/or write operations.
R/W : Allows both read and write operations.
R : Allows read operations only.
W : Allows write operations only.
• Manipulatable bits .......... Indicates the maximum number of bits that can be manipulated whenever an SFR is
manipulated. An SFR that supports 16-bit manipulation can be described in the sfrp
operand. For address specification, an even-numbered address must be speci-
fied.
An SFR that supports 1-bit manipulation can be described in a bit manipulation
instruction.
• When reset ..................... Indicates the state of each register when RESET is applied.
23
µPD784035(A), 784036(A)
Manipulatable bits
AddressNote Special function register (SFR) name Abbreviation R/W When reset
1 bit 8 bits 16 bits
0FF01H Port 1 P1 -
0FF02H Port 2 P2 R -
0FF04H Port 4 P4 -
0FF05H Port 5 P5 -
Note Applicable when the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is
executed, F0000H is added to each address.
24
µPD784035(A), 784036(A)
Manipulatable bits
AddressNote 1 Special function register (SFR) name Abbreviation R/W When reset
1 bit 8 bits 16 bits
0FF51H - -
0FF53H - - -
0FF55H - - -
0FF57H - - -
Notes 1. Applicable when the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is
executed, F0000H is added to each address.
2. Some registers cannot read. Refer to the µPD78038, µPD784038Y Sub-Series User’s Manual,
Hardware for details.
25
µPD784035(A), 784036(A)
Manipulatable bits
AddressNote 1 Special function register (SFR) name Abbreviation R/W When reset
1 bit 8 bits 16 bits
Notes 1. Applicable when the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is
executed, F0000H is added to each address.
2. A write operation can be performed only with special instructions MOV STBC, #byte and MOV
WDM,#byte. Other instructions cannot perform a write operation.
26
µPD784035(A), 784036(A)
Manipulatable bits
AddressNote Special function register (SFR) name Abbreviation R/W When reset
1 bit 8 bits 16 bits
0FFDFH
Note Applicable when the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is
executed, F0000H is added to each address.
27
µPD784035(A), 784036(A)
7.1 Ports
The ports shown in Figure 7-1 are provided to enable the application of wide-ranging control. Table 7-1 lists the
functions of the ports. For the inputs to port 0 to port 6, a built-in pull-up resistor can be specified by software.
P00
Port 0
P07
P10
Port 1
P17
P20-P27 8 Port 2
P30
Port 3
P37
P40
Port 4
P47
P50
Port 5
P57
P60
Port 6
P67
P70
Port 7
P77
28
µPD784035(A), 784036(A)
Port 0 P00-P07 • Bit-by-bit input/output setting supported Specified as a batch for all pins placed in
• Operable as 4-bit real-time outputs input mode.
(P00-P03, P04-P07)
• Capable of driving transistors
Port 1 P10-P17 • Bit-by-bit input/output setting supported Specified as a batch for all pins placed in
• Capable of driving LEDs input mode.
Port 2 P20-P27 • Input port Specified for the 6 bits (P22-P27) as a batch.
Port 3 P30-P37 • Bit-by-bit input/output setting supported Specified as a batch for all pins placed in
input mode.
Port 4 P40-P47 • Bit-by-bit input/output setting supported Specified as a batch for all pins placed in
• Capable of driving LEDs input mode.
Port 5 P50-P57 • Bit-by-bit input/output setting supported Specified as a batch for all pins placed in
• Capable of driving LEDs input mode.
Port 6 P60-P67 • Bit-by-bit input/output setting supported Specified as a batch for all pins placed in
input mode.
X1
fXX
Oscillator 1/2 1/2 1/2 1/2
Selector
X2 fCLK
CPU
Peripheral circuits
fXX/2
UART/IOE
INTP0 noise eliminator
Oscillation settling timer
29
µPD784035(A), 784036(A)
µ PD784036(A)
VSS1
X1
X2
µ PD784036(A) µ PD784036(A)
X1 X1
X2 Open X2
µ PD74HC04, etc.
Caution When using the clock generator, to avoid problems caused by influences such as stray
capacitance, run all wiring within the area indicated by the dotted lines according to the following
rules:
30
µPD784035(A), 784036(A)
Internal bus
8 4 4
INTP0 (externally) 4 4
INTC10 (from timer/counter 1) Output trigger
control circuit
INTC11 (from timer/counter 1)
P07 P00
31
µPD784035(A), 784036(A)
7.4 Timers/Counters
Three timer/counter units and one timer unit are incorporated.
Moreover, seven interrupt requests are supported, allowing these units to function as seven timer/counter units.
Name
Timer/counter 0 Timer/counter 1 Timer/counter 2 Timer 3
Item
16 bits
One-shot timer - - -
Toggle output - -
PWM/PPG output - -
Real-time output - - -
Note The one-shot pulse output function makes the level of a pulse output active by software, and makes the
level of a pulse output inactive by hardware (interrupt request signal).
Note that this function differs from the one-shot timer function of timer/counter 2.
32
µPD784035(A), 784036(A)
Timer/counter 0
Clear information Software trigger
Selector
Timer register 0
fxx/8 Prescaler (TM0) OVF
Match
Compare register
Match
(CR01)
TO1
Timer/counter 1
Clear information
Selector
Timer register 1
fxx/8 Prescaler (TM1/TM1W) OVF
Timer/counter 2
Clear information
Selector
Timer register 2
fxx/8 Prescaler (TM2/TM2W) OVF
Match
Pulse output control
Compare register
INTP2/CI Edge (CR20/CR20W) TO2
detection
INTP2 Match
Capture/compare register
(CR21/CR21W)
TO3
Timer 3
Match CSI
Compare register
(CR30/CR30W)
INTC30
33
µPD784035(A), 784036(A)
Internal bus
16 8
PWM modulo register
8 4
Reload
control
4-bit counter
1/256
Remark n = 0, 1
34
µPD784035(A), 784036(A)
After conversion has started, one of the following modes can be selected:
• Scan mode : Multiple analog inputs are selected sequentially to obtain conversion data from all pins.
• Select mode: A single analog input is selected at all times to enable conversion data to be obtained
continuously.
ADM is used to specify the above modes, as well as the termination of conversion.
When the result of conversion is transferred to ADCR, an interrupt request (INTAD) is generated. Using this feature,
the results of conversion can be continuously transferred to memory by the macro service.
ANI0
ANI1 Sample-and-hold circuit Series resistor string
Input selector
ANI2 AVREF1
ANI3
ANI4 R/2
Voltage comparator
ANI5
ANI6 R
ANI7 Tap selector
Successive conver-
sion register (SAR)
Conversion
INTP5 Edge trigger Control INTAD
detector circuit R/2
AVSS
Trigger enable
8
8 8
Internal bus
35
µPD784035(A), 784036(A)
ANOn
2R
AVREF2 R
2R
Selector
2R
AVREF3
R
2R
DACSn DACEn
Internal bus
Remark n = 0, 1
36
µPD784035(A), 784036(A)
So, communication with points external to the system and local communication within the system can be performed
at the same time. (See Figure 7-9.)
Port INT
[Two-wire serial I/O]
37
µPD784035(A), 784036(A)
Internal bus
TxD, TxD2
INTSR,
Reception INTSR2 Transmission
control parity control parity INTST, INTST2
INTSER,
check bit addition
INTSER2
1/2m
Selector
fXX/2
1/2n+1
ASCK, ASCK2
1/2m
38
µPD784035(A), 784036(A)
Internal bus
Direction control
circuit
SIO1, SIO2
SO1, SO2
Serial clock
control circuit
39
µPD784035(A), 784036(A)
Internal bus
Direction
control circuit
Set Reset
SI0
Selector
N-ch open-drain
output enabled
(when two-wire
mode is used)
CLS0
CLS1 fXX/2
40
µPD784035(A), 784036(A)
fCLK
fCLK/2
Selector
fCLK/8
fCLK/16
41
µPD784035(A), 784036(A)
fCLK Timer
fCLK/221
fCLK/220
Selector
INTWDT
fCLK/219
fCLK/217
Clear signal
42
µPD784035(A), 784036(A)
8. INTERRUPT FUNCTION
Table 8-1 lists the interrupt request handling modes. These modes are selected by software.
Vectored interrupt Software Branches to a handling routine for execution The PC and PSW contents are pushed
(arbitrary handling). to and popped from the stack.
Context switching Automatically selects a register bank, and The PC and PSW contents are saved to
branches to a handling routine for execution and read from a fixed area in the
(arbitrary handling). register bank.
43
µPD784035(A), 784036(A)
BRKCS instruction
Maskable 0 (highest) INTP0 Detection of edge input on the pin (TM1/TM1W capture trigger, External Enabled
TM1/TM1W event counter input)
2 INTP2 Detection of edge input on the pin (TM2/TM2W capture trigger, Internal Enabled
TM2/TM2W event counter input)
3 INTP3 Detection of edge input on the pin (TM0 capture trigger, TM0
event counter input)
INTCSI1
INTCSI2
44
µPD784035(A), 784036(A)
• When a branch occurs : Push the CPU status (PC and PSW contents) to the stack.
• When control is returned : Pop the CPU status (PC and PSW contents) from the stack.
To return control from the handling routine to the main routine, use the RETI instruction. The branch destination
addresses must be within the range of 0 to FFFFH.
NMI 0002H
WDT 0004H
INTP0 0006H
INTP1 0008H
INTP2 000AH
INTP3 000CH
INTC00 000EH
INTC01 0010H
INTC10 0012H
INTC11 0014H
INTC20 0016H
INTC21 0018H
INTC30 001AH
INTP4 001CH
INTP5 001EH
INTAD 0020H
INTSER 0022H
INTSR 0024H
INTCSI1
INTST 0026H
INTCSI 0028H
INTSER2 002AH
INTSR2 002CH
INTCSI2
INTST2 002EH
45
µPD784035(A), 784036(A)
0000B
<7> Transfer Register bank (0-7)
Register bank n (n = 0-7)
PC19-16 PC15-0 A X
B C
<2> Save <6> Exchange R5 R4
(Bits 8 to 11 of R7 R6
temporary register)
<5> Save V VP
U UP <3> Switching between register banks
Temporary register (RBS0-RBS2 ← n)
T D E
<4> RSS ← 0
W H L IE ← 0
<1> Save
PSW
Read Write
Macro service
CPU Memory SFR
Write controller Read
Internal bus
46
µPD784035(A), 784036(A)
Data 2
Data 1
Internal bus
Each time a macro service request (INTST) is generated, the next transmission data is transferred from memory
to TXS. When data n (last byte) has been transferred to TXS (that is, once the transmission data storage buffer
becomes empty), a vectored interrupt request (INTST) is generated.
Data 2
Data 1
Internal bus
Reception
RxD shift register
Each time a macro service request (INTSR) is generated, reception data is transferred from RXB to memory.
When data n (last byte) has been transferred to memory (that is, once the reception data storage buffer becomes
full), a vectored interrupt request (INTSR) is generated.
47
µPD784035(A), 784036(A)
P2 T2
P1 T1
Match
(SFR) P0L CR10 (SFR)
INTC10
Output latch TM1
P00-P03
Each time a macro service request (INTC10) is generated, a pattern and timing data are transferred to the buffer
register (P0L) and compare register (CR10), respectively. When the contents of timer register 1 (TM1) and CR10
match, another INTC10 is generated, and the P0L contents are transferred to the output latch. When Tn (last
byte) is transferred to CR10, a vectored interrupt request (INTC10) is generated.
For INTC11, the same operation as that performed for INTC10 is performed.
48
µPD784035(A), 784036(A)
The local bus interface enables the connection of external memory and I/O devices (memory-mapped I/O). It
supports a 1M-byte memory space. (See Figure 9-1.)
µ PD784036(A)
Decoder
A16-A19
RD
PROM Kanji character
WR Pseudo SRAM generator
µ PD27C1001A
REFRQ µPD24C1000
ASTB Latch
Address bus
A8-A15
49
µPD784035(A), 784036(A)
FFFFFH
512K bytes
80000H
7FFFFH
256K bytes
40000H
3FFFFH
128K bytes
20000H
1FFFFH
64K bytes
10000H
0FFFFH
16K bytes
0C000H
0BFFFH
16K bytes
08000H
07FFFH
16K bytes
04000H
03FFFH
16K bytes
00000H
50
µPD784035(A), 784036(A)
• Pulse refresh
A bus cycle is inserted where a refresh pulse is output on the REFRQ pin at regular intervals. When the memory
space is divided into eight, and a specified area is being accessed, refresh pulses can also be output on
the REFRQ pin as the memory is being accessed. This can prevent the refresh cycle from suspending normal
memory access.
• Power-down self-refresh
In standby mode, a low-level signal is output on the REFRQ pin to maintain the contents of pseudo-static RAM.
51
µPD784035(A), 784036(A)
The standby function allows the power consumption of the chip to be reduced. The following standby modes are
supported:
• HALT mode : The CPU operation clock is stopped. By occasionally inserting the HALT mode during normal
operation, the overall average power consumption can be reduced.
• IDLE mode : The entire system is stopped, with the exception of the oscillator. This mode consumes only
very little more power than STOP mode, but normal program operation can be restored in almost
as little time as that required to restore normal program operation from HALT mode.
• STOP mode : The oscillator is stopped. All operations in the chip stop, such that only leakage current flows.
er
1
e
at st
ot
te
e
ru
RE Set
ut N
ut No
ion
op qu
pt
SE HA
e
inp
re
on ce r
inp
er
OP t
T LT
TP t
qu t
TP T E
5
IN pu
ST inpu
IN ESE IDL
inp
TP
i
5
rv
es
4, in
e
Se ET
se
IN
u
tN
R et
ot
S
ro
S
4,
e2
RE
of
ac
TP
d
M
IN
En
I,
NM
I,
NM
Remark NMI is enabled only by external input. The watchdog timer cannot be used to release one of the standby
modes (STOP, HALT, or IDLE mode).
52
µPD784035(A), 784036(A)
Applying a low-level signal to the RESET pin initializes the internal hardware (reset status).
When the RESET input makes a low-to-high transition, the following data is loaded into the program counter (PC):
The PC contents are used as a branch destination address. Program execution starts from that address. Therefore,
a reset start can be performed from an arbitrary address.
The contents of each register can be set by software, as required.
The RESET input circuit contains a noise eliminator to prevent malfunctions caused by noise. This noise eliminator
is an analog delay sampling circuit.
Execute instruction
Delay Delay Delay Initialize PC at reset start address
RESET
(input)
For power-on reset, the RESET signal must be held active until the oscillation settling time (approximately 40 ms)
has elapsed.
Execute instruction at
Oscillation settling time Delay Initialize PC reset start address
VDD
RESET
(input)
End reset
53
µPD784035(A), 784036(A)
(1) 8-bit instructions (The instructions enclosed in parentheses are implemented by a combination of
operands, where A is described as r.)
MOV, XCH, ADD, ADDC, SUB, SUBC, AND, OR, XOR, CMP, MULU, DIVUW, INC, DEC, ROR, ROL, RORC,
ROLC, SHR, SHL, ROR4, ROL4, DBNZ, PUSH, POP, MOVM, XCHM, CMPME, CMPMNE, CMPMNC, CMPMC,
MOVBK, XCHBK, CMPBKE, CMPBKNE, CMPBKNC, CMPBKC, CHKL, CHKLA
mem MOV
[saddrp] ADDNote 1
[%saddrg]
mem3 ROR4
ROL4
r3 MOV MOV
PSWL
PSWH
B, C DBNZ
Notes 1. ADDC, SUB, SUBC, AND, OR, XOR, and CMP are the same as ADD.
2. There is no second operand, or the second operand is not an operand address.
3. ROL, RORC, ROLC, SHR, and SHL are the same as ROR.
4. XCHM, CMPME, CMPMNE, CMPMNC, and CMPMC are the same as MOVM.
5. XCHBK, CMPBKE, CMPBKNE, CMPBKNC, and CMPBKC are the same as MOVBK.
6. When saddr is saddr2 with this combination, an instruction with a short code exists.
54
µPD784035(A), 784036(A)
(2) 16-bit instructions (The instructions enclosed in parentheses are implemented by a combination of
operands, where AX is described as rp.)
MOVW, XCHW, ADDW, SUBW, CMPW, MULUW, MULW, DIVUX, INCW, DECW, SHRW, SHLW, PUSH, POP,
ADDWG, SUBWG, PUSHU, POPU, MOVTBLW, MACW, MACSW, SACW
2nd operand #word AX rp saddrp strp !addr16 mem [WHL+] byte n NoneNote 2
rp' saddrp' !!addr24 [saddrp]
1st operand [%saddrg]
mem MOVW
[saddrp]
[%saddrg]
PSW PUSH
POP
SP ADDWG
SUBWG
post PUSH
POP
PUSHU
POPU
byte MACW
MACSW
55
µPD784035(A), 784036(A)
(3) 24-bit instructions (The instructions enclosed in parentheses are implemented by a combination of
operands, where WHL is described as rg.)
MOVG, ADDG, SUBG, INCG, DECG, PUSH, POP
mem1 MOVG
[%saddrg] MOVG
Note There is no second operand, or the second operand is not an operand address.
56
µPD784035(A), 784036(A)
Note There is no second operand, or the second operand is not an operand address.
57
µPD784035(A), 784036(A)
Instruction $addr20 $!addr20 !addr16 !!addr20 rp rg [rp] [rg] !addr11 [addr5] RBn None
address
operand
Basic BCNote CALL CALL CALL CALL CALL CALL CALL CALLF CALLF BRKCS BRK
instruction BR BR BR BR BR BR BR BR RET
RETCS RETI
RETCSB RETB
Composite BF
instruction BT
BTCLR
BFSET
DBNZ
Note BNZ, BNE, BZ, BE, BNC, BNL, BL, BNV, BPO, BV, BPE, BP, BN, BLT, BGE, BLE, BGT, BNH, and BH
are the same as BC.
58
µPD784035(A), 784036(A)
Caution Absolute maximum ratings are rated values beyond which physical damage will be caused to the
product; if the rated value of any of the parameters in the above table is exceeded, even
momentarily, the quality of the product may deteriorate. Always use the product within its rated
values.
59
µPD784035(A), 784036(A)
OPERATING CONDITIONS
• Operating ambient temperature (TA) : -40 to +85 °C
• Rise time and fall time (tr, tf) (at pins which are not specified) : 0 to 200 µs
• Power supply voltage and clock cycle time : See Figure 13-1.
10 000
4 000
Clock cycle time tCYK [ns]
1 000
Guaranteed
operating
range
125
100
62.5
10
0 1 2 3 4 5 6 7
Power supply voltage [V]
60
µPD784035(A), 784036(A)
OSCILLATOR CHARACTERISTICS (TA = -40 to +85 °C, VDD = +4.5 to 5.5 V, VSS = 0 V)
VSS1 X1 X2
C1 C2
Caution When using the system clock generator, run wires in the portion surrounded by broken lines
according to the following rules to avoid effects such as stray capacitance:
61
µPD784035(A), 784036(A)
OSCILLATOR CHARACTERISTICS (TA = -40 to +85 °C, VDD = +2.7 to 5.5 V, VSS = 0 V)
VSS1 X1 X2
C1 C2
Caution When using the system clock generator, run wires in the portion surrounded by broken lines
according to the following rules to avoid effects such as stray capacitance:
62
µPD784035(A), 784036(A)
DC CHARACTERISTICS (TA = -40 to +85 °C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V) (1/2)
Input low voltage VIL1 For pins other than those described in -0.3 0.3VDD V
Notes 1, 2, 3, and 4
VIL2 For pins described in Notes 1, 2, 3, and -0.3 0.2VDD V
4
VIL3 VDD = +5.0 V ± 10 % -0.3 +0.8 V
For pins described in Notes 2, 3, and 4
Input high voltage VIH1 For pins other than those described in 0.7VDD VDD + 0.3 V
Note 1
VIH2 For pins described in Note 1 0.8VDD VDD + 0.3 V
VIH3 VDD = +5.0 V ± 10 % 2.2 VDD + 0.3 V
For pins described in Notes 2, 3, and 4
Notes 1. X1, X2, RESET, P12/ASCK2/SCK2, P20/NMI, P21/INTP0, P22/INTP1, P23/INTP2/CI, P24/INTP3,
P25/INTP4/ASCK/SCK1, P26/INTP5, P27/SI0, P32/SCK0/SCL, P33/SO0/SDA, TEST
2. P40/AD0-P47/AD7, P50/A8-P57/A15
3. P60/A16-P63/A19, P64/RD, P65/WR, P66/WAIT/HLDRQ, P67/REFRQ/HLDAK
4. P00-P07
5. P10-P17
63
µPD784035(A), 784036(A)
DC CHARACTERISTICS (TA = -40 to +85 °C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V) (2/2)
64
µPD784035(A), 784036(A)
AC CHARACTERISTICS (TA = -40 to +85 °C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V)
(0.5 + a) T - 31 ns
(0.5 + a) T - 40 ns
0.5T - 34 ns
(1 + a) T - 15 ns
(2.5 + a + n) T - 52 ns
(2 + n) T - 60 ns
(1.5 + n) T - 70 ns
Delay from RD↑ to address active tDRA After program VDD = +5.0 V ± 10 % 0.5T - 8 ns
is read
0.5T - 12 ns
After data is VDD = +5.0 V ± 10 % 1.5T - 8 ns
read
1.5T - 12 ns
(1.5 + n) T - 40 ns
(1 + a) T - 15 ns
0.5T + 35 ns
65
µPD784035(A), 784036(A)
(1.5 + n) T - 40 ns
0.5T - 25 ns
(1.5 + n) T - 40 ns
Note The hold time includes the time during which VOH1 and VOL1 are held under the load conditions of
CL = 50 pF and RL = 4.7 kΩ.
(7 + a + n) T + 40 ns
2T + 60 ns
1T - 30 ns
66
µPD784035(A), 784036(A)
(2 + a) T - 60 ns
1.5T - 60 ns
(0.5 + n) T +10 ns
(1.5 + n) T - 60 ns
T - 70 ns
nT + 10 ns
(1 + n) T - 60 ns
0.5T - 10 ns
T - 75 ns
nT + 10 ns
(1 + n) T - 70 ns
1.5T - 30 ns
1.5T - 30 ns
67
µPD784035(A), 784036(A)
SERIAL OPERATION (TA = -40 to +85 °C, VDD = +2.7 to 5.5 V, AVSS = VSS = 0 V)
(1) CSI
Serial clock cycle time (SCK0) tCYSK0 Input External clock 10/fXX + 380 ns
When SCK0 and SO0 are CMOS I/O
Output T µs
Serial clock low-level width tWSKL0 Input External clock 5/fXX + 150 ns
(SCK0) When SCK0 and SO0 are CMOS I/O
Output 0.5T - 40 µs
Serial clock high-level width tWSKH0 Input External clock 5/fXX + 150 ns
(SCK0) When SCK0 and SO0 are CMOS I/O
Output 0.5T - 40 µs
SI0 setup time (to SCK0↑) tSSSK0 40 ns
SO0 output delay time tDSBSK1 CMOS push-pull output 0 5/f XX + 150 ns
(to SCK0↓) (3-wire serial I/O mode)
tDSBSK2 Open-drain output 0 5/f XX + 400 ns
(2-wire serial I/O mode), RL = 1 kΩ
Remarks 1. The values in this table are those when CL is 100 pF.
2. T : Serial clock cycle set by software. The minimum value is 16/fXX.
3. fXX : Oscillator frequency
68
µPD784035(A), 784036(A)
Remarks 1. The values in this table are those when CL is 100 pF.
2. T: Serial clock cycle set by software. The minimum value is 16/fXX.
250 ns
85 ns
85 ns
69
µPD784035(A), 784036(A)
0.5tCYCL - 20 ns
0.5tCYCL - 20 ns
20 ns
20 ns
OTHER OPERATIONS
70
µPD784035(A), 784036(A)
Resolution 8 bit
FR = 0 180 tCYK
FR = 0 36 tCYK
Note Quantization error is not included. This parameter is indicated as the ratio to the full-scale value.
71
µPD784035(A), 784036(A)
D/A CONVERTER CHARACTERISTICS (TA = -40 to +85 °C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V)
Resolution 8 bit
72
µPD784035(A), 784036(A)
VDD - 1 V
0.8VDD or 2.2 V 0.8VDD or 2.2 V
Test points
0.8 V 0.8 V
0.45 V
73
µPD784035(A), 784036(A)
TIMING WAVEFORM
tWSTH
ASTB
tSAST tDRST
tDSTID
tHSTLA
A8-A19
tDAID tHRA
AD0-AD7
RD
tWRL
tWSTH
ASTB
tSAST tDWST
tDSTOD
tHSTLA
A8-A19
tHWA
AD0-AD7
tDSTW tHWOD
tDAW tDWOD tSODW
WR
tWWL
74
µPD784035(A), 784036(A)
HOLD TIMING
ADTB, A8-A19,
AD0-AD7, RD, WR
tFHQC
tDCFHA tDHAC
HLDRQ
tDHQLHAL
tDHQHHAH
HLDAK
ASTB
tDSTWTH
tHSTWTH
tDSTWT
A8-A19
AD0-AD7
tDAWT tDWTID
RD
tDRWTL tDWTR
WAIT
tHRWT
tDRWTH
ASTB
tDSTWTH
tHSTWTH
tDSTWT
A8-A19
AD0-AD7
tDAWT
WR
tDWWTL tDWTW
WAIT
tHWWT
tDWWTH
75
µPD784035(A), 784036(A)
tRC
ASTB
WR
RD
(2) When refresh memory is accessed for a read and write at the same time
ASTB
RD, WR
tDSTRFQ tDRFQST
tWRFQH
REFRQ
tWRFQL
ASTB
tDRFQST
RD
tDRRFQ
REFRQ
tWRFQL
ASTB
tDRFQST
WR
tDWRFQ
REFRQ
tWRFQL
76
µPD784035(A), 784036(A)
SERIAL OPERATION
(1) CSI
tWSKL0 tWSKH0
SCK
tSSSK0 tHSSK0
tCYSK0
SI Input data
tDSBSK1 tHSBSK1
SO Output data
tWSKL1 tWSKH1
SCK
tSSSK1 tHSSK1
tCYSK1
SI Input data
tDSOSK tHSOSK
SO Output data
tWASKH tWASKL
ASCK,
ASCK2
tCYASK
77
µPD784035(A), 784036(A)
tCLH tCLL
CLKOUT
tCLR tCLF
tCYCL
tWNIH tWNIL
NMI
tWIT0H tWIT0L
INTP0
tWIT1H tWIT1L
CI,
INTP1-INTP3
tWIT2H tWIT2L
INTP4, INTP5
tWRSH tWRSL
RESET
78
µPD784035(A), 784036(A)
tWXH tWXL
X1
tXR tXF
tCYX
VDD
VDDDR
tDREL
tHVD tFVD tRVD tWAIT
RESET
NMI
(Clearing by falling edge)
NMI
(Clearing by rising edge)
79
µPD784035(A), 784036(A)
A
B
60 41
61 40
C D S
Q R
80 21
1 20
F
G J
H I M
K
P
M
N
L
NOTE ITEM MILLIMETERS INCHES
Each lead centerline is located within 0.13 mm (0.005 inch) of A 17.2±0.4 0.677±0.016
its true position (T.P.) at maximum material condition.
B 14.0±0.2 0.551 +0.009
–0.008
Remark The shape and material of the ES version are the same as those of the corresponding mass-produced
product.
80
µPD784035(A), 784036(A)
The conditions listed below shall be met when soldering the µPD784035(A) and µPD784036(A).
For details of the recommended soldering conditions, refer to our document Semiconductor Device Mounting
Technology Manual (C10535E).
Please consult with our sales offices in case any other soldering process is used, or in case soldering is done under
different conditions.
Caution Do not apply two or more different soldering methods to one chip (except for partial heating
method for terminal sections).
81
µPD784035(A), 784036(A)
The following development tools are available for system development using the µPD784036(A).
See also (5).
CC78K4-L C compiler library source file for all 78K/IV series models
IE-70000-98-IF-CNote Interface adapter when the PC-9800 series computer (other than a notebook)
is used as the host machine
IE-70000-CD-IFNote PC card and interface cable when a PC-9800 series notebook is used as the
host machine
IE-70000-PC-IF-CNote Interface adapter when the IBM PC/ATTM or compatible is used as the host
machine
EV-9200GC-80 Socket for mounting on target system board made for 80-pin plastic QFP
(GC-3B9 type)
82
µPD784035(A), 784036(A)
IE-70000-98-IF-B Interface adapter when the PC-9800 series computer (other than a notebook)
IE-70000-98-IF-CNote is used as the host machine
IE-70000-98N-IF-B Interface adapter and cable when a PC-9800 series notebook is used as the
host machine
IE-70000-PC-IF-B Interface adapter when the IBM PC/AT or compatible is used as the host
IE-70000-PC-IF-CNote machine
IE-78000-R-SV3 Interface adapter and cable when the EWS is used as the host machine
EV-9200GC-80 Socket for mounting on target system board made for 80-pin plastic QFP
(GC-3B9 type)
(4) Real-time OS
83
µPD784035(A), 784036(A)
• The NP-80GC is a product from Naito Densei Machida Seisakusho Co., Ltd. (044-822-3813). Consult the NEC
sales representative for purchasing.
• The host machines and operating systems corresponding to each software are shown below.
CC78K4 Note
MX78K4 Note
84
µPD784035(A), 784036(A)
Document No.
Document name
Japanese English
Document No.
Document name
Japanese English
SM78K Series System Simulator External Parts User Open U10092J U10092E
Interface Specifications
ID78K4 Integrated Debugger HP-UX, SunOS, NEW-OS Base Reference U11960J U11960E
Caution The above documents may be revised without notice. Use the latest versions when you design
application systems.
85
µPD784035(A), 784036(A)
Document No.
Document name
Japanese English
Debugger U10364J -
Other Documents
Document No.
Document name
Japanese English
Guide to Prevent Damage for Semiconductor Devices by Electrostatic Discharge (ESD) U11892J E11892E
Caution The above documents may be revised without notice. Use the latest versions when you design
application systems.
86
µPD784035(A), 784036(A)
Note: Strong electric field, when exposed to a MOS device, can cause destruction
of the gate oxide and ultimately degrade the device operation. Steps must
be taken to stop generation of static electricity as much as possible, and
quickly dissipate it once, when it has occurred. Environmental control must
be adequate. When it is dry, humidifier should be used. It is recommended
to avoid using insulators that easily build static electricity. Semiconductor
devices must be stored and transported in an anti-static container, static
shielding bag or conductive material. All test and measurement tools
including work bench and floor should be grounded. The operator should
be grounded using wrist strap. Semiconductor devices must not be touched
with bare hands. Similar precautions need to be taken for PW boards with
semiconductor devices on it.
Note: Power-on does not necessarily define initial status of MOS device. Produc-
tion process of MOS does not define the initial operation status of the device.
Immediately after the power source is turned ON, the devices with reset
function have not yet been initialized. Hence, power-on does not guarantee
out-pin levels, I/O settings or contents of registers. Device is not initialized
until the reset signal is received. Reset operation must be executed imme-
diately after power-on for devices having reset function.
87
µPD784035(A), 784036(A)
88
µPD784035(A), 784036(A)
Regional Information
Some information contained in this document may vary from country to country. Before using any NEC
product in your application, pIease contact the NEC office in your country to obtain a list of authorized
representatives and distributors. They will verify:
• Device availability
• Ordering information
• Development environment specifications (for example, specifications for third-party tools and
components, host computers, power plugs, AC supply voltages, and so forth)
• Network requirements
In addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary
from country to country.
NEC Electronics Inc. (U.S.) NEC Electronics (Germany) GmbH NEC Electronics Hong Kong Ltd.
Santa Clara, California Benelux Office Hong Kong
Tel: 408-588-6000 Eindhoven, The Netherlands Tel: 2886-9318
800-366-9782 Tel: 040-2445845 Fax: 2886-9022/9044
Fax: 408-588-6130 Fax: 040-2444580
800-729-9288 NEC Electronics Hong Kong Ltd.
NEC Electronics (France) S.A. Seoul Branch
NEC Electronics (Germany) GmbH Velizy-Villacoublay, France Seoul, Korea
Duesseldorf, Germany Tel: 01-30-67 58 00 Tel: 02-528-0303
Tel: 0211-65 03 02 Fax: 01-30-67 58 99 Fax: 02-528-4411
Fax: 0211-65 03 490
NEC Electronics (France) S.A. NEC Electronics Singapore Pte. Ltd.
NEC Electronics (UK) Ltd. Spain Office United Square, Singapore 1130
Milton Keynes, UK Madrid, Spain Tel: 253-8311
Tel: 01908-691-133 Tel: 01-504-2787 Fax: 250-3583
Fax: 01908-670-290 Fax: 01-504-2860
NEC Electronics Taiwan Ltd.
NEC Electronics Italiana s.r.1. NEC Electronics (Germany) GmbH Taipei, Taiwan
Milano, Italy Scandinavia Office Tel: 02-719-2377
Tel: 02-66 75 41 Taeby, Sweden Fax: 02-719-5951
Fax: 02-66 75 42 99 Tel: 08-63 80 820
Fax: 08-63 80 388 NEC do Brasil S.A.
Cumbica-Guarulhos-SP, Brasil
Tel: 011-6465-6810
Fax: 011-6465-6829
J97. 8
89
µPD784035(A), 784036(A)
Some related documents may be preliminary versions. Note that, however, what documents are preliminary is not indicated
in this document.
The export of this product from Japan is regulated by the Japanese government. To export this product may be prohibited
without governmental license, the need for which must be judged by the customer. The export or re-export of this product
from a country other than Japan may also be prohibited without a license from that country. Please call an NEC sales
representative.
No part of this document may be copied or reproduced in any form or by any means without the prior written
consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear in this
document.
NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual
property rights of third parties by or arising from use of a device described herein or any other liability arising
from use of such device. No license, either express, implied or otherwise, is granted under any patents,
copyrights or other intellectual property rights of NEC Corporation or others.
While NEC Corporation has been making continuous effort to enhance the reliability of its semiconductor devices,
the possibility of defects cannot be eliminated entirely. To minimize risks of damage or injury to persons or
property arising from a defect in an NEC semiconductor device, customers must incorporate sufficient safety
measures in its design, such as redundancy, fire-containment, and anti-failure features.
NEC devices are classified into the following three quality grades:
"Standard", "Special", and "Specific". The Specific quality grade applies only to devices developed based on
a customer designated "quality assurance program" for a specific application. The recommended applications
of a device depend on its quality grade, as indicated below. Customers must check the quality grade of each
device before using it in a particular application.
Standard: Computers, office equipment, communications equipment, test and measurement equipment,
audio and visual equipment, home electronic appliances, machine tools, personal electronic
equipment and industrial robots
Special: Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster
systems, anti-crime systems, safety equipment and medical equipment (not specifically designed
for life support)
Specific: Aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life
support systems or medical equipment for life support, etc.
The quality grade of NEC devices is "Standard" unless otherwise specified in NEC's Data Sheets or Data Books.
If customers intend to use NEC devices for applications other than those specified for Standard quality grade,
they should contact an NEC sales representative in advance.
Anti-radioactive design is not implemented in this product.
M4 96. 5