1. Hitachi neither warrants nor grants licenses of any rights of Hitachi’s or any third party’s
patent, copyright, trademark, or other intellectual property rights for information contained in
this document. Hitachi bears no responsibility for problems that may arise with third party’s
rights, including intellectual property rights, in connection with use of the information
contained in this document.
2. Products and product specifications may be subject to change without notice. Confirm that you
have received the latest product standards or specifications before final design, purchase or
use.
3. Hitachi makes every attempt to ensure that its products are of high quality and reliability.
However, contact Hitachi’s sales office before using the product in an application that
demands especially high quality and reliability or where its failure or malfunction may directly
threaten human life or cause risk of bodily injury, such as aerospace, aeronautics, nuclear
power, combustion control, transportation, traffic, safety equipment or medical equipment for
life support.
4. Design your application so that the product is used within the ranges guaranteed by Hitachi
particularly for maximum rating, operating supply voltage range, heat radiation characteristics,
installation conditions and other characteristics. Hitachi bears no respon sibility for failure or
damage when used beyond the guaranteed ranges. Even within the guaranteed ranges,
consider normally foreseeable failure rates or failure modes in semiconductor devices and
employ systemic measures such as fail-safes, so that the equipment incorporating Hitachi
product does not cause bodily injury, fire or other consequential damage due to operation of
the Hitachi product.
5. This product is not designed to be radiation resistant.
6. No one is permitted to reproduce or duplicate, in any form, the whole or part of this document
without written approval from Hitachi.
7. Contact Hitachi’s sales office for any questions regarding this document or Hitachi
semiconductor products.
Default value of bits 2 - 0
<Former Edition> 111b
<This Edition> 111
Default value of bits 2 - 0
<Former Edition> 11b
<This Edition> 11
Ns
<This Edition> Unit : µs
ns
<Former Edition> Bit 9 : AD8
Bit 8 : AD9
<This Edition>Bit 9 : AD9
Bit 8 : AD8
New tables added
New figures added
Page 6
HD64465BP Specifications Changed
1. Change in Specifications
Item changedGuaranteed value before change Guaranteed value after change
PLL stabilization time5msNot guaranteed
2. Major Influences Due to Above Change in Specifications
PreconditionsProblems in usage
PLL used in bypass modeNo problem (no standby time added)
Reset signal input after turning power onNo problem (no standby time added)
PLL standby not used although oscillation stop used No problem (no standby time added)
Certain interval allowed between PLL standby and
wakeup
3. Countermeasures
Use the system in a state without any problem by referring to "2." above.
•
Create your program in a way to prohibit access other than to the HD64465BP system
•
configuration register (offset address: H'00000000 to H'00000ff0) for a certain period of time
after returning from PLL standby.
4. Debugged Version
The cause of this problem has already been clarified, which can be solved by correcting the
wiring layer. The new mask product (HD64465EBP) is available as the debugged version.
Several seconds may be required for access
by HD64465BP from CPU.
Supports Hitachi SH-4/SH7709/SH3-DSP family of CPUs with bus speeds from 15 MHz up to
•
66 MHz.
Supports STANDBY mode when CKIO is stopped.
•
Memory mapped on area 4 of SH4/SH7709/SH3DSP for internal registers
•
3.3 V-CMOS interface
•
32 - bit data interface
•
1.2PCMCIA Controller
PCMCIA PC card standard v2.1 compliant
•
Supports dual PCMCIA memory or IO cards at SH4/SH7709/SH3-DSP area 5 and area 6
•
8- or 16-bit PCMCIA interface support
•
Mixed voltage (3.3V or 5V) operation is fully supported for PCMCIA address, data and control
•
signals.
Supports TI TPS2206 serial interface
•
Supports STANDBY mode
•
1.3AFE Interface
Supports SGS-THOMSON STLC7546 and STLC7550 interface
•
Read buffer and write buffer are provided for performance enhancement
•
Supports STANDBY mode
•
1.4 GPIO Function(Port Interrupt)
GPIO pins can be programmed as input, output ports, or as interrupt inputs.
•
Internal pull-up resistor ON/OFF control
•
Interrupt events can be independently generated or masked on each I/O pin.
•
Interrupt can be independently programmed to rising edge or falling edge trigger
•
Power down control by software (input gated and output floating)
•
Maximum 40 bits for I/O port functions
•
Rev. 3.0, 03/01, page 1 of 390
Page 21
1.5Interrupt Controller
Provides an interrupt to SH-4/SH7709/SH3-DSP, which is generated by an internal module
•
interrupt request
Module interrupts can be masked on/off by setting the registers.
•
1.6Power Management
Supports STANDBY mode to stop clock for each module
•
All clock inputs can be stopped
•
All built-in PLLs can be set to STANDBY mode
•
The CPU input signals can be gated
•
1.7Timer
2-channel 16-bit auto-reloaded timer with pre-scale (1, 1/4, 1/8, 1/16) for dividing CKIO
•
Supports generating DMA or Interrupt request whenever timer’s count reaches zero
•
Supports generating ADC external trigger whenever timer’s count reaches zero
•
Provides two-channel Pulse Width Modulation (PWM) for VR control of LCD.
•
Supports STANDBY mode
•
1.8Keyboard Controller Interface
Supports ISA-bus-like interface to pair with the external keyboard controller
•
Supports 2 channels of PS/2 interface to connect PS/2 device like keyboard and mouse.
•
Supports STANDBY mode
•
1.9UART
Standard 16550 compatible full spec UART
•
Supports one channel of serial port
•
Supports STANDBY mode
•
Rev. 3.0, 03/01, page 2 of 390
Page 22
1.10Printer interface
Supports three access modes, SPP, EPP and ECP(ECP mode only supports PIO mode)
•
5V interface to printer
•
Supports STANDBY mode
•
1.11Audio CODEC Interface
Directly interfaced to CS4271/CS4218/AC97 Codec for controlling voice data to the speaker,
•
or from the mic.
Dual TX/RX FIFO ( 8 × 32 -bit) are supported for CS4271/CS4218 interface
•
12-channel TX FIFO (4 × 20-bit) and 9-channel RX FIFO ( 4 × 20 -bit) are supported for AC97
•
Codec interface
Voice captures and playbacks can be supported by PIO or DMA mode access.
•
The Codec Interface is able to provide SM3 Slave Mode for communication with CS4218 and
•
CS4271, and SM3 Master Mode for CS4218.
Supports AC97 version 1.03 and version 2.0 serial-link interface
•
Supports STANDBY mode
•
1.12IrDA
Supports HP SIR or ASKIR infrared interface
•
Supports FIR and MIR
•
Provides DMA channel mode for FIR
•
Supports STANDBY mode
•
1.13Clock Generator and PLL
Provides a × 4 PLL from 12 MHz to 48 MHz for USB, IrDA, and Parallel Port
•
Provides a × 3 PLL from 12.288 MHz to 36.864 MHz for AFE, CS4218/CS4271/AC97 codec
•
interface
12.288 MHz clock input for AFE interface, CODEC interface, USB, IrDA and Parallel Port
•
Each clock generator and PLL supports STANDBY mode
•
Rev. 3.0, 03/01, page 3 of 390
Page 23
1.14USB Host Controller
Supports direct interfaces of 2 USB ports
•
Supports device bandwidth of 12Mbps or 1.5Mbps
•
Supports power management mode to protect USB Bus power; and over-current detector to
•
protect USB Bus from abnormal over-current load
Fully compatible with the USB specification version 1.0 and register compatible with Open
•
Host Controller Interface (OHCI) specification version v1.0 issued by Microsoft, Compaq and
NS
4 K-byte SRAM provided for USB Open Host Controller driver to store frame lists, transaction
•
descriptors for USB host controller’s schedule control and this local memory is also used as
data buffer for host controller to send/receive data to/from USB devices
1.1510-bit ADC
10-bit resolution
•
Provides four input channels
•
High-speed conversion, conversion time is maximum 10 µs per channel
•
Two conversion modes
•
Single mode: one channel A/D conversions are supported.
Scan mode: continuous conversions are operated in cycles from one to four channels.
A/D conversion can be triggered by timer or software
•
Supports STANDBY mode
•
1.16Package
387-pin BGA (35 mm × 35 mm: HD64465BP)
•
387-pin BGA (27 mm × 27 mm: HD64465BQ)
•
Rev. 3.0, 03/01, page 4 of 390
Page 24
Section 2 General Description
The HD64465 is directly connected to SH-4/SH7709/SH3-DSP, and consists of PCMCIA
controller, analog front end (AFE) interface, I/O port controller, timer, UART, parallel port
interface controller, keyboard interface, CS4218/CS4271/AC97 Codec interface, IrDA controller,
USB Host controller, AC97 Codec, 10-bit ADC and power management unit. This chip pairs with
SH-4/SH7709/SH3-DSP processors, and features all the key peripheral functions required by the
sub sub-notebooks designed for Windows
Windows
®
CE Mini NoteBook (SubsubNoteBook) PC system.
®
CE v2.0 and above, providing a total solution for
Rev. 3.0, 03/01, page 5 of 390
Page 25
Rev. 3.0, 03/01, page 6 of 390
Page 26
Section 3 System Block Diagram
3.1Application Circuit
DRAM
SH-4/SH7709
ROM
KEYBOARD
8
Keyboard
Controller
32
TOUCH
PAD
UART
PRINTER
PCMCIA 0
3232
32
HD64465
STLC7546
DAA
USB
Devices
SPEAKER
CS4218/
CS4271/
AC97
Touch
Panel
IrDA
PS/2
Keyboard
MIC
Rev. 3.0, 03/01, page 7 of 390
Page 27
3.2System Block Diagram
HD64465
Timer & PMU
AFE I/F
STLC7546/7550
AFE
To Public Line
SH-4/SH7709/
SH3-DSP
DRAM
ROM
32
32
32
To Host PC
32
To Host PC
To USB Devices
INTCKBC I/F
UART
Clock Gen &
PLL
IrDACODEC I/F
USB Host
controller
GPIO(40)
PCMCIA +
Printer I/F
PS/2
Buffers
10-bit ADC
KBC
To Printer
CS4271/
CS4218/AC97
PC Card
PC Card
Touch Panel
To KeyBoard
MIC
SPEAKER
Rev. 3.0, 03/01, page 8 of 390
Page 28
3.3Physical Address Space
Area 0: H'00000000
Area 1: H'04000000
Area 2: H'08000000
Area 3: H'0C000000
Area 4: H'10000000
Area 5: H'14000000
Area 6: H'18000000
Ordinary memory /
Burst ROM
Internal I/O
Ordinary memory /
SDRAM, DRAM
Ordinary memory /
SDRAM, DRAM, PSRAM
Intelligent Peripheral Controller
Ordinary memory /
Burst ROM / PCMCIA
Ordinary memory /
Burst ROM / PCMCIA
Internal Registers of Intelligent Peripheral
Controller
The PCMCIA interface is shared by the
memory card and I/O card.
The PCMCIA interface is shared by the
memory card and I/O card.
Table 4.4Pin Descriptions of CPU Interface (cont’d)
Pin No.
(HD64465BP)
Pin No.
(HD64465BQ) SymbolI/ODescription
AD9T9CS4#IChip select 4 of CPU
AC10Y7WE0#ID7-D0 write strobe signal
AD10N10WE1#/WE#ID15-D8 write strobe signal, or PCMCIA write
strobe signal
AE10
W8WE2#/ICIORD#
ID23-D16 write strobe signal, or PCMCIA I/O
READ
AF10
Y8WE3#/ICIOWR#
ID31-D24 write strobe signal, or PCMCIA I/O
WRITE
AE9R9RDWR#IData bus direction indicator signal
AF9W7RD#IStrobe signal indicating the READ cycle
AF4V5RDY#/WAIT# ORDY# signal for SH4 / WAIT# signal for
SH7709
H4F3BS#IBus start of CPU
R1L6RESETPI#IRESET request
AF5N9DREQ0#ODMA request is generated by FIR
AD5R7DREQ1#ODMA request is generated by Timer or
Codec interface module
AE5W4DRAK0IDMA request acknowledge for DREQ0#
AC5T7DRAK1IDMA request acknowledge for DREQ1#
AE4Y3IRQ0#OInterrupt request to CPU.
R5L7SH_MODEISH7709/SH4 CPU interface selection.
0 = SH7709
1 = SH4
AF11W9CE1B#/CS6# IChip enable 1 for PCMCIA card 0
AE11P10CE2B#IChip enable 2 for PCMCIA card 0
AD11V9CE1A#/CS5# IChip enable 1 for PCMCIA card 1
AC11U9CE2A#IChip enable 2 for PCMCIA card 1
AC12Y9IOIS16#OWrite protect I/O is 16 bits for PCMCIA card
OPCMCIA card 0 I/O Write enable
AC20P13PCC0RESET OPCMCIA card 0 reset
AC14U11PCC0WAIT#IPCMCIA card 0 memory or I/O wait state
Rev. 3.0, 03/01, page 27 of 390
Page 47
Table 4.5Pin Descriptions of PCMCIA 0 Interface (cont’d)
Pin No.
(HD64465BP)
AB14R11PCC0WP#/
AD14Y11PCC0RDY/
AE14W11PCC0BVD1/
AF14V11PCC0BVD2/
AD13V10PCC0CD1#IProvides for PCMCIA card 0 insertion
AC13W10PCC0CD2#IProvides for PCMCIA card 0 insertion
AF13T11PCC0VS1#IPCMCIA card 0 Voltage sense
AE13U10PCC0VS2#IPCMCIA card 0 Voltage sense
AD22N13PCC0REG#OPCMCIA card 0 attribute memory select
AD12T10VCC0SEL1/
AE12R10VCC0SEL0/
AF12Y10VCC0VPP1/
AB13N11VCC0VPP0OPCMCIA card 0 VPP power control
Pin No.
(HD64465BQ) SymbolI/ODescription
IReflects the states of the Write Protect
IOIS16#
IREQ0#
STSCHG0#
SPKR0
CLOCK
DATA
LATCH
switch on PCCMCIA memory cards. For I/O
cards, PCC0WP# is used for the card,
which is 16-bit Port (IOIS16#) function.
IDriven low by memory PC cards to indicate
that the memory card circuits are busy. For
I/O card, PCC0RDY is used as an interrupt
request.
IThe signal is an indication of the battery
condition on the PCC0 memory card. Both
PCC0BVD1 and PCC0BVD2 are in high
level when the battery is in good condition.
When PCC0BVD1 is low, the PC card
battery is no longer serviceable and data
are lost. For I/O card, PCC0BVD1 is card
status change (STSCHG) function.
IThe signal is an indication of the battery
condition on the PCC0 memory card. Both
PCC0BVD1 and PCC0BVD2 are high level
when the battery is in good condition. When
PCC0BVD2 is low while PCC0BVD1 is in
high level, the PC card battery is in a
warning state. For I/O card, PCC0BVD2
acts as SPKR function.
J24E20PCC1RESET OPCMCIA card 1 reset
H25F18PCC1WAIT#IPCMCIA card 1 memory or IO wait state
H24H16PCC1WP#/
IOIS16#
H23H15PCC1RDY/
IREQ1#
IReflects the states of the Write Protect switch
on PCC1 memory cards. For I/O cards,
PCC1WP# is used for the card, which is 16bit Port ( IOIS16# ) function.
IDriven low by memory PC cards to indicate
that the memory card circuits are busy. For
I/O card, PCC1RDY is used as an interrupt
request.
Rev. 3.0, 03/01, page 29 of 390
Page 49
Table 4.6Pin Descriptions of PCMCIA 1 Interface (cont’d)
Pin No.
(HD64465BP)
G26D20PCC1BVD1/
G25E18PCC1BVD2/
F26C20PCC1CD1#IProvided for PCMCIA card 1 insertion
F25G15PCC1CD2#IProvided for PCMCIA card 1 insertion
G24G17PCC1VS1#IPCMCIA card 1 Voltage sense
G23D19PCC1VS2#IPCMCIA card 1 Voltage sense
K26G20PCC1REG#OPCMCIA card 1 attribute memory select
E25F17VCC1SEL1OPCMCIA card 1 VCC power control
E26C19VCC1SEL0OPCMCIA card 1 VCC power control
F23D18VCC1VPP1OPCMCIA card 1 VPP power control
F24G16VCC1VPP0OPCMCIA card 1 VPP power control
Pin No.
(HD64465BQ) SymbolI/ODescription
IThe signal indicates the battery condition on
STSCHG1#
SPKR1
the PCC1 memory card. Both PCC1BVD1
and PCC1BVD2 are in high level when the
battery is in good condition. When
PCC1BVD1 is low, the PC card battery is no
longer serviceable and data are lost. For I/O
card, PCC1BVD1 is used as card status
change ( STSCHG ) function.
IThe signal indicates the battery condition on
the PCC1 memory card. Both PCC1BVD1
and PCC1BVD2 are in high level when the
battery is in good condition. When
PCC1BVD2 is low while PCC1BVD1 is in
high level, the PC card battery is in a warning
state. For I/O card, PCC1BVD2 is used
SPKR function.
detection
detection
Rev. 3.0, 03/01, page 30 of 390
Page 50
Table 4.7Pin Descriptions of UART 0
Pin No.
(HD64465BP)
UART 0
E14E11TXD0OData output for UART0
A16C12RXD0IData input for UART0
D14B11RTS0#ORequest to Send Output for UART0
D15B12CTS0#IClear to Send Input for UART0
C14H10DTR0#ODa ta Terminal Ready Output for UART0
C15A12DSR0#IData Set Ready for UART0
B15H12DCD0#IReceive Line Signal Detect for UART0
A15G11RI0#IRing Indicator for UART0
Pin No.
(HD64465BQ) SymbolI/ODescription
Table 4.8Pin Description of IrDA
Pin No.
(HD64465BP)
IrDA
A12E10MODSEL/RX2#O/IMultifunction pin: For IrDA, Low or high
B12C9TXDOInfrared data stream output for IrDA.
C12G10RX#IFor IrDA, infrared data stream input, is
Pin No.
(HD64465BQ)
SymbolI/ODescription
frequency infrared select with IBM transceiver
module / High frequency infrared data stream
input with HP transceiver module. @
connected to infrared receive data stream
output if IBM transceiver module is used, or is
connected to low frequency infrared receive
data stream output if HP transceiver module
Rev. 3.0, 03/01, page 31 of 390
Page 51
Table 4.9Pin Descriptions of Printer Port Interface
Pin No.
(HD64465BP)
Printer Interface
D10A7STB#OPrinter Strobe. Active low, this signal is the
C10G9AFD#OPrinter Autofeed. Active low, this signal is the
B10B8ERR#IPrinter Error. Active low, indicates printer has
A10E9INIT#OPrinter Initialize. Active low, this signal is bit 2
B8E8SLIN#OPrinter Select. Select the printer when it is
A8B6ACK#IPrinter Acknowledge. This signal goes low to
D9A6BUSYIPrinter Busy. This signal goes high when the
C9C7PEIPrinter Paper End. This signal is set high by
B9B7SLCTIPrinter Select. This signal goes high when
B7, D7-8, C8,
D11, C11,
B11, D12
Pin No.
(HD64465BQ) SymbolI/ODescription
complement of bit 0 of the printer control
register. It is used to strobe the printer data
into the printer
complement of bit 1 of the printer control
register. This signal, when in low level, is
used to feed one line after each line is
printed when it is low.
encountered an “ERROR” condition. It can
be read at bit 3 of printer status register
of the printer control register, and is used to
initiate printer when it is low.
low, this signal is the complement of bit 3 of
the printer control register
indicate that the printer has already received
a character and is ready to accept another
line printer has a local operation in process
and cannot accept data
printer when it runs out of paper
the line printer has been selected
D7, C6, F8,
A5, F9, C8,
A8, B9
PPD7-PPD0IOParallel Port Data Bus. This bus provides a
byte-wide input or output to the system. The
eight lines are held in a high-impedance
state when the port is not selected.
Rev. 3.0, 03/01, page 32 of 390
Page 52
Table 4.10 Pin Descriptions of AFE Interface
Pin No.
(HD64465BP)
AFE Interface
L2H2DOUTOSerial Transmit Data Output Pin (TxD). This
K4K7DINISerial Receive Data Input Pin (RxD). This
J2J5SCLKIShift Clock Input Pin. This signal comes from
K1G1HC1OHardware Control Signal 1 for
J3F1FSIFrame Sync Signal Input Pin. This signal
K3G2AFERST#OThis signal outputs to reset AFE module.
K2J4AFEPDN#OThis signal outputs to power down AFE
L3K5MCLKOOMaster Clock to AFE module
L4H3OFFHOOK/
J4F2RINGIRinging Signal Input Pin
Pin No.
(HD64465BQ) SymbolI/ODescription
signal is connected to AFE module DI.
signal comes from AFE module DOUT.
AFE module SCLK.
STLC7546/STLC7550
comes form AFE module FS.
module.
OThis signal is used as the active control for
RLY
the OFFHOOK relay / RLY control and dial
pulse output
Rev. 3.0, 03/01, page 33 of 390
Page 53
Table 4.11 Pin Descriptions of CODEC Interface
Pin No.
(HD64465BP)
CODEC Interface
E4D3ACCLKOAudio Codec clock
F3C1ACRST#OAudio Codec reset. The pin can also be used
D1B2ACPD#/ACIRQ
E3C2SIBDINISerial Interface Input Data
E2G5SIBCLKIOSerial Interface Clock
E1G6SIBDOUTOSerial Interface Output Data
F4H5SIBSYNCIOSerial Interface Sync
Pin No.
(HD64465BQ) SymbolI/ODescription
to act as PLL3 test output pin at PLL test
mode
IOWhen the connected CODEC is CS4271, the
/PWE#
pin is input and is used to interrupt the
interface. But when the connected CODEC is
CS4218, the pin is output and is used to
power down CS4218.
Table 4.12 Pin Descriptions of USB Interface
Pin No.
(HD64465BP)
USB interface
E13A10USBPEN#OUSB Power Enable Control Signal
C13C10USBOVR#IUSB Over-Current Detect
B4C4USBD1PIOUSB Port 1 Data D+
C4D5USBD1MIOUSB Port 1 Data DD13D10USBD2PIOUSB Port 2 Data D+
E12A9USBD2MIOUSB Port 2 Data D-
IO Port A (multifunction with AFE)
N3K3PA7IOPort A bit 7 for GPIO
N4K2PA6IOPort A bit 6 for GPIO
N5K1PA5IOPort A bit 5 for GPIO
M1K4PA4IOPort A bit 4 for GPIO
M2J1PA3IOPort A bit 3 for GPIO
M3J2PA2IOPort A bit 2 for GPIO
M4J3PA1IOPort A bit 1 for GPIO
L1H1PA0IOPort A bit 0 for GPIO
Pin No.
(HD64465BQ) SymbolI/ODescription
Rev. 3.0, 03/01, page 35 of 390
Page 55
Table 4.15 Pin Description of IO Po rt B
Pin No.
(HD64465BP)
IO Port B (multifunction with TIMER or AFE)
D2F4PB7IOPort B bit 7 for GPIO
D3E4PB6IOPort B bit 6 for GPIO
D4F5PB5/
C1B1PB4/
C2C3PB3IOPort B bit 3 for GPIO
C3F6PB2IOPort B bit 2 for GPIO
B1D4PB1/TMO1#IO/O Multifunction Pin: Port B bit 1 for GPIO /
B2A1PB0/TMO0#IO/O Multifunction Pin: Port B bit 0 for GPIO /
Pin No.
(HD64465BQ) SymbolI/ODescription
IO/I Multifunction Pin: Port B bit 5 for GPIO/The
KBRESUME
KBWAKEUP#
signal is used to resume standby keyboard
controller
IO/O Multifunction Pin: Port B bit 4 for
GPIO/Keyboard controller wakes up the
STANDBY system via signal KBWAKEUP#.
Timer 1 output signal is used to trigger
external event
Timer 0 output signal is used to trigger
external event
Table 4.16 Pin Descriptions of IO Port C
Pin No.
(HD64465BP)
IO Port C
B17A14PC7IOPort C bit 7 for GPIO
D16B13PC6IOPort C bit 6 for GPIO
C16A13PC5IOPort C bit 5 for GPIO
B16F11PC4IOPort C bit 4 for GPIO
B14C11PC3IOPort C bit 3 for GPIO
A14A11PC2IOPort C bit 2 for GPIO
A13F10PC1IOPort C bit 1 for GPIO
B13B10PC0IOPort C bit 0 for GPIO
Pin No.
(HD64465BQ) SymbolI/ODescription
Rev. 3.0, 03/01, page 36 of 390
Page 56
Table 4.17 Pin Descriptions of IO Port D
Pin No.
(HD64465BP)
IO Port D
C19E12PD7IOPort D bit 7 for GPIO
B19C14PD6IOPort D bit 6 for GPIO
A19A15PD5IOPort D bit 5 for GPIO
D18D13PD4IOPort D bit 4 for GPIO
C18F12PD3IOPort D bit 3 for GPIO
B18D12PD2IOPort D bit 2 for GPIO
D17C13PD1IOPort D bit 1 for GPIO
C17D11PD0IOPort D bit 0 for GPIO
Pin No.
(HD64465BQ) SymbolI/ODescription
Table 4.18 Pin Descriptions of IO Port E
Pin No.
(HD64465BP)
IO Port E
C21C15PE7IOPort E bit 7 for GPIO
B21A17PE6IOPort E bit 6 for GPIO
A21D14PE5IOPort E bit 5 for GPIO
D20B16PE4IOPort E bit 4 for GPIO
C20G12PE3IOPort E bit 3 for GPIO
B20A16PE2IOPort E bit 2 for GPIO
A20E13PE1IOPort E bit 1 for GPIO
D19B15PE0IOPort E bit 0 for GPIO
Pin No.
(HD64465BQ)
SymbolI/ODescription
Table 4.19 Pin Descriptions of 10-bit ADC Interface
Pin No.
(HD64465BP)
10-bit ADC Interface
A6C5TSMXITouch screen minus X - plate input
C6A4TSMYITouch screen minus Y - plate input
B5D6TSPXITouch screen plus X - plate input
C5B4TSPYITouch screen plus Y - plate input
Pin No.
(HD64465BQ)
SymbolI/ODescription
Rev. 3.0, 03/01, page 37 of 390
Page 57
Table 4.20 Pin Descriptions of PS/2 Interface
Pin No.
(HD64465BP)
PS/2 Interface
C22C16KBCKIOPS/2 keyboard clock input/output
B22A18KBDATAIOPS/2 keyboard data input/output
A22G13MSCKIOPS/2 mouse clock input/output
D21F13MSDATAIOPS/2 mouse data input/output
Pin No.
(HD64465BQ) SymbolI/ODescription
Table 4.21 Pin Descriptions of System Reset Interface
Pin No.
(HD64465BP)
System Reset Interface
R1L6RESETPI#ISystem power-on reset input
C23H13RESETMI#ISystem manual reset input
B23E14RESETPO#ORESET# signal for SH-4/SH7709
A23B17RESETMO#OMRESET# signal for SH-4/RESETM signal
B3H8AVCC1I3.3 Volt power for analog PLL1
A1E5AVSS1IGround for analog PLL1
J1G3AVCC2I3.3 Volt power for analog PLL2
H1J6AVSS2IGround for analog PLL2
A18B14AVCC3I3.3 Volt power for analog circuit
A17H11AVSS3INC (No Connected Pin)
C7E7AVCC4I3.3 Volt for analog portion of 10-bit ADC
D6G8AVSS4IGround for analog portion of 10-bit ADC
B6H9AVCC5I3.3 Volt for analog portion of 10-bit ADC
A4A3AVCC6I3.3 Volt for analog USB Tranceiver
D5E6AVSS6IGround for analog USB Tranceiver
Note:*HD64465BP = VCC
Pin No.
(HD64465BQ) SymbolI/ODescription
J9-12, K9-12,
L9-12, M9-12
G7, G14, J7,
J14, M7, M14,
P7, P14
B5, D8, D9, F7 VCC5I5 .0 Volt power for printer port/PS/2 port
P15, V12, V17,
Y16
E19, K19, N20,
R19
HD64465BQ = VCC3
VSSIGround
VCC (VCC3)*I3.3 Volt power
VCCAI0 / 3.3 / 5V power for address/data buffer of
PCMCIA 0
VCCBI0 / 3.3 / 5V power for address/data buffer of
PCMCIA 1
Rev. 3.0, 03/01, page 39 of 390
Page 59
Rev. 3.0, 03/01, page 40 of 390
Page 60
Section 5 Internal CPU Interface
5.1Introduction
CPU INTERFACE Module
interface provides a bridge between Hitachi SH-3/SH-4 CPU and all peripheral modules in
HD64465. This section will explain the functionality and timing of all signals defined in CPU
interface module.
builds an internal peripheral bus interface on HD64465. This
Rev. 3.0, 03/01, page 41 of 390
Page 61
5.2CPU Interface Signal Description
5.2.1System Bus Interface Signals
In system bus interface, the configuration of
in SH-4/SH-3 needs to be programmed properly.
BSC
The followings list the bus configuration requirements.
1. Area: Area 4
2. Bus width: Longword (32 bits) size and little endian access.
3. Idle state: No idle cycles
4. Wait state: 3 wait states
Signal NameI/O TypeDescription
CKIOI
RESET#I
CS4#I
RDY/WAIT#O
ADDR[20:1]I
ADDR24I
ADDR25I
IDATA[31:0]I
ODATA[31:0]O
RDWR#I
RD#I
WE0#I
WE1#I
WE2#I
WE3#I
Notes: 1.* stands for peripheral module name.
2. # means that a signal is active low.
CKIO:
SH3/SH4 system clock IO. This clock is used as the mast er cl ock for
the internal logic of the CPU Interface
RESET#:
CS4#:
System Wait:
state in CPU cycle. The inserted wait cycles are depended on peripheral
*
Address Bus [20:1]:
Interface. The CPU Interface address decoder uses these signals t o decode
the module select(*MS#) signal of all peripheral modules in IPC.
Address bus 24:
Address bus 25:
Input Data Bus [31:0]:
SH3/SH4.(write data).
Output Data Bus [31:0]:
CPU.(read data).
Read/Write Command:
Read Command:
the ODATA[15:0] for the Host CPU to read. This signal is driven by the CPU.
Write byte 0 Command:
passed from the Host CPU to MIDATA[7:0]. This signal is driven by the CPU.
Write byte 1 Command:
passed from the Host CPU to MIDATA[15:8]. This signal is driven by the CPU.
Write byte 2 Command:
passed from the Host CPU to MIDATA[23:16]. This signal is driven by the
CPU.
Write byte 3 Command:
passed from the Host CPU to MIDATA[31:24]. This signal is driven by the
CPU.
System reset signal.
System Chip select 4 signal.
This signal is controlled by the CPU Interface to insert the wait
WAIT#.
These are the address input signals to the CPU
This signal is address bus number 24 driven by the CPU.
This signal is address bus number 25 driven by the CPU.
These are the bit[31:0] of data bus driven by
These are the bit[31:0] of data bus to be read by the
System read/write indicator driven by the CPU.
When active along with CS4#, a valid data will be put onto
When active along with CS4#, a valid data will be
When active along with CS4#, a valid data will be
When active along with CS4#, a valid data will be
When active along with CS4#, a valid data will be
Rev. 3.0, 03/01, page 42 of 390
Page 62
5.2.2Internal Bus Interface Signals
Signal NameI/O TypeDescription
*
RESET#O
*
STBYO
*
WAIT#I
*
MS#O
IMADDR[20:1]O
IMADDR24O
IMADDR25O
MIDATA[31:0]O
MODATA[31:0]I
IMRDWR#O
IMRD#O
IMWE0#O
IMWE1#O
IMWE2#O
IMWE3#O
Notes: 1.* stands for peripheral module name.
2. # means that a signal is active low.
Internal Module Reset:
LCDC reset signal is LCDC_RESET#)
Module Standby:
peripheral module. (For LCDC as an example, when LCDC_STBY is asserted,
LCDC module will go into the standby mode)
Module Wait:
state in CPU command cycle. (For LCDC as an example, when LCDC_WAIT#
is active low, the CPU Interface wil l i nsert a wai t si gnal to the CP U cycl e until
the LCDC_WAIT# is high)
Module Select:
module address map. (For LCDC as an example, the LCDC control register
address and LCDC Frame buffer address will activate LCDC_MS# )
Internal Module Address Bus [20:1]:
all the peripheral modules. The peripheral module address decoder can use
these signals to decode the internal registers.
Internal Module Address bus 24:
driven by CPU Interface. This signal is connected to all peripheral modules.
Internal Module Address bus 25:
driven by CPU Interface. This signal is connected to all peripheral modules.
Module Input Data Bus [31:0]:
driven to all the peripheral modules. (Write data from the CPU)
Module Output Data Bus [31:0]:
read by the CPU. (Read data from the peripheral module)
Internal Module Read/Write Command:
driven by CPU Interface.
Internal Module Read Command:
MODATA[31:0] will be mapped onto the ODATA[31:0] for the Host CPU to
read. This signal is driven by CPU Interface.
Internal Module Write byte 0 Command:
valid data IDATA[7:0] will be passed from the Host CPU to MIDATA[7:0]. This
signal is driven by CPU Interface.
Internal Module Write byte 1 Command:
valid data IDATA[15:8] will be passed from the Host CPU to MIDATA[15:8].
This signal is driven by CPU Interface.
Internal Module Write byte 2 Command:
valid data IDATA[23:16] will be passed from the Host CPU to MIDATA[23:16].
This signal is driven by CPU Interface.
Internal Module Write byte 3 Command:
valid data IDATA[31:24] will be passed from the Host CPU to MIDATA[31:24].
This signal is driven by CPU Interface.
This signal is used to control the standby mode for each
This signal is controlled by a peripheral module to insert a wait
This module select signal is decoded based on the IPC
This signal is module reset of *module. (For example,
These are the address input signals to
This signal is address bus number 24
This signal is address bus number 25
These are the bit[31:0] of data bus to be
These are the bit[31:0] of data bus to be
Internal Module read/write indicator
When active along with *MS#, a valid data
When active along with *MS#, a
When active along with *MS#, a
When active along with *MS#, a
When active along with *MS#, a
Rev. 3.0, 03/01, page 43 of 390
Page 63
5.3Function Description
CPU Interface Module
is a bridge between the CPU bus and all peripheral modules in HD64465.
This interface module handles the command, address and data transaction between CPU and
HD64465 modules. The diagram of Figure 5-1 illustrates how the interface signals are connected.
This CPU interface can operate under the 66MHz CKIO at maximum. The timing relationship of
peripheral signals will be discussed in details in Signal Timing Description.
Hitachi
SH3/SH4
CPU
ADDR
[18:1]
Module Decoder
IMADDR
[18:1]
ADDR
24/25
IMADDR
24/25
*MS#
DATA [31:0]
Controller
MIDATA
[31:0]
Data
MODATA
CPU Bus
WE0/1/2/3#RD#RDWR#CS4#
Main State Machine
CPU Interface
Register
*STBY *RESET#
[31:0]
*WAIT#
IMWE0/1#
IMWE2/3#
RDY/
WAIT#
IMRD#
CKIO
IMRD
WR#
#N
Peripheral Module
Figure 5.1 CPU Interface Module Interconnection Diagram
Rev. 3.0, 03/01, page 44 of 390
Internal Peripheral Bus
Peripheral Module
#2
#1
Peripheral Module
Page 64
5.4Signal Timing Description
5.4.1Low Speed Timing
HD64465 provides a programmable bit (SLS) in System Configuration Register (SCONFR) to
increase the system performance, depending on different bus clock (CKIO) rates. When SLS bit is
programmed with 1, the internal bus timing is switched to the basic cycle composed of two wait
states. When it is compared with High Speed Timing, a wait state will be found to save in
command cycle. Thus, the performance in low bus clock rate is increased.
Low-Speed Basic Internal Peripheral Bus Access Timing
is shown in the Figure 5-2. These
basic cycles are T1, TWs1, TWs2, and T2 phases. Note that two wait states (TWs1, TWs2) are in
command cycle. In this case, no external peripheral hardware wait is asserted. The *WAIT# signal
is kept high before T2 stage. This means that peripheral module need no external cycles to
accomplish the command. So, the command cycle enters the T2 phase after TWs2. At the end of
T2 phase, the question that either T1 or T_idle phase is followed depends on the host CPU bus idle
state configuration. If host CPU configures at least one idle state, the corresponding T_idle phase is
followed. If host CPU configures no idle state, the T1 phase is followed after T2.
CKIO
A20-A1
A24,A25
IMADDR
*MS#
IMRDWR#
IMRD#
(READ)
D31-D0
MODATA
IMWE0/1/2/3#
(WRITE)
D31-D0
MIDATA
*WAIT#
T1T2T_idle(T1)TWs1
t
AD
t
RWD
t
WDD
t
MSD
t
RDD
t
WED
TWs2
t
WDYS
t
RDS
t
WDYH
t
MSD
t
RDD
t
RDH
t
WED
Figure 5.2 Low-Speed Basic Internal Peripheral Bus Access Timing
Rev. 3.0, 03/01, page 45 of 390
Page 65
Low-Speed Internal Bus Access Timing with TWe phase
is shown in the Figure 5-3. The
diagram shows the cycles are T1, TWs1, TWs2, TWe and T2 phases. Note that there are two wait
states and one external peripheral hardware wait state in command cycle. In this case, the basic
command cycle is not enough for peripheral operation, it is responsible for the peripheral module
to insert its own wait signal before T2 stage. And the *WAIT# signal controlled by the peripheral
module must satisfy the setup/hold time defined in internal peripheral Bus AC timing
specifications. In Figure 5-3, the TWe stands for the external peripheral hardware wait state. The
command cycle can be inserted many TWe states, which depends on the signal *WAIT# of the
peripheral module. At the end of T2 phase, the question that either T1 or T_idle phase is followed
depends on the host CPU bus idle state configuration. If host CPU configures at least one idle state,
the corresponding T_idle phase is followed . If host CPU configures no idle state, the T1 phase is
followed after T2.
CKIO
A20-A1
A24,A25
IMADDR
*MS#
IMRDWR#
IMRD#
(READ)
D31-D0
MODATA
IMWE0/1/2/3#
(WRITE)
D31-D0
MIDATA
*WAIT#
T1T2TWeT_idle(T1)TWs1
t
AD
t
t
RWD
t
WDD
MSD
TWs2
t
RDD
t
WED
t
WDYStWDYHtWDYStWDYH
t
RDS
Figure 5.3 Low-Speed Internal Peripheral Bus Access Timing With TWe Phase
t
RDD
t
WED
t
RDH
t
MSD
Rev. 3.0, 03/01, page 46 of 390
Page 66
5.4.2High Speed Timing
With the programmable bit (SLS) contained in System Configuration Register (SCONFR), the
HD64465 is able to increase the system performance, depending on different bus clock (CKIO)
rates. When SLS bit is programmed with 0, the internal bus timing is switched to the basic cycle
composed of three wait states. This is because the internal H/W latency related to such a high
speed clock rate. Though the High Speed Timing has to go through 3 wait states, which is one
more wait state than the 2 wait states for Low Speed Timing, the performance of the High Speed
Timing is still higher. This is because the High Speed Timing has higher CKIO rate. For example
25Mhz basic timing (4 clock cycles) needs 160 ns but 66Mhz basic timing (5 clock cycles) only
requires 75 ns to complete.
High-Speed Basic Internal Peripheral Bus Access Timing
is shown in the Figure 5-4. These
basic cycles are T1, TWs1, TWs2, and TWs3 and T2 phases. Note that three wait states (TWs1,
TWs2, and TWs3) are in command cycle. In this case, no external peripheral hardware wait is
asserted. The *WAIT# signal is kept high before T2 stage. This means that peripheral module does
not need external cycles to accomplish the command. Therefore, the command cycle enters the T2
phase after TWs2. At the end of T2 phase, the question that either T1 or T_idle phase is followed is
determined by the configuration of the host CPU bus idle state. If host CPU configures at least one
idle state, the corresponding T_idle phase is followed. If h ost CPU configures no idle state, the T1
phase is followed after T2.
CKIO
A20-A1
A24,A25
IMADDR
*MS#
IMRDWR#
IMRD#
(READ)
D31-D0
MODATA
IMWE0/1/2/3#
(WRITE)
D31-D0
MIDATA
*WAIT#
T1T2TWs3T_idle(T1)TWs1
t
AD
t
RWD
t
WDD
t
MSD
t
RDD
t
WED
TWs2
t
WDYS
t
RDS
t
WDYH
t
RDH
t
RDD
t
WED
t
MSD
Figure 5.4 High-Speed Basic Internal Peripheral Bus Access Timing
Rev. 3.0, 03/01, page 47 of 390
Page 67
High-Speed Internal Bus Access Timing with TWe phase
is shown in the Figure 5-5. The
diagram shows the cycles are T1, TWs1, TWs2, TWs3, TWe and T2 phases. Note that there are
three wait states and one peripheral hardware wait state in command cycle. In this case, the basic
command cycle is insufficient for peripheral operation. The basic command cycle is responsible for
the peripheral module to insert its own wait signal before T2 stage. And the *WAIT# signal
controlled by the peripheral module must satisfy the setup/hold time defined in internal peripheral
Bus AC timing specifications. In Figure 5-5, the TWe stands for the peripheral hardware wait state.
The command cycle can be inserted TWe states, and the number of Twe states insertion is
depended on the signal *WAIT# of the peripheral module. At the end of T2 phase, the timing when
either T1 or T_idle phase is followed is based on the same logic described in Figure 5-2 – the
question that either T1 or T_idle phase is followed depends on the configuration of the host CPU
bus idle state.
CKIO
A20-A1
A24,A25
IMADDR
*MS#
IMRDWR#
IMRD#
(READ)
D31-D0
MODATA
IMWE0/1/2/3#
(WRITE)
D31-D0
MIDATA
*WAIT#
T1T2TWs3TWeT_idle(T1)TWs1
t
AD
t
RWD
t
WDD
t
MSD
t
RDD
t
WED
TWs2
t
WDYS
t
RDS
t
WDYH
t
WDYS
t
WDYH
Figure 5.5 High-Speed Internal Peripheral Bus Access Timing With TWe Phase
t
RDD
t
RDH
t
WED
t
MSD
Rev. 3.0, 03/01, page 48 of 390
Page 68
5.5Internal Bus Data Swap Rules
Internal Bus Data Swap Rules
are defined to satisfy the legacy peripheral modules. This is
because the data bus width has been changed from 16 bits to 32 bits. For the compliance with these
legacy peripheral modules, it is required to establish a data swap mechanism described below:
Case 1: Word Access (16 bits)
IMADDR[1]=0CPU BusInternal Bus
Write EnableWE3#WE2#WE1#WE0#IMWE3# IMWE2# IMWE1# IMWE0#
ValueHHLLHHL L
Data PositionXxByte1byte0xxbyte1byte0
IMADDR[1]=1CPU BusInternal Bus
Write EnableWE3#WE2#WE1#WE0#IMWE3# IMWE2# IMWE1# IMWE0#
ValueLLHHHHLL
Data Positionbyte3byte2xxxxbyte3byte2
Case 2: Double Word Access (32 bits)
IMADDR[1]=0CPU BusInternal Bus
Write EnableWE3#WE2#WE1#WE0#IMWE3# IMWE2# IMWE1# IMWE0#
ValueLLLLLLLL
Data Positionbyte3byte2Byte1byte0byte3byte2byte1byte0
Rev. 3.0, 03/01, page 49 of 390
Page 69
5.6Internal Peripheral Bus AC Timing Specification
SH-3 (15MHz) SH-3 (40MHz) SH-4 (66MHz)
SymbolItemMinMaxMinMaxMinMaxUnit
TADAddress delay time-2-2-2ns
TMSDModule Select delay time-2-2-2ns
TRWDRead Write delay time-2-2-2ns
TRDDRead Strobe delay time-5-5-5ns
TRDSRead Data setup time50-30-10-ns
TRDHRead Data hold time0-0-0-ns
TWEDWrite Enable delay time-5-5-5ns
TEDDWrite Data delay time-0-0-10ns
TWDYSWait setup time20-20-10-ns
TWDYHWait hold time0-0-0-ns
Note: In Figure 5-2 and Figure 5-3, all AC Timings are related to CKIO. The CKIO signal is inside
IPC, i.e. this CKIO signal is the signal comes out through IPC CKIO input pad and clock
tree, and is used by all peripheral modules.
Rev. 3.0, 03/01, page 50 of 390
Page 70
Section 6 Power Management and System Configuration
6.1Overview
The System Power Management and Configu ration registers control the functionality of Module
Standby mode, Bus gating, Wait states, Peripheral Clock Control, Module Software Reset and Test
Mode. Each module in the HD64465 is provided with the STANDBY mode. All peripheral module
functions are halted in the STANDBY mode; thereby reducing the power consumption. The Bus
gating control is used with STANDBY mode for further power saving capability The Hardware
external wait cycle inserted by CPU interface module is an option to extend data read/write cycles.
The system registers are described in details below:
6.2Features
Support STANDBY mode for each peripheral module
•
All peripheral clocks can be halted
•
Provide CPU interface input signals and GPIO pins gated function
•
Flexible selection of peripheral functions
•
Provide an Debug port for system bus test
•
Rev. 3.0, 03/01, page 51 of 390
Page 71
6.3Register Description
The following table lists all the registers. The unit of the register size and access size is byte. The
register size is the actual size of registers. The access size defines the data bus width of host CPU,
which is used to access each register. In other words, the access of each register is word (2 bytes)
access type.
Table 6.1The Register List of Power Management and System Configura tion
NameAddressRegister Size Access Size
System Module Standby Control RegisterH'100000001616
System Configuration RegisterH'100000021616
System Bus Control RegisterH'100000041616
System Peripheral Clock Control RegisterH'100000061616
System Peripheral S/W Reset Control RegisterH'100000081616
System PLL Control RegisterH'1000000A1616
System Revision RegisterH'1000000C1616
System Device ID RegisterH'100000101616
System Debug Port RegisterH'10000FF01616
6.3.1System Module Standby Control Register (SMSCR)
This register provides the module standby control for each peripheral module. This standby control
can make the peripheral module enter standby mode. The power consumption can be reduced
considerably as a result. If the module needs to be activated again, the peripheral module must exit
the standby mode by clearing the corresponding bit in the register SMSCR.
Address: 0x10000000
Bit1514131211109 8
Bit Name-PS2ST-ADCSTUARTST -SCDIST PPST
Initial Value01011011
R/WRR/WRR/WR/WRR/WR/W
Bit76543210
Bit Name-PC0STPC1STAFESTTM0STTM1STIRDAST KBCST
Initial Value01111111
R/WRR/WR/WR/WR/WR/WR/WR/W
Rev. 3.0, 03/01, page 52 of 390
Page 72
System Module Standby Contro l Register (SMSCR) [cont’d]
BitDescriptionDefault
15Reserved.0
14
13Reserved.0
12
11
10Reserved0
9
8
7Reserved0
6
5
4
3
2
1
0
PS2ST:
PS2 Standby. When this bit is set, the PS2 will enter the standby mode until this
bit is cleared. The PS2 will be in normal operation mode after this bit is cleared. This bit is
set after reset.
ADCST:
standby mode until this bit is cleared. The A/D controller will be in normal operation mode
after this bit is cleared. This bit is set after reset.
UARTST:
this bit is cleared. The UART will be in normal operation mode after this bit is cleared. This
bit is set after reset.
SCDIST:
will enter the STANDBY mode until this bit is cleared. The serial codec interface will be in
normal operation mode after this bit is cleared. This bit is set after res et.
PPST:
mode until this bit is cleared. The parallel port will be in normal operation mode after t his
bit is cleared. This bit is set after reset.
PC0ST:
channel 0 will enter the standby mode until this bit is cleared. The PCMCIA interface
channel 0 will be in normal operation mode after this bit is cleared. This bit is set after
reset.
PC1ST:
channel 1 will enter the standby mode until this bit is cleared. The PCMCIA interface
channel 1 will be in normal operation mode after this bit is cleared. This bit is set after
reset.
AFEST:
standby mode until this bit is clear. The AFE interface will be in normal operation mode
after this bit is cleared. This bit is set after reset.
TM0ST:
standby mode until this bit is cleared. The Timer channel 0 will be in normal operation
mode after this bit is cleared. This bit is clear after reset.
TM1ST:
standby mode until this bit is cleared. The Timer channel 1 will be in normal operation
mode after this bit is cleared. This bit is clear after reset.
IRDAST:
standby mode until this bit is cleared. The IrDA controller will be in normal operati on mode
after this bit is cleared. This bit is set after reset.
KBCST:
standby mode until this bit is cleared. The KBC controller will be in normal operation mode
after this bit is cleared. This bit is clear after reset.
A/D Controller Standby. When this bit is set, the A/D controller will enter the
UART Standby. When this bit is set, the UART will enter the standby mode until
Serial Codec Interface Standby. When this bit is set, the serial codec interface
Parallel Port Standby. When this bit is set, the parallel port will enter the standby
PCMCIA interface Channel 0 Standby. When this bit is set, the PCMCIA interface
PCMCIA interface Channel 1 Standby. When this bit is set, the PCMCIA interface
AFE interface Standby. When this bit is set, the AFE interface will enter t he
Timer channel 0 Standby. When this bit is set, the Timer channel 0 will enter the
Timer channel 1 Standby. When this bit is set, the Timer channel 1 will enter the
IRDA Controller Standby. When this bit is set, the IrDA controller will enter the
KBC Controller Standby. When this bit is set, the KBC controller will enter the
1
1
1
1
1
1
1
1
1
1
1
1
Rev. 3.0, 03/01, page 53 of 390
Page 73
6.3.2System Configuration Register (SCONFR)
This register provides a flexible approach for system configuration. The hardware wait insertion
control is flexible to control CPU interface command cycle. Parallel Port function select can also
be programmed by this register. The detailed function a lity, which can be configured, is described
below:
Address: H'10000002
Bit1514131211109 8
Bit Name--SLSHWENHW3HW2HW1HW0
Initial Value00010001
R/WRRR/WR/WR/WR/WR/WR/W
Bit76543210
Bit Name--USBCKS SCDICKS PPFMS1 PPFMS0 KBWUP Initial Value00000000
R/WRRR/WR/WR/WR/WR/WR
BitDescriptionDefault
15 - 14Reserved.0
13
12
11 - 8
7 - 6Reserved.0
SLS:
System Low Speed Select. This bit is used to select the low speed or high-speed
timing according to different bus clock (CKIO) rat es.
When this bit is set to 1, the low speed timing is selected in internal bus.
When this bit is cleared to 0, the high-speed timing is selected in internal bus.
For CKIO, - 25MHz, low speed is recommended.
For CKIO, 25 – 66MHz, high speed is recommended.
HWEN:
CPU interface Hardware Wait Number Enable. This bit is used to enable the wait
cycles of HW[3:0]. When this bit is set, the CPU interface will insert the hardware wai t
cycles as the HW[3:0] programmed. If this bit is cl eared, the CPU interface will not insert
any hardware wait cycles.
HW[3:0]:
for the cycles of hardware wait state inserted. The insert ed cycl es start at the second
software wait state. This wait number is effective only after the HWEN has been set. The
wait cycle can be any one number from 1 to 15. Note that the relationship between
HW[3:0] and CPU programmed inserted wait states (IWS) is 2 ≤ IWS ≤ 1 + HW[3:0].
Hence, the CPU default inserted wait states should be 2.
CPU interface Hardware Wait Number Control. The number of HW[3:0] stands
1
0001
Rev. 3.0, 03/01, page 54 of 390
Page 74
System Configuration Register (SCONFR) [cont’d]
BitDescriptionDefault
5
4
3, 2
1
0Reserved.0
USBCKS:
clock will be the clock output from PLL1. When this bit is set, the USB Host int erfac e cl ock
will be the half frequency of CKIO.
SCDICKS:
be 12MHz from UCK pad path. When this bit is cleared, the SCDI_clk source will be
12.288MHz from AFECK pad path.
PPFMS[1:0]:
When PPFMS[1:0] is 11, the ECP+EPP mode is selected.
When PPFMS[1:0] is 10, the ECP mode is selected.
When PPFMS[1:0] is 01, the EPP mode is selected.
When PPFMS[1:0] is 00, the SPP mode is selected.
KBWUP:
generated to wake up key board controller. This bit is self-cleared after the wake-up pulse
is done.
USB Host interface Clock Switch. When this bit is cl eared, USB Host interface
Serial Codec Interface Clock Switch. When this bit i s set, SCDI_clk source will
Parallel Port Function Mode Select.
Key Board Wake Up. When this bit is set, the key board wake-up pulse will be
0
0
00
0
6.3.3System Bus Control Register (SBCR)
This register controls the bus state of some input or output signals. This signal gating control can
be used to save power consumption for various system conditions.
Address: H'10000004
Bit1514131211109 8
Bit NamePDOFPDIGPCOFPCIGPBOFPBIGPAOFPAIG
Initial Value00000000
R/WR/WR/WR/WR/WR/WR/WR/WR/W
Bit76543210
Bit Name-CSPECMDPE ADDRPE DATAPE CPUBIG PEOFPEIG
Initial Value00000000
R/WRR/WR/WR/WR/WR/WR/WR/W
Rev. 3.0, 03/01, page 55 of 390
Page 75
System Bus Control Register (SBCR) [cont’d]
BitDescriptionDefault
15
14
13
12
11
10
9
8
7Reserved0
6
5
4
3
2
0
0
PDOF:
Port D Output Floating Control. When this bit is set, the output will be floating.
When this bit is cleared, the output floating is disabled.
PDIG:
Port D Input Gating Control. When this bit is set, the input to port D will be gated to
fixed value. When this bit is cleared, the input remains unaffected.
PCOF:
Port C Output Floating Control. When this bit is set, the output will be floating.
When this bit is cleared, the output floating is disabled.
PCIG:
Port C Input Gating Control. When this bit is set, the input to port C will be gated to
fixed value. When this bit is cleared, the input remains unaffect ed.
PBOF:
Port B Output Floating Control. When this bit is set, the output will be floating.
When this bit is cleared, the output floating is disabled.
PBIG:
Port B Input Gating Control. When this bit is set, the input to port B will be gated to
fixed value. When this bit is cleared, the input remains unaffected.
PAOF:
Port A Output Floating Control. When this bit is set, the output will be floating.
When this bit is cleared, the output floating is disabled.
PAIG:
Port A Input Gating Control. When this bit is set, the input to port A will be gated to
fixed value. When this bit is cleared, the input remains unaffected.
CSPE:
CPU Chip Area Select Pull-up Enable. When this bit is cleared, the chip select
CS4_ will be pull-up. When this bit is set, the CS4_ is not pull-up.
CMDPE:
RDWR_, WE0_ and WE1_ will be pull-up. When this bit is set, the signal RD_, RDWR_,
WE0_ and WE1_ are not pull-up.
ADDRPE:
be pull-up. When this bit is set, the address bus is not pull-up.
DATAPE:
When this bit is cleared, the data bus is not pull-up.
CPUBIG:
interface will be automatic input gating by Intelligent Peripheral Controller Select(CS4_)
for reducing power consumption. When this bit is cleared, the CPU bus interf ace is not
gated.
PEOF:
When this bit is cleared, the output floating is disabled.
PEIG:
fixed value. When this bit is cleared, the input remains unaffected.
CPU Command/Status Pull-up Enable. When this bit is cleared, the si gnal RD_,
CPU Address Bus Pull-up Enable. When this bit is cleared, the address bus will
CPU Data Bus Pull-up Enable. When this bit is set, the data bus will be pull-up.
CPU Bus interface Input Gating Control. When this bit is set, the CPU bus
Port E Output Floating Control. When this bit is set, the output will be floati ng.
Port E Input Gating Control. When this bit is set, the input to port E will be gated to
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Rev. 3.0, 03/01, page 56 of 390
Page 76
6.3.4System Peripheral Clock Control Register (SPCCR)
This register provides the function of peripheral clock control for each peripheral module. When
the peripheral module is in standby mode, the peripheral clock can be turned off to reduce more
power consumption, thanks to the free running of the peripheral clock. To stop the peripheral
clock, the peripheral module standby mode must be asserted first.
Address: H'10000006
Bit15 1413 1211109 8
Bit NameADCCLK -UARTCLK PPCLKFIRCLK SIRCLK SCDICLK KBCCLK
Initial Value00000000
R/WR/WRR/WR/WR/WR/WR/WR/W
Bit76543210
Bit NameUSBCLK AFECLK ----UCKOSC AFEOSC
Initial Value00000000
R/WR/WR/WRRRRR/WR/W
BitDescriptionDefault
15
14Reserved0
13
12
ADCCLK:
be halted. The A/D controller clock will run normally after this bit is cleared. Note that this
bit can be cleared only Twkst ms later, the UCKOSC bit has already been cleared.
UARTCLK:
halted. The UART channel 0 clock will run normally after this bit is cleared. Note that t his
bit can be cleared only Twkst ms later, the UCKOSC bit has already been cleared.
PPCLK:
halted. The PP clock will run normally after this bit is cleared. Not e that this bi t can be
cleared only Twkst ms later, the UCKOSC bit has already been cleared.
A/D Controller Clock Control. When this bit is set, t he A/D cont rol l e r clock wi l l
UART Controller Clock Control. When this bit is set, the UART clock will be
Parallel Port Controller Clock Control. When this bit is set, the PP clock will be
0
0
0
Rev. 3.0, 03/01, page 57 of 390
Page 77
System Peripheral Clock Control Register (SPCCR) [cont’d]
BitDescriptionDefault
11
10
9
8
7
6
5 - 2Reserved.0
1
0
Note: The parameter, Twkst = 15 ms.
FIRCLK:
The FIR clock will run normally after this bit is cleared. Note that this bit can be cleared
only Twkst ms later, the UCKOSC bit has already been cleared.
SIRCLK:
The SIR clock will run normally after this bit is cleared. Note that this bit can be cleared
only Twkst ms later, the UCKOSC bit has already been cleared.
SCDICLK:
be halted. The SCDI clock will run normally after this bit is cleared.. Note that this bit can
be cleared only Twkst ms later after either AFEOSC bit or UCKOSC bit, which is
determined by bit SCDICKS, is cleared.
KBCCLK:
clock will be halted. The KBC command clock will run normally after this bit is cleared.
Note that this bit can be cleared only Twkst ms later, the UCKOSC bit has already been
cleared.
USBCLK:
The USB clock will run normally after this bit is cleared. Note that this bit can be cleared
only Twkst ms later, the UCKOSC bit has already been cleared.
AFECLK:
clock will be halted. The AFE interface clock will run normally after this bit is cleared. Note
that this bit can be cleared only Twkst ms later, the AFEOSC bit has already been
cleared.
UCKOSC:
will be halted. The UCK oscillator/crystal will start to run after this bit is cleared. This bit
must be carefully used. This bit can only be set when all the clocks that use the UCK as a
source clock have been halted.
AFEOSC:
oscillator/crystal will be halted. The AFECK osci llator/crystal will start to run after this bit is
cleared. This bit must be carefully used. This bit can only be set when all the clocks that
use the AFECK as a source clock have been halted.
FIR Controller Clock Control. When this bit is set, the FIR clock will be halted.
SIR Controller Clock Control. When this bit is set, the SIR clock will be halted.
Serial Codec Interface Clock Control. When this bit is set, the SCDI clock will
Key Board Controller Clock Control. When this bit is set, the KBC command
USB Controller Clock Control. When this bit is set, the USB clock will be halted.
AFE interface Controller Clock Control. When this bit is set, the AFE int erface
UCK Oscillator/Crystal Control. When this bit is set, the UCK oscillator/crystal
AFECK Oscillator/Crystal Control. When this bit is set, the AFECK
0
0
0
0
0
0
0
0
Rev. 3.0, 03/01, page 58 of 390
Page 78
Peripheral Clock Relationship Diagrams
shows the working relationship among the clock
source and generated peripheral clocks. It also indicates the sequence of turning off one peripheral
clock without interfering the other peripheral clocks operation. For example, in Figure 6-1, If the
bit
AFEOSC
source clock AFECK is halted. To stop the AFE_clk, users can set the bit
is set, then peripheral clocks like AFE_clk and SCDI_clk will be halted because the
AFECLK
in the system
peripheral clock control register (SPCCR). To turn on the AFE_clk again from the halted
condition, just let the bit
AFECLK
be cleared, AFE_clk will then start to run.
Follow the steps below to save power consumption:
1. Set bits
AFECLK
and
SCDICLK
to turn off AFE_clk and SCDI_clk (under
This will reduce the power consumption of AFE and SCDI modules.
2. Even more power consumption can be saved on PLL1 if users set the bit
Conversely, to make the peripheral clocks AFE_clk and SCDI_clk (under
from
AFEOSC
1. Clear
2. Clear
bit, which has been set, users are required to follow the steps described below:
AFEOSC
AFECLK
, then wait about
and
SCDICLK
ms to allow PLL1 operate normally.
t
PLL
to open the clock gating.
SCDICKS
After these two steps, the peripheral clocks will start to run normally.
PLL1
AFECK
12.288Mhz
AFEOSC
x3
Frequency divider
x(1/4)
36.8Mhz
9.2Mhz
AFECLK
Clock
Gating
Control
AFE_clk
SCDICKS
AFEOSC
=0).
.
=0) to run
Frequency divider
x(1/3)
From Figure 2.
12.288Mhz
12Mhz
SCDICKS
Mux
SCDICLKACCLK
Figure 6.1 AFECK Related Clock Diagram
Rev. 3.0, 03/01, page 59 of 390
Clock
Gating
Control
SCDI_clk
Page 79
UCK
UCKOSC
12Mhz
Frequency divider
x(1/2)
Frequency divider
Frequency divider
PLL2
x4
UARTCLK & PPCLK
x(1/4)
x(1/26)
AFE_cmd_clk
PPCLK
Gating
Control
SIRCLK
UARTCLK
Clock
Clock
Gating
Control
24Mhz
12Mhz (To Figure 1)
1.8Mhz
48Mhz
Clock
Gating
Control
Clock
Gating
Control
Clock
Gating
Control
USBCLK
Clock
Gating
Control
FIRCLK
PP_clk24
Clock
Gating
Control
KBCCLK
UART_PP_cmd_clk
Clock
Gating
Control
ADCCLK
SIR_clk
UART_clk
USB_clk
FIR_clk
KBC_clk
ADC_clk
Figure 6.2 UCK Related Clock Diagram
Rev. 3.0, 03/01, page 60 of 390
Clock
Gating
Control
PPCLK
PCMCIA_pwr_clk
RST_CLK
PP_clk1p8
Page 80
6.3.5System Peripheral S/W Reset Control Register (SPSRCR)
The software reset of each peripheral module is an option when the peripheral module encounters
functional failures after clearing the STANDBY mode of the module. These software reset bits
need the clock from UCK oscillator to count the reset period, which means that the
UCKOSC
bit
needs to be cleared first before setting these reset bits. Note that multiple bits can be set at the same
time. But during the reset period, no other bits can be set until all the bits, which have been set, are
cleared.
Address: H'10000008
Bit15141312111098
Bit NameSPORST PS2SRT -ADCSRT UARTSRT -SCDISRT PPSRT
Initial Value10000000
R/WRR/WRR/WR/WRR/WR/W
going. At this time, the whole chip is still in reset state after H/W reset. All R/W accesses
must wait for this bit to clear to zero. Note this register is readable during system poweron reset state.
PS2SRT:
Controller will be reset. This reset is equivalent to hardware reset. All the PS2
Controller registers are set to the reset default values. Not e that the software reset bit is
self-clearing.
ADCSRT:
reset. This reset is equivalent to hardware reset. All the A/D controller registers are set to
the reset default values. Note that the software reset bit is self -clearing.
UARTSRT:
This reset is equivalent to hardware reset. All the UART registers are set to the reset
default values. Note that the software reset bit is self-c learing.
SCDISRT:
reset. This reset is equivalent to hardware reset. All the SCDI registers are set to the reset
default values. Note that the software reset bit is self-c learing.
System Power-On Reset. When this bit is set, the system power-on reset is
PS2 Controller Software Reset. When this bit is set, the PS2
A/D Controller Software Reset. When this bit is set, the A/D controller will be
UART Controller Software Reset. When this bit is set, the UART will be reset.
Serial Codec Controller Software Reset. When this bit is set, the SCDI will be
1
0
0
0
0
Rev. 3.0, 03/01, page 61 of 390
Page 81
System Peripheral S/W Reset Control Register (SPSRCR) [cont’d]
BitDescriptionDefault
8
7
6
5
4
3
2
1
0
PPSRT:
Parallel Port Controller Software Reset. When this bit is set, the paral l el port
controller will be reset. This reset is equivalent to hardware reset. All the parallel port
registers are set to the reset default values. Note that t he soft ware reset bit is selfclearing.
USBSRT:
reset is equivalent to hardware reset. All the USB registers are set to the reset default
values. Note that the software reset bit is self-clearing.
PC0SRT:
PCMCIA channel 0 will be reset. This reset is equivalent to hardware reset. All the
PCMCIA channel 0 registers are set to the reset default values. Note that the soft ware
reset bit is self-clearing.
PC1SRT:
PCMCIA channel 1 will be reset. This reset is equivalent to hardware reset. All the
PCMCIA channel 1 registers are set to the reset default values. Note that the soft ware
reset bit is self-clearing.
AFESRT:
controller will be reset. This reset is equivalent to hardware reset. All the AFE interface
registers are set to the reset default values. Note that t he soft ware reset bit is selfclearing.
TM0SRT:
channel 0 will be reset. This reset is equivalent to hardware reset. All the Timer channel 0
registers are set to the reset default values. Note that t he soft ware reset bit is selfclearing.
TM1SRT:
channel 1 will be reset. This reset is equivalent to hardware reset. All the Timer channel 1
registers are set to the reset default values. Note that t he soft ware reset bit is selfclearing.
IRDASRT:
reset. This reset is equivalent to hardware reset. All the IrDA regist ers are set to the res et
default values. Note that the software reset bit is self-c l eari n g.
KBCSRT:
reset. This reset is equivalent to hardware reset. All the KBC registers are set to the reset
default values. Note that the software reset bit is self-c l eari n g.
USB Controller Software Reset. When this bit is set, the USB will be reset. This
PCMCIA Channel 0 Controller Software Reset. When this bit is set, the
PCMCIA Channel 1 Controller Software Reset. When this bit is set, the
AFE interface Controller Software Reset. When this bit is set, the AFE interface
Timer Channel 0 Controller Software Reset. When this bit is set, the Timer
Timer Channel 1 Controller Software Reset. When this bit is set, the Timer
IrDA Controller Software Reset. When this bit is set, the IrDA controller will be
KBC Controller Software Reset. When this bit is set, the KBC controller will be
0
0
0
0
0
0
0
0
0
Rev. 3.0, 03/01, page 62 of 390
Page 82
6.3.6System PLL Control Register (SPLLCR)
This register provides the PLL control options.
Address: H'1000000A
Bit1514131211109 8
Bit Name-------Initial Value00000000
R/W RRRRRRRR
Bit76543210
Bit Name--PLL2SB PLL1SB --PLL2BP PLL1BP
Initial Value00000000
R/WRRR/WR/WRRR/WR/W
BitDescriptionDefault
15 - 6Reserved.0
5
4
3, 2Reserved.0
1
0
PLL2SB:
When this bit is cleared, the PLL2 standby mode is disabled.
PLL1SB:
When this bit is cleared, the PLL1 standby mode is disabled.
PLL2BP:
The clock input will directly connect to clock output, lik e the PLL multipl i er is one. The
multiplier is one. When this bit is cleared, the PLL2 bypass mode is disabled.
PLL1BP:
The clock input will directly connect to clock output, lik e the PLL multipl i er is one. When
this bit is cleared, the PLL1 bypass mode is disabled.
PLL2 Standby control. When this bit is set, the PLL2 standby mode is enabled.
PLL1 Standby control. When this bit is set, the PLL1 standby mode is enabled.
PLL2 Bypass control. When this bit is set, the PLL2 bypass mode is enabled.
PLL1 Bypass control. When this bit is set, the PLL1 bypass mode is enabled.
0
0
0
0
Rev. 3.0, 03/01, page 63 of 390
Page 83
6.3.7System Revision Register (SRR)
This register records the revision number of the controller, which is read only. The revision
number is presented with
the content of the register’s high byte. The
mj.mi
. The
mj[7:0]
mi[7:0]
stands for the major change number and its value is
stands for the minor change number, and its
value is the content of the register’s low byte. For this version, the major change number is 1, and
the minor change number is
0.
Address: H'1000000C
Bit1514131211109 8
Bit Namemj7mj6mj5mj4mj3mj2mj1mj0
Initial Value00000001
R/W RRRRRRRR
Bit76543210
Bit Namemi7mi6mi5mi4mi3mi2mi1mi0
Initial Value00000000
R/W RRRRRRRR
BitDescriptionDefault
15 - 8
7 - 0
mj[7:0]:
This number is the major change number of revision1
mi[7:0]:
This number is the minor change number of revision.0
6.3.8System Device ID Register (SDID)
Address: H'10000010
This register stands for the chip ID. The value of this chip is 0x8122 and it is read only.
Rev. 3.0, 03/01, page 64 of 390
Page 84
6.4System Hardware Reset Timing
HD64465 provides the system hardware reset function to control SH-4/SH-3 CPU power-on reset
or manual reset. In Figure 6-3, it shows that two input signals on HD64465, RESETMI# and
RESETPI#, which control the manual reset and power-on reset respectively. The other signals,
RESETPO# and RESETMO#, are the output signals connected to SH-4/SH-3 CPU for power-on
reset and manual reset. AFECK must be input to enable this function.
RESETMI#RESETMO#
HD64465
RESETPI#
Figure 6.3 System Hardware Reset Related Pins
6.4.1Power-On Reset Output
When RESETPI# is asserted, it means the power-on reset has occurred. The power-on reset signal
output from HD64465, RESETPO#, is connected to CPU power-on reset input. The related timing
is illustrated in Fig 6-4.
RESETPO#
RESETPI#
RESETPO#
RESETMO#
tPORST
Figure 6.4 Power-On Reset Diagram, tPORST=10ms
Rev. 3.0, 03/01, page 65 of 390
Page 85
6.4.2Manual Reset Output
When RESETMI# is asserted, it means the manual reset is occurred. The manual reset signal from
HD64465, RESETMO#, is connected to CPU manual reset input. For SH-4 and SH-3 CPU, the
manual reset mechanism is different. Figure 6-5 shows the manual reset timing for SH-4 CPU and
Figure 6-6 shows the manual reset timing for SH-3 CPU.
HD64465 dosen’t have manual reset function for itself. Please be sure that manual reset will
not initialize any register in HD64465.
Rev. 3.0, 03/01, page 66 of 390
Page 86
Section 7 General Purpose I/O Port
7.1Overview
The HD64465 incorporates five general purpose 8-bit I/O ports (Port A, Port B , Port C, Port D and
Port E ). As shown in the
Table 7-1
which are controlled by Port Control Registers
data register
(GPxDR x: A,B,C,D,E)
pull-up MOS, which can be controlled by the Port Control Register to determine whether this pin
will be pulled up or not. The Interrupt Control Registers
individually control each pin which can be enabled or disabled to generate an Interrupt signal. The
interrupt events type can also be selected through the Interrupt Control Registers
A,B,C,D,E)
to determine which edge (falling edge or rising edge) will generate an interrup t. As
interrupt events occur at any GPIO pin, the Interrupt Status Registers
record the occurring interrupt events, which can be read by system. The interrupt is ended by
writing ‘1’ to the corresponding bit of the Interrupt Status Register, and the interrupt status is then
cleared.
7.1.1Features
Input pull-up on/off control
•
Interrupt events can be independently enabled or masked on each I/O pin
•
Interrupt events can be independently selected as rising or falling edge trigger
•
Function multiplex with AFE, KBC and TIMER control signals
•
Support power down mode which is controlled by software
•
below, the port pins are multiplexed with other functions,
(GPxCR x: A,B,C,D,E)
. Each port contains a 8-bit
which reflects the data of the pins. Each I/O port pin has a
(GPxICR x: A,B,C,D,E)
are provided to
(GPxICR x:
(GPxISR x: A,B,C,D,E)
can
Table 7.1The List of I/O Port Pin Function Configurations
Each I/O Port consists of four registers: Port Control Register, Port Data Register, Interrupt
Control Register and Interrupt Status Register. Table 7-2 below summarizes the port address
configuration of each register.
Table 7.2The List of Register Configurations
Initial
NameAbbr.R/W
Port A Control RegisterGPACRR/WH’FFFF H’10004000 1616
Port B Control RegisterGPBCRR/WH’FFFF H’10004002 1616
Port C Control RegisterGPCCRR/WH’FFFF H’10004004 1616
Port D Control RegisterGPDCRR/WH’FFFF H’10004006 1616
Port E Control RegisterGPECRR/WH’FFFF H’10004008 1616
Port A Data RegisterGPADRR/W-H’10004010 816
Port B Data RegisterGPBDRR/W-H’10004012 816
Port C Data RegisterGPCDRR/W-H’10004014 816
Port D Data RegisterGPDDRR/W-H’10004016 816
Port E Data RegisterGPEDRR/W-H’10004018 816
Port A Interrupt Control RegisterGPAICR R/WH’0000H’10004020 1616
Port B Interrupt Control RegisterGPBICR R/WH’0000H’10004022 1616
Port C Interrupt Control RegisterGPCICR R/WH’0000H’10004024 1616
Port D Interrupt Control RegisterGPDICR R/WH’0000H’10004026 1616
Port E Interrupt Control RegisterGPEICR R/WH’0000H’10004028 1616
Port A Interrupt Status RegisterGPAISR RH’0000H’10004040 816
Port B Interrupt Status RegisterGPBISR RH’0000H’10004042 816
Port C Interrupt Status RegisterGPCISR RH’0000H’10004044 816
Port D Interrupt Status RegisterGPDISR RH’0000H’10004046 816
Port E Interrupt Status RegisterGPEISR RH’0000H’10004048 816
ValueAddress
Register
Size
Access
Size
Rev. 3.0, 03/01, page 69 of 390
Page 89
7.3Register Descriptions
All ports are 8-bit input/output ports with the pin configuration shown in
pin contains an input pull-up MOS, which is controlled by its I/O Control Register
x:A,B,C,D,E).
Port X
⇔
PX7 (input / output) / Function 2
⇔
PX6 (input / output) / Function 2
⇔
PX5 (input / output) / Function 2
⇔
PX4 (input / output) / Function 2
⇔
PX3 (input / output) / Function 2
⇔
PX2 (input / output) / Function 2
⇔
PX1 (input / output) / Function 2
⇔
PX0 (input / output) / Function 2
Figure 7.1 Pin Configuration of All Ports
7.3.1Port Data Register
GPADR -- Address: H'10004010
Figure 7-1
( X : A or B or C or D or E)
below. Each
(GPxCR
Bit76543210
Bit NamePA7DTPA6DTPA5DTPA4DTPA3DTPA2DTPA1DTPA0DT
Initial Value-------R/WR/WR/WR/WR/WR/WR/WR/WR/W
GPBDR -- Address: H'10004012
Bit76543210
Bit NamePB7DTPB6DTPB5DTPB4DTPB3DTPB2DTPB1DTPB0DT
Initial Value-------R/WR/WR/WR/WR/WR/WR/WR/WR/W
Rev. 3.0, 03/01, page 70 of 390
Page 90
GPCDR -- Address: H'10004014
Bit76543210
Bit NamePC7DTPC6DTPC5DTPC4DTPC3DTPC2DTPC1DTPC0DT
Initial Value-------R/WR/WR/WR/WR/WR/WR/WR/WR/W
GPDDR -- Address: H'10004016
Bit76543210
Bit NamePD7DTPD6DTPD5DTPD4DTPD3DTPD2DTPD1DTPD0DT
Initial Value-------R/WR/WR/WR/WR/WR/WR/WR/WR/W
GPEDR -- Address: H'10004018
Bit76543210
Bit NamePE7DTPE6DTPE5DTPE4DTPE3DTPE2DTPE1DTPE0DT
Initial Value-------R/WR/WR/WR/WR/WR/WR/WR/WR/W
The Port Data register
(GPxDR x: A,B,C,D,E)
be a general output port, the value of the
is an 8-bit register. When the pin function is set to
PxnDT(x: A,B,C,D,E n: 7~0)
bit is directly output to its
corresponding pin. When the pin function is set to be a general input port, the pin level status can
be detected by reading the corresponding register bit. Please refer to
read/write operation in regards to its setting func tions
The register is used to control the functions of each I/O port pin. Control bits of MD0 and MD1 are
defined in
Table 7-3.
Table 7.3Control Bits Definition of the Port x Control Register and Its Relevant
READ/WRITE Operation of Port Data Register
PxnMD1PxnMD0Pin StatusREADWRITE
00Function 2Pin statusCan write to GPxDR, but has no effect
on pin status.
1OutputPin StatusValue written to GPxDR is output to pin.
10Input
(Pull-up MOS on)
1Input
(Pull-up MOS off)
Pin statusCan write to GPxDR, but has no effect
on pin status.
Pin statusCan write to GPxDR, but has no effect
on pin status.
Rev. 3.0, 03/01, page 73 of 390
Page 93
7.3.3Port Interrupt Control Register
This register is used to enable or disable to generate the interrupt request when an interrupt event is
triggered on each I/O port pin. An interrupt request is generated when an interrupt event is
triggered and its corresponding register bit is set to “1”. But the Interrupt request will not be
generated if its corresponding control register bit is “0,” despite that the interrupt event is trig gered.
This register can independently select the trigger edge of the interrupt events on each I/O port pin.
GPAICR -- Address: H'10004020
Bit1514131211109 8
Bit NamePA7TSPA6TSPA5TSPA4TSPA3TSPA2TSPA1TSPA0TS
Initial Value00000000
R/WR/WR/WR/WR/WR/WR/WR/WR/W
Bit76543210
Bit NamePA7IMPA6IMPA5IMPA4IMPA3IMPA2IMPA1IMPA0IM
Initial Value11111111
R/WR/WR/WR/WR/WR/WR/WR/WR/W
GPBICR -- Address: H'10004022
Bit1514131211109 8
Bit NamePB7TSPB6TSPB5TSPB4TSPB3TSPB2TSPB1TSPB0TS
Initial Value00000000
R/WR/WR/WR/WR/WR/WR/WR/WR/W
Bit76543210
Bit NamePB7IMPB6IMPB5IMPB4IMPB3IMPB2IMPB1IMPB0IM
Initial Value11111111
R/WR/WR/WR/WR/WR/WR/WR/WR/W
GPCICR -- Address: H'10004024
Bit1514131211109 8
Bit NamePC7TSPC6TSPC5TSPC4TSPC3TSPC2TSPC1TSPC0TS
Initial Value00000000
R/WR/WR/WR/WR/WR/WR/WR/WR/W
Rev. 3.0, 03/01, page 74 of 390
Page 94
GPCICR -- Address: H'10004024 (cont’d)
Bit76543210
Bit NamePC7IMPC6IMPC5IMPC4IMPC3IMPC2IMPC1IMPC0IM
Initial Value11111111
R/WR/WR/WR/WR/WR/WR/WR/WR/W
GPDICR -- Address: H'10004026
Bit1514131211109 8
Bit NamePD7TSPD6TSPD5TSPD4TSPD3TSPD2TSPD1TSPD0TS
Initial Value00000000
R/WR/WR/WR/WR/WR/WR/WR/WR/W
Bit76543210
Bit NamePD7IMPD6IMPD5IMPD4IMPD3IMPD2IMPD1IMPD0IM
Initial Value11111111
R/WR/WR/WR/WR/WR/WR/WR/WR/W
GPEICR: Address: H'10004028
Bit1514131211109 8
Bit NamePE7TSPE6TSPE5TSPE4TSPE3TSPE2TSPE1TSPE0TS
Initial Value00000000
R/WR/WR/WR/WR/WR/WR/WR/WR/W
Bit76543210
Bit NamePE7IMPE6IMPE5IMPE4IMPE3IMPE2IMPE1IMPE0IM
Initial Value11111111
R/WR/WR/WR/WR/WR/WR/WR/WR/W
PxnTS: Port x Bit n interrupt trigger select
Bit NamePE7ISRPE6ISR PE5ISRPE4ISR PE3ISR PE2ISRPE1ISR PE0ISR
Initial Value00000000
R/WR/WR/WR/WR/WR/WR/WR/WR/W
When an interrupt event occurs on an I/O port pin and its corresponding interrupt control register
(GPXICR) bit is set to “1” (enabled), the corresponding interrupt status bit is read as “1”. Note that
interrupt output is kept active till writing ‘1’ to the corresponding status bit. The status bit and
interrupt output will be cleared after “1” is written to the status register.
Rev. 3.0, 03/01, page 77 of 390
Page 97
Rev. 3.0, 03/01, page 78 of 390
Page 98
Section 8 Interrupt Controller (INTC)
8.1Overview
The Intelligent Peripheral Controller interrupts are issued from the modules of PS/2, PCMCIA,
AFE, GPIO port, Timer, Keyboard Controller, IrDA , UART, PP, SCDI, USB, and ADC. The
controller contains a register for the interrupt request status issued from each module.
After SH-4/SH7709 detects the interrupt, it reads the interrupt request register to see which module
generates the interrupt, and then reads the interrupt request register in each module. As the
controller provides the feature of gathering interrupts from all modules into one register, it will
help to simplify the CPU interrupt processing.
8.1.1Features
All interrupts issued from the internal modules are gathered into one register
•
Only one external interrupt output pin IRQ0# is used to request the interrupt service
•
Interrupt request lines from each module are high active and level trigger signals
•
The priority order of interrupt request lines is determined by software
•
Each module provides an interrupt mask bit. A mask register, which is able to perform masking
•
for each module interrupt, is also included
Rev. 3.0, 03/01, page 79 of 390
Page 99
8.1.2Block Diagram
(Interrupt Request)
PS/2
PCMCIA
GPIO Port
Timer
UART
SCDI
(Interrupt Request)
(Interrupt Request)
AFE
(Interrupt Request)
(Interrupt Request)
(Interrupt Request)
KBC
(Interrupt Request)
IrDA
(Interrupt Request)
(Interrupt Request)
PP
(Interrupt Request)
(Interrupt Request)
USB
(Interrupt Request)
ADC
NITR
NIRR
NIMR
Bus
Interface
IRQ0#
External
Bus
Figure 8.1 Block Diagram of the Interrupt Controller
8.1.3Pin Configuration
NameAbbr.I/ODescription
Interrupt RequestIRQ0#OInterrupt output to SH-4/SH7709 from the Intelligent
Interrupt sources are derived from on-chip peripheral module Interrupts. Each interrupt provides a
mask bit in each module listed below:
PS/2 Keyboard
•
PS/2 Mouse
•
PCMCIA Controller (PCC)
•
Analog Front End (AFE) Interface
•
GPIO
•
Timer
•
Keyboard Controller (KBC)
•
IrDA
•
UART
•
PP
•
SCDI
•
USB
•
ADC
•
8.2.2Interrupt Exception Processing and Priority
The priority order of the on-chip modules is determined by software. After detecting the interrupt
request IRQ0# from the Intelligent Peripheral Controller, the CPU must read the NIRR (Interrupt
Request Register) to check the interrupt sources. The interrupt sources will be recorded by the
CPU. The CPU will then determine the priority order and execute the interrupt service b ased on the
determined priority order. That is to say, the interrupt service will be executed for the interrupt
requests in the order from the highest priority to the lowest.
After the highest priority interrupt service is decided by the CPU, the CPU will set mask bit of
NIMR (Interrupt Mask Register) to those lower priority interrupts and set CPU priority level to the
current serviced one.
One exception is that the CPU can still accept an incoming interrupt, which ha s higher prio rity than
the one being serviced. After the CPU completes reading the interrupt request register in each
module, the status of interrupt request for each module is cleared automatically, or by software.
Rev. 3.0, 03/01, page 81 of 390
Loading...
+ 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.