PD17072 and 17073 are low-voltage 4-bit single-chip CMOS microcontrollers containing hardware ideal for
organizing a digital tuning system.
The CPU employs 17K architecture and can manipulate the data memory directly, perform arithmetic operations,
and control peripheral hardware with a single instruction. All the instructions are 16-bit one-word instructions.
As peripheral hardware, a prescaler that can operate at up to 230 MHz for a digital tuning system, a PLL frequency
synthesizer, and an intermediate frequency (IF) counter are integrated in addition to I/O ports, an LCD controller/driver,
A/D converter, and BEEP.
Therefore, a high-performance, multi-function digital tuning system can be configured with a single chip of
µ
PD17072 or 17073.
Because the µPD17072 and 17073 can operate at low voltage (VDD = 1.8 to 3.6 V), they are ideal for controlling
battery-cell driven portable devices such as portable radio equipment, headphone stereos, or radio cassette
recorders.
FEATURES
• 17K architecture: general-purpose register system
(fixed at 00H through 0FH of BANK0, shared with data buffers.)
LCD segment register15 × 4 bits
Peripheral control register32 × 4 bits
Instruction execution time• 53.3 µs (with 75-kHz crystal resonator: normal operation)
CLD0, CAPLCD1 : Capacitor connection for LCD drive voltage
CAP
CE: Chip enable
COM0-COM2: LCD common signal output
EO: Error out
FMIFC: Intermediate frequency (IF) counter input
GND: Ground
INT: External interrupt request signal input
LCD0-LCD14: LCD segment signal output
NC: No connection
P0A0-P0A3: Port 0A
P0B0-P0B3: Port 0B
P0C0, P0C1: Port 0C
P0D2, P0D3: Port 0D
P1A0-P1A3: Port 1A
P1B0-P1B3: Port 1B
P1C0: Port 1C
LCD0, REGLCD1 : LCD drive voltage
REG
REG0: PLL voltage regulator
REG1: Oscillation circuit voltage regulator
SCK: Serial clock I/O
SI: Serial data input
SO0, SO1: Serial data output
VCOL: Local oscillator input
VCOH: Local oscillator input
1.1Pin Function List ...................................................................................................................................... 12
1.2Equivalent Circuits of Pins....................................................................................................................... 15
1.3Processing of Unused Pins ..................................................................................................................... 18
1.4Notes on Using CE Pin............................................................................................................................ 19
2. PROGRAM MEMORY (ROM) ........................................................................................................... 20
7.4Notes on Using ALU ................................................................................................................................44
8
µ
PD17072,17073
8. PERIPHERAL CONTROL REGISTERS ........................................................................................... 45
8.1Outline of Peripheral Control Registers .................................................................................................. 45
8.2Configuration and Function of Peripheral Control Registers ................................................................. 46
9. DATA BUFFER (DBF) ....................................................................................................................... 54
11.2Interrupt Control Block............................................................................................................................. 67
13.8Status at Reset .......................................................................................................................................111
14. SERIAL INTERFACE ....................................................................................................................... 112
14.2Clock Input/Output Control Block and Data Input/Output Control Block............................................. 113
14.3Clock Control Block ............................................................................................................................... 116
14.8Notes on Setting and Reading Data ..................................................................................................... 122
14.9Operational Outline of Serial Interface ................................................................................................. 123
14.10 Status on Reset ..................................................................................................................................... 125
15. PLL FREQUENCY SYNTHESIZER ................................................................................................ 126
15.2Input Selector Block and Programmable Divider ................................................................................. 127
15.3Reference Frequency Generator ........................................................................................................... 133
φ
15.4Phase Comparator (
15.5PLL Disable Status ................................................................................................................................ 139
15.6Use of PLL Frequency Synthesizer ...................................................................................................... 1 40
15.7Status on Reset ..................................................................................................................................... 143
-DET), Charge Pump, and Unlock FF ............................................................... 135
16. INTERMEDIATE FREQUENCY (IF) COUNTER ............................................................................. 14 4
16.1Outline of Intermediate Frequency (IF) Counter .................................................................................. 1 44
16.2IF Counter Input Selector Block and Gate Time Control Block ........................................................... 145
16.3Start Control Block and IF Counter....................................................................................................... 147
16.4Using IF Counter.................................................................................................................................... 152
16.5Status at Reset ...................................................................................................................................... 154
17.1Configuration and Function of BEEP .................................................................................................... 155
17.2Output Wave Form of BEEP ................................................................................................................. 156
17.3Status at Reset ...................................................................................................................................... 157
18.7Status at Reset ...................................................................................................................................... 167
19.2Halt Function .......................................................................................................................................... 1 70
20.1Configuration of Reset Block................................................................................................................. 1 88
20.2Reset Function ....................................................................................................................................... 18 9
21.1Instruction Set Outline ........................................................................................................................... 204
22.5Peripheral Control Register ................................................................................................................... 211
APPENDIX A. NOTES ON CONNECTING CRYSTAL RESONATOR................................................220
APPENDIX B. DEVELOPMENT TOOLS ..............................................................................................221
11
µ
PD17072,17073
1. PIN FUNCTION
1.1 Pin Function List
Pin No.SymbolFunctionOutput formatAt power-ON
QFPTQFPreset
11P1C0/SO0Port 1C and output of serial interface.CMOS push-pullLow-level output
P1C0
•
• 1-bit output port
SO0
•
• Serial data output
22P0A04-bit output port (port 0A).CMOS push-pullLow-level output
33P0A1
44P0A2
56P0A3
67P1B04-bit output port (port 1B).CMOS push-pullLow-level output
78P1B1
89P1B2
910P1B3
1011P1A0Port 1A and analog inputs to A/D converter.—Inputs with pull1113P1A1
1214P1A2/AD0• 4-bit input port
1315P1A3/AD1
1416P0C02-bit I/O port (port 0C).CMOS push-pullInput
1517P0C1Input/output mode can be set in 1-bit units.
1618P0D2/AMIFCPort 0D and IF counter inputs.CMOS push-pullInput
1719P0D3/FMIFC/•P0D3, P0D2
AMIFC• 2-bit I/O port
1820GNDGround——
21
1922EOOutput from charge pump of PLL frequency synthesizerCMOS 3-stateFloating
2023VCOLInput local oscillation frequency of PLL.—Floating
2124VCOH
2225REG0Output of PLL voltage regulator.—Low-level output
P1A3-P1A0down resistor
•
AD1, AD0
•
• Analog inputs to A/D converter
• Can be set in input/output mode in 1-bit units.
FMIFC, AMIFC
•
• IF counter inputs
Connect this pin to GND via 0.1-µF capacitor.
12
REG0
0.1 F
µ
µ
PD17072,17073
Pin No.SymbolFunctionOutput formatAt power-ON
QFPTQFPreset
2326VDDPositive power supply.——
27Supply 1.8 to 3.6 V (TA = –20 to +70 °C) to operate
all functions.
Do not apply voltage higher than that of VDD pin to
any pin other than VDD.
2428XOUTPins for connecting crystal resonator for systemCMOS push-pull—
2529XIN
2630REG1Output of voltage regulator for oscillation circuit.——
clock oscillation.
Connect this pin to GND via 0.1-µF capacitor.
REG1
0.1 F
—
µ
2731REGLCD0
2832CAPLCD0LCD drive power pins.
2933CAPLCD1
3034REGLCD1Connect capacitors for doubler circuit to generate
REGLCD1, REGLCD0——
•
CAPLCD1, CAPLCD0
•
LCD drive voltage, across these pins.
To configure doubler circuit, connect capacitors
as shown below.
REG
CAP
CAP
REG
LCD
LCD
LCD
LCD
C1 = C2 = 0.1 F
C3 = 0.01 F
C1
1
1
C3
0
0
C2
µ
µ
Caution The value of the LCD drive voltage differs
if the values of C1, C2, and C3 are changed
because of the configuration of the doubler
circuit.
13
µ
PD17072,17073
Pin No.SymbolFunctionOutput formatAt power-ON
QFPTQFPreset
3135COM0Common signal outputs of LCD controller/driver.CMOS ternaryLow-level output
3236COM1output
3337COM2
3439COM3
3540LCD0Segment signal outputs of LCD controller/driver.CMOS push-pullLow-level output
|| |
4956LCD14
5057CEDevice operation select and reset signal input.—Input
5158INTExternal interrupt request signal input.—Input
Interrupt request is issued at rising or falling edge
of signal input to this pin.
5260BEEPBEEP signal output pin.CMOS push-pullLow-level output
BEEP output of 1.5 kHz or 3 kHz can be selected.
5361P0B0Port 0B and serial interface I/O.CMOS push-pullInput
5462P0B1
5563P0B2/SCK• 4-bit I/O port
5664P0B3/SI/SO1• Can be set in input or output mode in 1-bit units.
It is recommended that the unused pins be connected as follows:
Table 1-1. Processing of Unused Pins
Pin nameI/O modeRecommended processing of unused pins
Port pinP0A0-P0A3CMOS push-pull outputOpen
P0B0, P0B1I/O
P0B2/SCK
P0B3/SI/SO1
P0C0, P0C1
P0D2/AMIFC
P0D3/FMIFC/AMIFC
P1A0, P1A1InputConnect each of these pins to VDD or GND via resistor
P1A2/AD0
P1A3/AD1
P1B0-P1B3CMOS push-pull outputOpen
P1C0/SO0
Pins otherBEEPCMOS push-pull outputOpen
than port
pins
CEInputConnect to VDD via resistor
COM0-COM3OutputOpen
EOOutput
INTInputConnect to GND via resistor
LCD0-LCD14CMOS push-pull outputOpen
VCOH, VCOLInputConnect each of these pins to GND via resistor
Note 1
Set by software to output low level and open
Note 2
Note 2
µ
PD17072,17073
Note 2
.
.
.
Note 2
.
Notes 1. The I/O ports are set in the input mode on power application, on clock stop, and on CE reset.
2. When pulling up (connecting to VDD via resistor) or pulling down (connecting to GND via resistor) a pin
externally with high resistance, the pin almost goes into a high-impedance state, and consequently, the
current consumption (through current) of the port increases. Generally, the pull-up or pull-down
resistance is several 10 kΩ, though it varies depending on the application circuit.
18
µ
PD17072,17073
1.4 Notes on Using CE Pin
The CE pin has a function to set a test mode in which the internal operations of the µPD17073 are tested (dedicated
to IC test), in addition to the functions listed in 1.1 Pin Function List.
When a voltage higher than V
VDD is applied to the CE pin even during normal operation, the test mode is set, affecting the normal operation.
If the wiring of the CE pin is too long, the above problem occurs because wiring noise is superimposed on the CE
pin.
Therefore, wire the CE pin with as short a wiring length as possible to suppress noise. If noise cannot be avoided,
use external components as shown below to suppress noise.
DD is applied to the CE pin, the test mode is set. This means that if noise exceeding
• Connect a diode with low V
Diode with
F
low V
CE
F between CE and VDD• Connect a capacitor between CE and VDD
V
DD
V
DD
CE
V
DD
V
DD
19
µ
2. PROGRAM MEMORY (ROM)
2.1 General
Figure 2-1 shows the configuration of the program memory.
As shown in this figure, the program memory consists of a program memory and a program counter.
The addresses of the program memory are specified by the program counter.
The program memory has the following two major functions:
(1) Stores program
(2) Stores constant data
Figure 2-1. Outline of Program Memory
PD17072,17073
Program counter
Specifies address
Program memory
•
•
•
Instruction
•
•
•
•
•
•
Constant data
•
•
•
20
µ
PD17072,17073
2.2 Program Memory
Figure 2-2 shows the configuration of the program memory.
As shown in this figure, the program memory is configured as follows:
µ
PD17072: 3072 × 16 bits (0000H-0BFFH)
µ
PD17073: 4096 × 16 bits (0000H-0FFFH)
Therefore, the addresses of the program memory range from 0000H to 0FFFH.
All the “instructions” are “one-word instructions” each of which is 16 bits long. Consequently, one instruction can
be stored in one address of the program memory.
As constant data, the contents of the program memory are read to the data buffer by using a table reference
instruction.
Figure 2-2. Configuration of Program Memory
0
0
0
0
H
0
0
0
1
H
0
0
0
2
H
0
0
0
3
H
Reset start address
Serial interface interrupt vector
Basic timer 1 interrupt vector
INT pin interrupt vector
Page 0
CALL addr
instruction
subroutine
entry address
BR addr
instruction
branch address
BR @AR
instruction
branch address
CALL @AR
0
7
F
F
H
0
B
F
F
H
0
F
F
F
H
Caution With the
µ
(with PD17072)
(with PD17073)
µ
16 bits
µ
PD17072, the range of addresses that can be called by each instruction is 0000H to
Page 1
instruction
subroutine entry
address
MOVT DBF @AR
instruction table
reference address
0BFFH. The area from addresses 0C00H through 0FFFH is an undefined area.
2.3 Program Counter
Figure 2-3 shows the configuration of the program counter.
The program counter specifies an address of the program memory.
As shown in this figure, the program counter is a 12-bit binary counter. The most significant bit b
page.
11 indicates a
PC
11
Page
PC
Figure 2-3. Configuration of Program Counter
10
PC
9
PC
8
PC
7
PC
PC
PC
6
5
PC
4
PC
3
PC
2
PC
1
PC
0
21
µ
PD17072,17073
2.4 Execution Flow of Program Memory
Execution of the program is controlled by the program counter which specifies an address of the program memory.
Figure 2-4 shows the values to be set to the program counter when each instruction is executed.
Table 2-1 shows the vector addresses that are to be set to the program counter when each interrupt occurs.
Figure 2-4. Specification by Program Counter On Execution of Each Instruction
The program memory addresses of the µPD17072 are 0000H through 0BFFH. However, because the
addresses that can be specified by the program counter (PC) are 0000H through 0FFFH, keep the following
points in mind when specifying a program memory address:
• Be sure to write a branch instruction to address 0BFFH, when writing an instruction to this address.
• Do not write an instruction to addresses 0C00H through 0FFFH.
• Do not branch to addresses 0C00H through 0FFFH.
µ
(2) With
PD17073
The program memory addresses of the µPD17073 are 0000H through 0FFFH. Keep the following point in mind:
• Be sure to write a branch instruction to address 0FFFH, when writing an instruction to this address.
22
µ
PD17072,17073
3.ADDRESS STACK (ASK)
3.1 General
Figure 3-1 outlines the address stack.
The address stack consists of a stack pointer and an address stack register.
The address of the address stack register is specified by the stack pointer.
The address stack saves return addresses when a subroutine call instruction has been executed and when an
interrupt has been accepted.
The address stack is also used when a table reference instruction is executed.
Figure 3-1. Outline of Address Stack
Stack pointerAddress stack register
Specifies address
Return address
3.2 Address Stack Register (ASR)
Figure 3-2 shows the configuration of the address stack register.
The address stack register consists of three 12-bit registers ASR0-ASR2. Actually, however, no register is
assigned to ASR2, and the address stack register therefore consists of two 12-bit registers (ASR0 and ASR1).
The address stack saves return addresses when a subroutine call instruction has been executed, when an interrupt
has been accepted, and when a table reference instruction is executed.
Figure 3-2. Configuration of Address Stack Register
Stack pointer
(SP)
Bit
3b2b1b0
b
00SP1 SP0
Address
0H
1H
2H
b
11b10b9b8b7b6b5b4b3b2b1b0
Address stack register (ASR)
Bit
ASR0
ASR1
ASR2 (Undefined)
Cannot
be used
23
µ
PD17072,17073
3.3 Stack Pointer (SP)
Figure 3-3 shows the configuration and functions of the stack pointer.
The stack pointer is a 4-bit binary counter.
The stack pointer specifies the addresses of the address stack registers.
The value of the stack pointer can be directly read or written by using a register manipulation instruction.
Figure 3-3. Configuration and Functions of Stack Pointer
At
reset
Name
Stack pointer
SP
Power-ON
Clock stop
CE
Flag symbol
3b2b1b0
b
S
0
0
0010
S
P
P
1
0
00
01
10
10
10
Address
01HR/W
Address 0 (ASR0)
Address 1 (ASR1)
Address 2 (ASR2)
Fixed to "0"
Read/
Write
Specifies address of address stack register (ASR)
24
µ
PD17072,17073
3.4 Operations of Address Stack
3.4.1 Subroutine call (“CALL addr” or “CALL @AR”) and return (“RET” or “RETSK”) instructions
When a subroutine call instruction is executed, the value of the stack pointer is decremented by one and the return
address is stored to the address stack register specified by the stack pointer.
When a return instruction is executed, the contents of the address stack specified by the stack pointer (return
address) is restored to the program counter, and the value of the stack pointer is incremented by one.
When the table reference instruction is executed, the value of the stack pointer is decremented by one and the
return address is stored to the address stack register specified by the stack pointer.
Next, the contents of the program memory addressed by the address register are read to the data buffer, and the
contents of the address stack register specified by the stack pointer (return address) are restored to the program
counter. The value of the stack pointer is then incremented by one.
3.4.3 On acceptance of interrupt and execution of return instruction (“RETI” instruction)
When an interrupt is accepted, the value of the stack pointer is decremented by one, and the return address is
stored to the address stack register specified by the stack address.
When the return instruction is executed, the contents of the address stack register specified by the stack pointer
(return address) are restored to the program counter and the value of the stack pointer is incremented by one.
3.4.4 Address stack manipulation instructions (“PUSH AR” and “POP AR”)
When the “PUSH” instruction is executed, the value of the stack pointer is decremented by one, and the contents
of the address register are transferred to the address stack register specified by the stack pointer.
When the “POP” instruction is executed, the contents of the address stack register specified by the stack pointer
are transferred to the address register, and the value of the stack pointer is incremented by one.
3.5 Notes on Using Address Stack
The nesting level of the address stack is two, and the value of the address stack register ASR2 is “undefined” when
the value of the stack pointer is 2H.
Consequently, if a subroutine is called or an interrupt is used exceeding 2 levels without manipulating the stack,
program execution returns to an “undefined” address.
25
µ
PD17072,17073
4. DATA MEMORY (RAM)
4.1 General
Figure 4-1 outlines the data memory.
As shown in this figure, the data memory consists of a general-purpose data memory, system register, data buffer,
general register, LCD segment register, port register, and peripheral control register.
The data memory stores data, transfers data with peripheral hardware, sets conditions for the peripheral hardware,
display data, transfers data with ports, and controls the CPU.
Figure 4-1. Outline of Data Memory
Peripheral hardware
Data transfer
Column address
0123456789ABCDEF
0
1
2
3
4
Row address
5
6
Port registerBANK1
7
Port register
Data transfer
Port
Data buffer
General register
Data memory
BANK0
LCD segment register
Peripheral control register
System register
Data transfer
26
LCD
Condition
setting
Peripheral hardware
µ
PD17072,17073
4.2 Configuration and Function of Data Memory
Figure 4-2 shows the configuration of the data memory.
As shown in this figure, the data memory is divided into three banks, and each bank consists of 128 nibbles with
7H row addresses and 0FH column addresses.
In terms of function, the data memory can be divided into six blocks each of which is described in the following
paragraphs 4.2.1 through 4.2.8.
The contents of the data memory can be operated, compared, judged, and transferred in 4-bit units by data memory
manipulation instructions.
Table 4-1 lists the data memory manipulation instructions.
4.2.1 System registers (SYSREG)
The system registers are allocated to addresses 74H through 7FH.
These registers are allocated independently of the bank and directly control the CPU. The same system registers
exist at addresses 74H through 7FH of each bank.
µ
With the
and PSWORD (program status word: addresses 7EH and 7FH) can be manipulated.
For details, refer to 5. SYSTEM REGISTER (SYSREG).
PD17073, only AR (address register: addresses 75H through 77H), BANK (bank register: address 79H),
4.2.2 Data buffer (DBF)
The data buffer is allocated to addresses 0CH through 0FH of BANK0.
The data buffer reads the constant data in the program memory (table reference), and transfers data with peripheral
hardware.
For details, refer to 9. DATA BUFFER (DBF).
4.2.3 General registers
µ
With the
and cannot be moved.
Operations and data transfer between the general registers and data memory can be executed with a single
instruction.
The general registers can be controlled by data memory manipulation instructions, like the other data memory
areas.
For details, refer to 6. GENERAL REGISTER (GR).
4.2.4 LCD segment registers
The LCD segment registers are allocated to addresses 41H through 4FH of BANK1 of the data memory, and are
used to set the display data of the LCD controller/driver.
For details, refer to 18. LCD CONTROLLER/DRIVER.
4.2.5 Port registers
The port registers are allocated to addresses 70H through 73H of BANK0 and addresses 70H through 73H of
BANK1, and are used to set the output data of each general-purpose port and read the data of the input ports.
For details, refer to 10. GENERAL-PURPOSE PORT.
PD17073, the general registers are fixed at row address 0 of BANK0, i.e., addresses 00H through 0FH,
4.2.6 Peripheral control registers
The peripheral control registers are allocated to addresses 50H through 6FH of BANK1 and are used to set the
conditions of the peripheral hardware (such as PLL, serial interface, A/D converter, IF counter, and timer).
For details, refer to 8. PERIPHERAL CONTROL REGISTER.
27
µ
PD17072,17073
4.2.7 General-purpose data memory
The general-purpose data memory is allocated to the area of the data memory excluding the system register, LCD
segment register, port register, and peripheral control register.
µ
With the
be used as the general-purpose data memory.
4.2.8 Data memory areas not provided
For these data memory areas, refer to 4.4.2 Notes on data memory areas not provided, 8.2 Configuration and
Function of Peripheral Control Registers, and Table 10-1 Relation between Each Port (Pin) and Port Register.
PD17073, a total of 176 nibbles (176 × 4 bits), 112 nibbles of BANK0 and 64 nibbles of BANK1, can
28
Figure 4-2. Configuration of Data Memory
Column address
0123456789ABCDEF
0
1
2
3
4
Row address
5
6
7
0
1
2
3
4
5
Row addressRow address
6
7
Data memory
BANK0
BANK1
System register
Column address
0123456789ABCDEF
General register
BANK0
Port register
System register (SYSREG)
Data buffer
µ
PD17072,17073
Example
Address 2BH
of BANK0
b
3b2b1b0
0123456789ABCDEF
0
1
2
3
4
5
6
Port register
7
BANK1
LCD segment register
Peripheral control register
System register (SYSREG)
Same system
register exists.
Caution Address 40H of BANK1, bit 3 of address 50H, and address 73H are test mode areas. Do not write
“1” to these areas.
29
Table 4-1. Data Memory Manipulation Instructions
FunctionInstruction
µ
PD17072,17073
Add
OperationSubtract
LogicalOR
Compare
TransferLD
Judge
ADD
ADDC
SUB
SUBC
AND
XOR
SKE
SKGE
SKLT
SKNE
MOV
ST
SKT
SKF
4.3 Addressing Data Memory
Figure 4-3 shows how to address the data memory.
An address of the data memory is specified by using a bank, row address, and column address.
The row address and column address are directly specified by a data memory manipulation instruction, but the
bank is specified by the contents of the bank register.
For details of the bank register, refer to 5. SYSTEM REGISTER (SYSREG).
Figure 4-3. Addressing Data Memory
Data memory addressM
BankRow address Column address
b
b3b2b1b
Bank registerInstruction operand
0
b2b
0
1
b3b2b1b
0
30
Loading...
+ 196 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.