ΜPD75402A
Page
Major Revisions in This Version
Instruction Functions and Application
Content to be read carefully
Remarks
Development Tool Related Documents
Related Documentation Device Related Documents
Other Related Documents
Latest documents should be used for design purposes, etc
Contents
Interrupt Control Circuit Configuration
Basic Interval Timer
Digital INPUT/OUTPUT Ports
Clock Generation Circuit
Standby Mode Reset
Standby Mode Setting and Operation States
Operation After Standby Mode Reset
Standby Mode Application
Contents of Figures
Fig. No Title
Table No Title
Contents of Tables
FAX PPC
General
ECR VCR
For details, see Interrupt Functions
General Outline of Functions
Ordering Information
General Ordering Information and Quality Grade
Quality Grade
VPP
PORT0 PORT1 PORT2 PORT3 PORT5
Block Diagram
INT0 Interrupt INT2 Control
PORT6
SCK
General PIN Configuration
SO/SB0
VPP NC
Prom mode
NC NC NC P50
2 44-Pin Plastic QFP 10mm Normal operating mode
P01/SCK
NC V SS NC P22/PCL
A2 NC NC NC NC
PIN Functions
SCK
ΜPD75402A PIN Function List Port Pin List
SO/SB0
INT0
SCK SB0
Port 0’s, 1’s Dual-Function Pins
PIN Functions Normal Operating Mode
5 INT2 ..... Port 1 Dual-Function Input
4 INT0 ..... Port 1 Dual-Function Input
PCL ..... Port 2 Dual-Function Output
7 X1, X2 Crystal
Reset Reset
CE Chip Enable ..... Input
PIN Functions Prom Mode
OE Output Enable ..... Input
1 A0 to A14 Address ..... Input
Pin Input/output Types
PIN Functions PIN INPUT/OUTPUT Circuits
Remarks a circle
P22/PCL
IN/OUT
OUT
Type F B Type M a
PIN Functions Unused PIN Treatment
P00, Reset
Data Memory Bank Configuration
Features of Architecture and Memory MAP
Fbfh
FB0H
FF0H Fffh
@HL
Addressing Mode List
Bit direct addressing mem.bit
Data Memory Addressing Modes
Bit direct addressing mem
Bit register indirect addressing @HL
Specific address bit manipulation addressing fmem. bit
SUB Push POP RET
Stack addressing
Push HL POP
Push HL Push XA RET
Applicable Addressing Modes at Peripheral Hardware Operation
Features of Architecture and Memory MAP MEMORY-MAPPED I/O
ΜPD75402A I/O Map 1/2
ΜPD75402A I/O Map 2/2
Program Counter PC .... Bits
Internal CPU Functions
PC1 PC0
Program Memory Map
Program Memory ROM .... ,920 Words × 8 Bits
Data area
Internal CPU Functions Data Memory RAM
General register area
Stack area
Peripheral hardware area
Internal CPU Functions General Register .... × 4 Bits
General Register Configuration
Accumulators
Internal CPU Functions Accumulator
Range of 020H to 03FH
Internal CPU Functions Stack Pointer SP .... Bits
MOV SP, XA
SP4 SP3 SP2 SP1 SP0
IST0 PSW
Data Saved to Stack Memory
Carry flag CY
Internal CPU Functions Program Status Word PSW .... Bits
Carry Flag Manipulation Instructions
SET1
Interrupt Status Flag Indication Content
Skip flag SK2, SK1, SK0
Interrupt status flag IST0
PORT0
Peripheral Hardware Functions
Digital Input/Output Port Types and Characteristics
PO0
Csim Poga
PO1
INT2 INT0
PO3
Configuration of Port
Configuration of Ports 2
PM5 Pmgb
Input/Output Mode Setting
Pmga
Digital Input/Output Port Handling Instructions
Fech PM5 PM2 Pmgb
Bit handling instructions
Operations when output mode is set
Operations when input mode is set
Digital Input/Output Port Operations
Operations with Input/Output Port Handling Instructions
Internal Pull-up Resistors
Internal Pull-Up Resistor Specification for Each Port
PORT1
MOV POGA, XA
Fdch PO6 PO3 PO2 PO1 PO0
Data fetch by 2-machine-cycle instruction
Digital Input/Output Port Input/Output Timing
Data latching by 1-machine-cycle instruction
Data latching by 2-machine-cycle instruction
Peripheral Hardware Functions Clock Generation Circuit
Clock Generation Circuit Configuration
Processor clock control register PCC
Clock Generation Circuit Function and Operaion
SEL
MOV PCC, a
PCC
FB3H PCC3 PCC2 PCC1 PCC0
12 System Clock Oscillation Circuit External Circuitry
System clock oscillation circuit
13 Example of Poor Resonator Connection Circuit 2/2
Use of Variable Minimum Instruction Execution Time Function
CPU Clock Setting
Example
Maximum Time Required for Change of CPU Clock
15 Change of Φ after Power-On Reset
Differences Between μPD75402A and μPD75402
FB3H PCC3 PCC2 PCC1
17 μPD75402 Processor Clock Control Register Format
Peripheral Hardware Functions Clock Output Circuit
Clock Output Circuit Configuration
P22/PCL CLOM3 CLOM1 CLOM0 Clom PORT2.2
Clom
Clock Output Mode Register Clom
Examle of Remote Control Application
Clock Output Procedure
Basic Interval Timer Configuration
Peripheral Hardware Functions Basic Interval Timer
MPX
BTM3 BTM2
MOV BTM. a
Basic Intercal Timer Mode Register BTM
BTM3
BTM
From the beginning
Basic Interval Timer Operation
MOV BTM,A
Examples of Basic Interval Timer Applications
Iebt
SEL MOV
Wire serial I/O mode
Operation-halted mode
Peripheral Hardware Functions Serial Interface
Serial Interface Functions
Serial Interface Configuration
SBI mode serial bus interface mode
Functions
Serial Interface Block Diagram
Serial bus interface control register Sbic
Serial operating mode register Csim
Shift register SIO
SO latch
Intcsi control circuit
Register Functions Serial operating mode register Csim
Serial clock control circuit
Serial clock selection bit W
Serial interface operating mode selection bit W
Csie COI WUP CSIM3 CSIM1 Csim
Csie
Signal from address comparator R
SET1 Csie
MOV CSIM, XA
Csie CSIM3
Csie CSIM1
Cmdd Reld Cmdt Relt
FE2H
Command detection flag R
Command trigger bit W
Bus release detection flag R
Acknowledge trigger bit W
Acknowledge detection flag R
Busy enable bit R/W
CLK
SIO
BUSY/ACK
See 5.5.6 8 Error detection for details
Error detection
Slave address register SVA
Slave address detection
Csie C0I WUP CSIM3 CSIM1 Csim
Register setting
28 Example of 3-Wire Serial I/O System Configuration
5 3-Wire Serial I/O Mode Operation
Remarks Figuer Apply to fXX = 4.19 MHz operation
Shift register data do not match Register data match
FE2H Bsye Ackd Acke Ackt Cmdd Reld Cmdt Relt Sbic
Command trigger bit
Communication operation
29 3-Wire Serial I/O Mode Timing
Signals
Serial Clock Selection and Use in 3-Wire Serial I/O Mode
Serial clock selection
Relt Cmdt
Start of transfer
Data transfer order
MOV XA, Tdata
Wire serial I/O mode applications
MOV SIO, XA
SCK SO/SB0
Iecsi
MOV XA, Tdata SIO, XA
MOV XA, Tdata XCH XA, SIO
MOV RDATA, XA
+ VDD
SBI Mode Operation
CPU SB0 SCK
SB0 SCK
Acknowledge signal ACK control function
Address/command/data differentiation function
Busy signal Busy control function
SBI functions
SB0 ACK
SBI definition
SB0 C0 ACK Busy
SB0 D0 ACK Busy
Command signal CMD
Bus release signal REL
SCK H
SCK H SB0
37 Slave Selection by Address
Address
Data
Command & data
SCK SB0 ACK
Acknowledge signal ACK
100
Busy signal BUSY, ready signal Ready
SCK SB0 ACK Busy
101
102
103
104
105
Serial Clock Selection and Use in SBI Mode
106
RELT, CMDT, Reld & Cmdd Operation Slave
SIO SCK SB0 Relt Cmdt Reld Cmdd
SIO SCK
107
44 Ackt Operation
When Acke = 0 on completion of transfer
When Acke is set after completion of transfer
When Acke = 1 interval is short
108
109
When ACK signal is output after 9th SCK clock interval
SCK SB0 ACK Ackd
SCK SB0 Bsye ACK
SCK Cmdd
110 Signals in SBI Mode
SB0 ACK Ready
SB0 Ready
REL CMD
111
Pin Configuration Diagram
Pin configuration
Use of slave address register SVA
Address match detection method
113
Chapter
114
Peripheral
Hardware
115
50 Command Transmission from Master Device to Slave
51 Data Transmission from Master Device to Slave Device
116
117
52 Data Transmission from Slave Device to Master Device
118
Points to note concerning SBI mode
Serial bus configuration
SBI mode application
119
Ii Communication procedure
Description of commands Command types
120
➀ Read command
Iii Command formats
➁ WRITE, END and Stop commands
121
MSM
122
ACK Stop
123
➂ Status command
Status
MSB LSB
➄ Chgmst command
Reset command
124
Chgmst
Errors generated on the slave side
Iv Error occurrence
Errors generated on the master side
125
Interrupt Functions
127
Interrupt Request Source Types
Interrupt Functions Interrupt Source Types and Vector Table
VEN T1 GOT OBT
VENT1 Gotobt VENT2 GOTO0
Interrupt Request Flag Setting Signal
Interrupt request flag & interrupt enable flag
Example EI
IE0
130
External interrupt input pin hardware
INT2 Input Noise Elimination
INT0 Noise Elimination Circuit Input/Output Timing
132
Interrupt master enable flag IME
FB4H IM03
FB2H
IST0 Interrupt Servicing Status
Interrupt status flag
133
YES
Interrupt Functions Interrupt Sequence
IME=1
Interrupt INTxxx generation
136
Interrupt enabling/disabling
Interrupt Functions Interrupt Applications
EI Iecsi
138
Example using INTBT, INT0 falling edge active, and Intcsi
CLR1 IRQ0
➄ Reti
EI IE0
139
➂ Intcsi Reti
➃ EI Iecsi Reti
140
Pending interrupt execution
INT0 Intcsi ➁ Reti
Halt mode
Stop mode
Standby Function
Standby Mode Operation States
Standby Function Standby Mode Setting and Operation States
Stop mode reset by Reset input
Standby Function Standby Mode Reset
Halt mode reset by Reset input
Halt mode reset by interrupt generation
Halt
144
IME =
Standby Function Operation After Standby Mode Reset
Reset at Power-on
Reset Signal Acceptance
147
State of Hardware after Reset
OFF
148
Architecture and Memory MAP
Bit Manipulation Instructions
Instruction SET Special Instructions
Stack Instructions
Example A0
Base correction at addition
Base Correction Instructions
Addc
Adds Addc
Operation identifier and description
Instruction SET Instruction SET and ITS Operation
Operation description legend
Description of machine cycle field
Description of addressing area field symbols
152
Adds
Movt XA, @PCXA
Addc
XOR
154
Instructions
Instruction Group
155
NOP
Instruction SET Operation Code of Each Instruction
Description of operation code symbols
Bit manipulation addressing operation code
Iebt Iecsi IE0 IE2
SET CLR SKT Not
Rorc Not Incs
Halt Stop NOP
RET Rets Reti Push POP
Move Instructions
Instruction SET Instruction Functions and Application
MOV A, #0BH
MOV HL, #5FH
160
MOV XA, 20H
MOV XCH
Loop XCH
161
Table data on that
Table Reference Instructions
162
02FFH
See section
Arithmetic and Logic Instructions
163
164
Or A, @HL
165
Rorc a
166
Incs reg
167
SKE reg, #n4
168
Carry Flag Operation Instructions
169
Bit Manipuration Instructions
170
SKF mem. bit
171
BR addr
172
Subroutine Stack Control Instructions
173
Push rp
174
Interrupt Control Instructions
175
Input/Output Instructions
176
Halt
177
178
Prom Writing Tools
Language Processor
179
180
Debugging Tools
181
Development Tool Configuration
IBM PC/AT
182
183
Irqcs
184
Pmgb Cmdd
Port