ΜPD75402A
Page
Major Revisions in This Version
Remarks
Content to be read carefully
Instruction Functions and Application
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
ECR VCR
General
FAX PPC
For details, see Interrupt Functions
General Outline of Functions
Quality Grade
General Ordering Information and Quality Grade
Ordering Information
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
PCL ..... Port 2 Dual-Function Output
4 INT0 ..... Port 1 Dual-Function Input
5 INT2 ..... Port 1 Dual-Function Input
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
FF0H Fffh
FB0H
Fbfh
@HL
Addressing Mode List
Bit direct addressing mem
Data Memory Addressing Modes
Bit direct addressing mem.bit
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
PC1 PC0
Internal CPU Functions
Program Counter PC .... Bits
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 Manipulation Instructions
Internal CPU Functions Program Status Word PSW .... Bits
Carry flag CY
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
Fech PM5 PM2 Pmgb
Digital Input/Output Port Handling Instructions
Pmga
Bit handling instructions
Digital Input/Output Port Operations
Operations when input mode is set
Operations when output mode is set
Operations with Input/Output Port Handling Instructions
Internal Pull-up Resistors
Internal Pull-Up Resistor Specification for Each Port
Fdch PO6 PO3 PO2 PO1 PO0
MOV POGA, XA
PORT1
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
Example
CPU Clock Setting
Use of Variable Minimum Instruction Execution Time Function
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
P22/PCL CLOM3 CLOM1 CLOM0 Clom PORT2.2
Clock Output Circuit Configuration
Peripheral Hardware Functions Clock Output Circuit
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
Serial clock control circuit
Register Functions Serial operating mode register Csim
Intcsi control circuit
Csie COI WUP CSIM3 CSIM1 Csim
Serial interface operating mode selection bit W
Serial clock selection bit W
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
BUSY/ACK
SIO
CLK
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
SCK SB0 ACK Busy
Busy signal BUSY, ready signal Ready
100
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
113
Address match detection method
Use of slave address register SVA
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
119
SBI mode application
Serial bus configuration
120
Description of commands Command types
Ii Communication procedure
➀ Read command
Iii Command formats
➁ WRITE, END and Stop commands
121
ACK Stop
122
MSM
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
133
Interrupt status flag
IST0 Interrupt Servicing Status
IME=1
Interrupt Functions Interrupt Sequence
YES
Interrupt INTxxx generation
136
EI Iecsi
Interrupt Functions Interrupt Applications
Interrupt enabling/disabling
138
Example using INTBT, INT0 falling edge active, and Intcsi
CLR1 IRQ0
➄ Reti
EI IE0
139
➂ Intcsi Reti
➃ EI Iecsi Reti
INT0 Intcsi ➁ Reti
Pending interrupt execution
140
Standby Function
Stop mode
Halt mode
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
OFF
State of Hardware after Reset
147
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 description legend
Instruction SET Instruction SET and ITS Operation
Operation identifier and description
152
Description of addressing area field symbols
Description of machine cycle field
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
161
Loop XCH
MOV XCH
Table data on that
Table Reference Instructions
162
02FFH
163
Arithmetic and Logic Instructions
See section
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
179
Language Processor
Prom Writing Tools
180
Debugging Tools
IBM PC/AT
Development Tool Configuration
181
182
183
Irqcs
184
Pmgb Cmdd
Port