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