The µPD78F9177 and µPD78F9177Y are µPD789177, 789177Y Subseries (small, general-purpose) in the 78K/0S
Series.
The µPD78F9177 replaces the internal ROM of the µPD789176 and µPD789177 with flash memory, while the
PD78F9177Y replaces the ROM of the µPD789176Y and µPD789177Y with flash memory.
µ
Because flash memory allows the program to be written and erased electrically with the device mounted on the
board, this product is ideal for the evolution stages of system development, small-scale production and rapid
development of new products.
Detailed function descriptions are provided in the following user’s manuals. Be sure to read them before
designing.
For remote controller. Internal LCD controller/driver
For PC keyboard. Internal USB function
For key pad. Internal POC
RC oscillation model of PD789860
For keyless entry. Internal POC and key return circuit
µ
µ
Data Sheet U14022EJ1V0DS00
3
The major differences between subseries are shown below.
2. Connect the IC0 (Internally Connected) pin directly to V
3. Leave the IC2 pin open.
4. Connect the AV
5. Connect the AV
P31/INTP1/TO81
P32/INTP2/TO90
P30/INTP0/Tl81/CPT90
PP
pin directly to the V
DD
pin to V
SS
pin to V
P33/INTP3/TO82/BZO90
DD0
.
SS0
.
P23/SCL0
P24/SDA0
P22/Sl20/RxD20
P21/SO20/TxD20
P20/SCK20/ASCK20
SS0
or V
SS1
pin in normal operation mode.
SS0
SS1
or V
.
8
Data Sheet U14022EJ1V0DS00
µµµµ
PD78F9177, 78F9177Y
ANI0 to ANI7:Analog InputRESET:Reset
ASCK20:Asynchronous Serial InputRxD20:Receive Data
DD
AV
:Analog Power SupplySCK20:Serial Clock (for SIO20)
REF
AV
:Analog Reference VoltageSCL0
SS
AV
:Analog GroundSDA0
Note2
:Serial Clock (for SMB0)
Note2
:Serial Data
BZO90:Buzzer OutputSI20:Serial Input
CPT90:Capture Trigger InputSO20:Serial Output
IC0
Note1
,IC2
Note2
:Internally ConnectedSS20:Chip Select Input
INTP0 to INTP3: Interrupt from PeripheralsTI80, TI81:Timer Input
P00 to P05:Port 0TO80 to TO82, TO90: Timer Output
P10, P11:Port 1TxD20:Transmit Data
DD0
P20 to P26:Port 2V
P30 to P33:Port 3V
P50 to P53:Port 5V
DD1
, V
:Power Supply
PP
:Programming Power Supply
SS0
SS1
, V
:Ground
P60 to P67:Port 6X1, X2:Crystal (Main System Clock)
XT1, XT2:Crystal (Subsystem Clock)
Notes 1.
2.
The IC0 pin is available in 48-pin plastic TQFP (fine pitch) only.
The IC2, SCL0, and SDA0 pins are available in
The IC0 pin is available in 48-pin plastic TQFP (fine pitch) only.
2.
The IC2 pin is available in
3.
PD78F9177Y product only.
µ
PD78F9177Y product only.
µ
V
DD0
V
SS0
V
PP
IC0
IC2
Note2
Note3
V
SS1
V
DD1
10
Data Sheet U14022EJ1V0DS00
µµµµ
PD78F9177, 78F9177Y
3. PIN FUNCTIONS
3.1Port Pins
Pin NameI/OFunctionAfter ResetAlternate Function
P00 to P05I/OPort 0
6-bit input/output port
Input/output mode can be specified in 1-bit units
When used as an input port, an on-chip pull -up resistor can be
specified by soft ware.
P10, P11I/OPort 1
2-bit input/output port
Input/output mode can be specified in 1-bit units
When used as an input port, an on-chip pull -up resistor can be
For P20 to P22, P25, and P26, an on-c hi p pul l -up resistor can be
specified by soft ware.
Only P23 and P24 can be used as N-ch open-drai n
input/output port pins.
I/OPort 3
4-bit input/output port
Input/output mode can be specified in 1-bit units
On-chip pull-up resistor can be s pecified by software.
Input
Input
Input
Input
−
−
Note
SCL0
Note
SDA0
TO80
INTP3/TO82/BZO90
P50 to P53I/OPort 5
4-bit N-ch open-drain input/output port
Input/output mode can be specified in 1-bit units
P60 to P67InputPort 6
8-bit input-only port
PD78F9177Y only
µ
Note
Input
InputANI0 to ANI7
−
Data Sheet U14022EJ1V0DS00
11
µµµµ
PD78F9177, 78F9177Y
3.2Non-Port Pins
Pin NameI/OFunctionAfter ResetAlternate Function
INTP0P30/TI81/CPT90
INTP1P31/TO81
InputExternal interrupt input for which t he valid edge (rising edge,
falling edge, or both rising and falling edges) can be specified
INTP2P32/TO90
INTP3
SI20InputSerial data input to serial interfaceInputP22/RxD20
SO20OutputSerial data output from serial interfaceInputP21/TxD20
SCK20I/OSerial clock i nput /output for serial interfaceInputP20/ASCK20
SS20InputChip select input to serial int erfaceInputP25/TI80
ASCK20InputSerial clock input for asynchronous serial i nterfaceInputP20/SCK20
RxD20InputSerial data input for asynchronous serial interfaceInputP22/SI20
TxD20OutputS eri al data output for asynchronous s eri al i nt erfaceInputP21/SO20
SCL0
SDA0
Note1
Note1
I/OSMB0 clock input/outputInputP23
I/OSMB0 data input/outputInputP24
TI80InputExternal count clock input to 8-bit ti mer/event counter (TM80)InputP25/SS20
TI81InputExternal count clock input to 8-bit ti mer/event counter (TM81)InputP30/INTP0/CPT90
TO80Output8-bit timer/event count er (TM 80) outputInputP26
TO81Output8-bit timer/event count er (TM 81) outputInputP31/INTP1
TO82Output8-bit timer (TM82) outputInputP33/INTP3/BZO90
TO90Output16-bit timer (TM90) outputInputP32/INTP2
BZO90Output16-bit tim er (TM 90) Buzzer outputInputP33/INTP3/TO82
CPT90InputCapture edge inputInputP30/INTP0/TI81
ANI0 to
InputA/D c onverter analog inputInputP60 to P67
ANI7
REF
AV
SS
AV
DD
AV
X1Input
X2
XT1Input
XT2
DD0
V
DD1
V
SS0
V
SS1
V
A/D converter reference v ol t age
−
A/D converter ground potential
−
A/D converter analog power supply
−
Connecting crystal res onator for main system clock
oscillation
−
Connecting crystal res onator for subsystem clock oscillation
−
Positive power supply
−
Positive power supply (other than ports)
−
Ground potential
−
Ground potential (other than ports)
−
RESETInputSystem reset inputInput
V
IC0
IC2
PP
Note2
Note1
Sets flash memory programming mode. Applies high vol t age
−
when a program is written or verifi ed. Connect directly to V
SS1
or V
in normal operation mode.
Internally connected. Connect this pin directly to the V
−
SS1
V
pin.
Internally connected. Leave this pin open.
−
SS0
SS0
or
Input
P33/TO82/BZO90
−−
−−
−−
−−
−−
−−
−−
−−
−−
−−
−−
−
−−
−−
−−
Notes 1.
12
PD78F9177Y only.
µ
2.
48-pin plastic TQFP (fine pitch) only.
Data Sheet U14022EJ1V0DS00
µµµµ
PD78F9177, 78F9177Y
3.3Pin I/O Circuits and Recommended Connection of Unused Pins
The input/output circuit type of each pin and recommended connection of unused pins is shown in Table 3-1.
For the input/output circuit configuration of each type, refer to Figure 3-1.
Table 3-1. Type of I/O Circuit for Each Pin and Connection of Unused Pins
Pin NameI/O Circuit TypeI/ORecommended Connection of Unused Pi ns
Output: Leave open.
P60/ANI0 to P67/ANI79-CInputConnect directly to V
XT1InputConnect to V
XT2
−
Leave open.
−
SS0
or V
RESET2Input
PP
V
IC0
IC2
Note2
Note1
−−
Connect directly to V
Leave open.
SS1
DD0
SS0
, V
.
or V
DD1
or V
−
SS1
SS0
.
SS0
via a
SS0
via a
via a
, V
, V
SS1
SS1
Notes 1.
The IC2, SCL0, and SDA0 pins are available in
2.
48-pin plastic TQFP (fine pitch) only.
Data Sheet U14022EJ1V0DS00
PD78F9177Y product only.
µ
13
Figure 3-1. Pin Input/Output Circuits
µµµµ
PD78F9177, 78F9177Y
Type 2
IN
Schmitt-triggered input with hysteresis characteristics
Type 5-H
Pull-up
enable
Data
V
DD0
P-ch
V
DD0
P-ch
IN/OUT
Output
disable
N-ch
V
SS0
Input
enable
Type 9-C
IN
P-ch
N-ch
AV
SS
Comparator
V
REF
+
−
(Threshold voltage)
Type 13-T
Output data
Output disable
V
N-ch
SS0
Input enable
Input buffer with intermediate withstand voltage
Input
enable
IN/OUT
Type 8-C
Pull-up
enable
Data
Output
disable
DD0
V
Type 13-X
P-ch
IN/OUT
V
DD0
P-ch
Output data
Output disable
N-ch
V
SS0
IN/OUT
N-ch
V
SS0
Input buffer with 5-V
withstand voltage
Comparator
14
Data Sheet U14022EJ1V0DS00
µµµµ
PD78F9177, 78F9177Y
4. CPU ARCHITECTURE
Products in the µPD78F9177 and µPD78F9177Y can access up to 64 Kbytes of memory space.
Figure 4-1 shows the memory map.
Figure 4-1. Memory Map
FFFFH
Special function registers
256 × 8 bits
FF00H
FEFFH
Internal high-speed RAM
512 × 8 bits
FD00H
Data memory space
FCFFH
6000H
5FFFH
Reserved
5FFFH
Program memory
space
0000H
Internal flash memory
24576 x 8 bits
0080H
007FH
0040H
003FH
0024H
0023H
0000H
Program area
CALLT table area
Program area
Vector table area
Data Sheet U14022EJ1V0DS00
15
µµµµ
PD78F9177, 78F9177Y
5. FLASH MEMORY PROGRAMMING
The on-chip program memory in the µPD78F9177 and µPD78F9177Y is flash memory.
The flash memory can be written with the µPD78F9177 and µPD78F9177Y mounted on the target system (onboard). Connect the dedicated flash programmer (Flashpro III (part number: FL-PR3, PG-FP3)) to the host machine
and target system to write the flash memory.
Remark
FL-PR3 is made by Naito Densei Machida Mfg. Co., Ltd.
5.1Selecting Communication Mode
The flash memory is written by using Flashpro III and by means of serial communication. Select a communication
mode from those listed in Table 5-1. To select a communication mode, the format shown in Figure 5-1 is used. Each
communication mode is selected by the number of V
PP
pulses shown in Table 5-1.
Table 5-1. Communication Mode
Communication ModeP i ns UsedNumber of V
3-wire serial I/OSCK20/ASCK20/P20
SO20/TxD20/P21
SI20/RxD20/P22
Note1
SMB
UARTTxD20/SO20/P21
Pseudo 3-wire mode
Note2
SCL0/P23
SDA0/P24
RxD20/SI20/P22
P00 (Serial clock input)
P01 (Serial data output)
P02 (Serial data input)
0
4
8
12
PP
Pulses
Notes 1.
PD78F9177Y only
µ
Serial transfer is performed by controlling a port by software.
2.
Caution Be sure to select a communication mode based on the V
Figure 5-1. Communication Mode Selection Format
10 V
V
DD
V
PP
V
SS
V
RESET
16
DD
V
SS
Data Sheet U14022EJ1V0DS00
PP
pulse number shown in Table 5-1.
12n
µµµµ
PD78F9177, 78F9177Y
5.2Function of Flash Memory Programming
By transmitting/receiving commands and data in the selected communication mode, operations such as writing to
the flash memory are performed. Table 5-2 shows the major functions of flash memory programming.
Table 5-2. Functions of Flash Memory Programming
FunctionDescription
Batch eraseErases all contents of memory
Batch blank checkChecks erased state of entire memory
Data writeWrite to flash memory based on write start address and number of data written
(number of bytes)
Batch verifyCompares all contents of memory with input data
5.3Flashpro III Connection Example
How the Flashpro III is connected to the
PD78F9177 and µPD78F9177Y differs depending on the communication
µ
mode (3-wired serial I/O, SMB, UART, or pseudo 3-wire mode). Figures 5-2 to 5-5 show the connection in the
respective mode.
Figure 5-2. Flashpro III Connection in 3-wired Serial I/O Mode
µ
PD78F9177, 78F9177Y
V
PP
V
DD0
, V
DD1
, AV
RESET
SCK20
SI20
SO20
V
SS0
, V
SS1
, A
Note
Flashpro III
n = 1, 2
Note
VPPn
V
DD
RESET
CLKX1
SCK
SO
SI
GND
DD
VSS
Data Sheet U14022EJ1V0DS00
17
Loading...
+ 39 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.