Page 3
4100 Series, V 4121, V 4122, and V 4173 are trademarks of NEC Corporation. Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. PC/AT is a trademark of International Business Machines Corporation.
Page 4
NEC does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of NEC semiconductor products listed in this document or any other liability arising from the use of such products. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC or others.
Page 5
Some information contained in this document may vary from country to country. Before using any NEC product in your application, pIease contact the NEC office in your country to obtain a list of authorized representatives and distributors. They will verify: •...
Page 6
Major Revisions in This Edition (1/2) Page Description Throughout Deletion of descriptions related to 32-bit PC card (CardBus card) p.25 Modification of description in 1.1 Features p.27 Modification of description in 1.3 (14) CARDU1, CARDU2 (PC Card Units) p.50 Modification of pin I/O direction in Table 2-1 PCI Bus Interface Signals p.51 Modification of pin I/O direction in Table 2-4 PC Card Interface Signals p.56...
Page 7
Major Revisions in This Edition (2/2) Page Description p.255 Addition of Caution to 13.3.67 MEM1_CMD_TIM (PCI offset address: 0x889, ExCA extended offset address: 0x0E) p.258 Modification of Table 13-4 CardBus Socket Registers p.259 Modification of description in 13.4.1 SKT_EV (offset address: 0x000) pp.262, 263 Addition of Note to 13.4.3 SKT_PRE_STATE (offset address: 0x008) p.272...
Page 8
INTRODUCTION Target Readers This manual is intended for users who understand the functions of the V 4173 and develop application systems using them. Purpose This manual is designed to help users understand the architecture of the V 4173, as described below. Organization This manual covers the following general topics.
Page 9
Related Documents See the following documents when using this manual. The related documents indicated in this publication may include preliminary versions. However, preliminary versions are not marked as such. O Documents related to device Document Name Document Number 4173 User’s Manual This manual µ...
Page 17
14.1 Features...........................274 14.2 USB Host Control Configuration Registers .................275 14.2.1 Register set ..........................276 14.2.2 Command register (offset address: 0x04) ................277 14.2.3 Status register (offset address: 0x06) ..................278 14.2.4 Base address register (offset address: 0x10) ................ 279 14.2.5 Power management register (offset address: 0xE0) ..............
Page 18
14.4.14 HC state transitions ........................329 14.4.15 List service flow ........................330 CHAPTER 15 AC97U (AC97 UNIT)......................336 15.1 General.............................336 15.2 Configuration Register Set ....................336 15.2.1 VID (offset address: 0x00 to 0x01)..................337 15.2.2 DID (offset address: 0x02 to 0x03)..................337 15.2.3 PCICMD (offset address: 0x04 to 0x05).................338 15.2.4 PCISTS (offset address: 0x06 to 0x07) ..................339 15.2.5...
Page 20
LIST OF FIGURES (1/2) Figure No. Title Page Internal Block Diagram and Connection Example with External Blocks............26 External Circuit of Clock Oscillator .........................62 Examples of Improperly Connected Resonators ....................63 DMA Space Used in DMA Transfers ......................75 Interrupt Control Outline Diagram........................91 Time Lag Until Status Change Is Reflected in VRCINT Signal (When Sampling with SCLK) ......92 Time Lag Until Status Change Is Reflected in VRCINT Signal (When Sampling with PCLK) ......93 PIU Peripheral Block Diagram........................126...
Page 21
LIST OF FIGURES (2/2) Figure No. Title Page 14-4 Low-Speed Device Cable and Resistor Connections...................317 14-5 Relationship Between EDs and TDs ......................318 14-6 InterruptED List ............................319 14-7 Bandwidth Allocation Method ........................320 14-8 4:1 Control Bulk Service Ratio ........................320 14-9 ED Format ..............................321 14-10 GeneralTD Format ............................323 14-11...
Page 22
LIST OF TABLES (1/3) Table No. Title Page PCI Devices and Component Units ........................28 BCU Configuration Registers .........................29 DMAAU Registers ............................30 DCU Registers..............................30 CMU Registers ...............................30 ICU Registers ..............................31 GIU Registers ..............................31 PIU Registers ..............................32 AIU Registers ..............................33 1-10 KIU Registers ..............................33 1-11 PS2CH1 Registers ............................34 1-12...
Page 23
LIST OF TABLES (2/3) Table No. Title Page BCU Configuration Registers .........................64 DMAAU Registers ............................76 DMA Priority Levels............................81 DCU Registers ...............................81 CMU Registers ...............................87 Assignment of Sampling Clocks and Interrupt Sources .................92 ICU Registers ..............................93 GPIO Pin Outline............................107 GIU Registers...............................108 Correspondences Between Interrupt Mask and Interrupt Hold ..............122 Alternate Function Correspondence Table of V 4173................124...
Page 24
LIST OF TABLES (3/3) Table No. Title Page 13-8 CARDU1 (Slot 1) V Settings........................271 13-9 CARDU1 (Slot 1) V Settings ........................271 13-10 CARDU2 (Slot 2) V Settings........................272 13-11 CARDU2 (Slot 2) V Settings ........................272 14-1 USB Host Control Configuration Registers....................276 14-2 Host Control Operational Registers......................282 14-3...
The V 4173 is a companion chip that is to be connected to a product having a PCI bus in the V 4100 Series such as NEC’s 64-bit RISC processor V 4122. The V 4173 incorporates the I/O macros necessary for a handheld PC running Windows™ CE, and can also access design resources on a personal computer by means of the PCI bus interface.
CHAPTER 1 OVERVIEW Ordering Information Part Number Package Internal Maximum Operating Frequency µ PD31173F1-33-HN1 304-pin plastic FBGA (19 × 19) 33 MHz Internal Block Configuration Figure 1-1 shows an internal block diagram of the V 4173 and connection example with external blocks. Figure 1-1.
Page 27
CHAPTER 1 OVERVIEW (4) DMAAU (DMA Address Unit) The DMAAU controls the addresses of DMA transfers that are used by the audio interface (MIC, speakers). (5) DCU (DMA Control Unit) The DCU controls the arbitration of DMA transfers that are used by the audio interface (MIC, speakers). (6) CMU (Clock Mask Unit) The CMU controls the supply of PCI clock (PCICLK), PIB bus clock (TClock, internal), and 48 MHz clock pulses to internal peripheral units.
CHAPTER 1 OVERVIEW PCI Device Configuration The V 4173 consists of a total of five PCI devices, which include three multifunction devices having BCU, AC97, and USB functions and two single function devices for PCMCIA channel 1 and channel 2. The following table shows the PCI devices and the corresponding units comprising each one.
CHAPTER 1 OVERVIEW Lists of Registers The following tables list the registers of each unit. Table 1-2. BCU Configuration Registers Register Symbol Function Offset Address Vendor ID register 0x00 to 0x01 Device ID register 0x02 to 0x03 PCICMD PCI command register 0x04 to 0x05 PCISTS PCI device status register...
Page 30
CHAPTER 1 OVERVIEW Table 1-3. DMAAU Registers Register Symbol Function Address AIUIBALREG AIU IN DMA base address lower register 0x000 AIUIBAHREG AIU IN DMA base address higher register 0x002 AIUIALREG AIU IN DMA address lower register 0x004 AIUIAHREG AIU IN DMA address higher register 0x006 AIUOBALREG AIU OUT DMA base address lower register...
Page 32
CHAPTER 1 OVERVIEW Table 1-8. PIU Registers Register Symbol Function Address PIUCNTREG PIU control register 0x0A2 PIUINTREG PIU interrupt register 0x0A4 PIUSIVLREG PIU data sampling period setting register 0x0A6 PIUSTBLREG PIU A/D converter delay time setting register 0x0A8 PIUCMDREG PIU A/D command register 0x0AA PIUASCNREG PIU A/D port scan register...
Page 33
CHAPTER 1 OVERVIEW Table 1-9. AIU Registers Register Symbol Function Address MDMADATREG MIC DMA data register 0x0E0 SDMADATREG Speaker DMA data register 0x0E2 SODATREG Speaker output data register 0x0E6 SCNTREG Speaker output control register 0x0E8 SCNVRREG Speaker conversion rate register 0x0EA MIDATREG MIC input data register...
Page 34
CHAPTER 1 OVERVIEW Table 1-11. PS2CH1 Registers Register Symbol Function Address PS2CH1DATA PS/2 channel 1 transmission/reception data register 0x120 PS2CH1CTRL PS/2 channel 1 control register 0x122 PS2CH1RST PS/2 channel 1 reset register 0x124 Remark The sum of a value in the Address column added to the base address that is set according to the BADR register of the BCU will be the physical address.
Page 35
CHAPTER 1 OVERVIEW Table 1-13. CARDU Configuration Registers (1/2) Register Symbol Function Offset Address Vendor ID register 0x00 to 0x01 Device ID register 0x02 to 0x03 PCICMD PCI command register 0x04 to 0x05 PCISTS PCI device status register 0x06 to 0x07 Revision ID register 0x08 CLASSC...
Page 36
CHAPTER 1 OVERVIEW Table 1-13. CARDU Configuration Registers (2/2) Register Symbol Function Offset Address INTL Interrupt line register 0x3C INTP Interrupt pin register 0x3D BRGCNT Bridge control register 0x3E to 0x3F SUBVID Subsystem vendor ID register 0x40 to 0x41 SUBID Subsystem ID register 0x42 to 0x43 PC16BADR...
Page 37
CHAPTER 1 OVERVIEW Table 1-14. ExCA Registers (1/2) Register Symbol Function Offset Address PCI Memory ExCA ID_REV ID/revision register 0x800 0x00 IF_STATUS Interface status register 0x801 0x01 PWR_CNT Power control register 0x802 0x02 INT_GEN_CNT Interrupt/general-purpose control register 0x803 0x03 CARD_SC Card status change register 0x804 0x04...
Page 40
CHAPTER 1 OVERVIEW Table 1-17. USB Host Control Configuration Registers Name Offset Address Vendor ID register 0x00 Device ID register 0x02 Command register 0x04 Status register 0x06 Revision ID register 0x08 Class code base address register 0x09 Class code sub class register Class code programming interface register Cache line size register 0x0C...
Page 41
CHAPTER 1 OVERVIEW Table 1-18. Host Control Operational Registers Register Symbol Function Offset Address HcRevision HC revision register 0x00 HcControl HC control register 0x04 HcCommandStatus HC command register 0x08 HcInterruptStatus HC interrupt request detection register 0x0C HcInterruptEnable HC interrupt request enable register 0x10 HcInterruptDisable HC interrupt request disable register...
Page 42
CHAPTER 1 OVERVIEW Table 1-19. AC97U PCI Configuration Registers Register Symbol Function Offset Address Vendor ID register 0x00 to 0x01 Device ID register 0x02 to 0x03 PCICMD PCI command register 0x04 to 0x05 PCISTS PCI device status register 0x06 to 0x07 Revision ID register 0x08 CLASSC...
CHAPTER 2 PIN FUNCTIONS This chapter describes the pin functions of the V 4173. Pin Configuration • 304-pin plastic FBGA (19 × 19) µ PD31173F1-33-HN1 Bottom View Top View Index mark User’s Manual U14579EJ2V0UM...
Page 48
CHAPTER 2 PIN FUNCTIONS Pin Identification ACLINKRST#: AC-Link Reset DAAV Analog Reference Voltage for AD(31:0): Address/Data Bus D/A Converter ADAGND: A/D Converter Analog Ground DEVSEL#: Device Select ADAV A/D Converter Analog V DN1, DN2: Data Negative ADAV Analog Reference Minus DP1, DP2: Data Positive Voltage for A/D Converter...
Page 49
CHAPTER 2 PIN FUNCTIONS SERR#: System Error TRDY#: Target Ready STOP#: Stop Power Supply for I/O Buffer SYNC: Synchronization Power Supply Internal Circuit TEST(3:0): Test VRCINT: Series Companion Chip TESTC: Test Clock Interrupt TPEN: Touch Panel Interface Enable VS11#, VS12#, TPX(1:0): Touch Panel Interface VS21#, VS22#:...
CHAPTER 2 PIN FUNCTIONS Pin Function Lists 2.2.1 PCI bus interface signals Table 2-1. PCI Bus Interface Signals Signal Name Function AD(31:0) This is a 32-bit bus that multiplexes the address bus and data bus. CBE(3:0)# This is a signal that multiplexes the bus command and byte enable signals. IDSEL This is an initialization device selection signal (for a PCI multifunction device).
CHAPTER 2 PIN FUNCTIONS 2.2.4 PC card interface signals Table 2-4. PC Card Interface Signals Signal Name Function C1A(25:0) This is the PC card slot 1 address bus. C1D(15:0) This is the PC card slot 1 data bus. CE1(2:1)# This is the PC card slot 1 chip select signal. CD1(2:1)# This is the PC card slot 1 card detect signal.
Page 52
CHAPTER 2 PIN FUNCTIONS Table 2-5. Correspondence of Signal Names for Each PC Card Interface Mode (1/2) 4173 16-Bit PC Card Slot 1 Slot 2 Memory Card I/O Card C1A25 C2A25 C1A24 C2A24 C1A23 C2A23 C1A22 C2A22 C1A21 C2A21 C1A20 C2A20 C1A19 C2A19...
Page 53
CHAPTER 2 PIN FUNCTIONS Table 2-5. Correspondence of Signal Names for Each PC Card Interface Mode (2/2) 4173 16-Bit PC Card Slot 1 Slot 2 Memory Card I/O Card C1D5 C2D5 C1D4 C2D4 C1D3 C2D3 C1D2 C2D2 C1D1 C2D1 C1D0 C2D0 CE12# CE22#...
CHAPTER 2 PIN FUNCTIONS 2.2.5 Keyboard interface signals Table 2-6. Keyboard Interface Signals Signal Name Function KPORT(7:0)/GPIO(15:8) These are keyboard scan data input signals. They are used to scan for pressed keys on the keyboard. When these are used as KPORT signals, external pull-down resistors are required. When these are not used as KPORT signals, they can be used as general-purpose I/O ports.
CHAPTER 2 PIN FUNCTIONS 2.2.7 Touch panel interface signals Table 2-8. Touch Panel Interface Signals Signal Name Function TPX(1:0)/GPIO(17:16) These are touch panel I/O signals. The coordinates at which the touch panel was pressed are detected by applying voltage to the X coordinate and inputting the voltage of the Y coordinate.
CHAPTER 2 PIN FUNCTIONS 2.2.10 Interrupt interface signal Table 2-11. Interrupt Interface Signal Signal Name Function VRCINT This is an integrated interrupt request signal to the CPU. 2.2.11 Clock interface signals Table 2-12. Clock Interface Signals Signal Name Function PCLK This is the 33 MHz clock input signal.
CHAPTER 2 PIN FUNCTIONS 2.2.13 Power supplies and grounds Table 2-15. A/D Converter Power Supplies and Grounds Signal Name Function ADAV This signal is for the dedicated analog power supply for the A/D converter. ADAGND This signal is for the dedicated analog ground for the A/D converter. ADDV This signal is for the dedicated digital power supply for the A/D converter.
CHAPTER 2 PIN FUNCTIONS Pin Status and Recommended Connection Examples Table 2-18 shows the status of the pins when the V 4173 is reset (when the PCIRST# signal is at low level) and examples of recommended, logically required pin processing. Table 2-18.
Page 59
CHAPTER 2 PIN FUNCTIONS Table 2-18. Pin Status and Recommended Connection Examples (2/4) Pin Name Drive Withstand Internal External Status After Note 1 Capacity (mA) Voltage (V) Processing Processing Reset − − CARDU1 C1A(25:23) Hi-Z − C1A(22:20) Pull-up Hi-Z − −...
Page 60
CHAPTER 2 PIN FUNCTIONS Table 2-18. Pin Status and Recommended Connection Examples (3/4) Pin Name Drive Withstand Internal External Status After Note 1 Capacity (mA) Voltage (V) Processing Processing Reset − − CARDU2 C2A(15:23) Hi-Z − C2A(22:20) Pull-up Hi-Z − −...
Page 61
CHAPTER 2 PIN FUNCTIONS Table 2-18. Pin Status and Recommended Connection Examples (4/4) Pin Name Drive Withstand Internal External Status After Capacity (mA) Voltage (V) Processing Processing Reset − Note 1 KIU/PS2U KPORT(7:0)/ Pull-up Hi-Z GPIO(15:8) − − Note 2 KSCAN11/PS2DATA1 Hi-Z −...
CHAPTER 2 PIN FUNCTIONS Clock Oscillator Connection Figure 2-1. External Circuit of Clock Oscillator (a) Crystal oscillation (b) External clock 4173 4173 CLK48MX1 External clock CLK48MX1 Open CLK48MX2 CLK48MX2 Cautions 1. When using a clock oscillator, wire as follows in the area enclosed by the broken lines in the above figure to avoid an adverse effect from wiring capacitance.
Page 63
CHAPTER 2 PIN FUNCTIONS Figure 2-2. Examples of Improperly Connected Resonators (a) Connection circuit wiring is too long (b) Signal lines are crossed GND CLK48MX1 CLK48MX2 GND CLK48MX1 CLK48MX2 (c) A high fluctuating current flows near (d) A current flows over the ground line of the oscillator the signal line (the potentials of points A, B, and C change) GND CLK48MX1 CLK48MX2...
CHAPTER 3 BCU (BUS CONTROL UNIT) General The BCU controls the PIB (Peripheral Internal Bus), which is an internal bus. The DMAAU, DCU, CMU, ICU, GIU, PIU, AIU, KIU, PS2CH1, PS2CH2, and ADU are connected to the PIB. Register Set Table 3-1 lists the BCU configuration registers.
Name VID7 VID6 VID5 VID4 VID3 VID2 VID1 VID0 After reset Name Function 15:0 VID(15:0) Vendor ID 0x1033: NEC 3.2.2 DID (offset address: 0x02 to 0x03) Name DID15 DID14 DID13 DID12 DID11 DID10 DID9 DID8 After reset Name DID7 DID6...
CHAPTER 3 BCU (BUS CONTROL UNIT) 3.2.3 PCICMD (offset address: 0x04 to 0x05) Name FBTB_EN SERR_EN After reset Name AD_STEP PERR_EN VGA_P_ MEMW_ SP_CYC MASTER_ MEM_EN IO_EN SNOOP INV_EN After reset Name Function 15:10 Reserved. Write 0 to these bits. 0 is returned after a read. FBTB_EN Enables/disables fast Back to Back.
CHAPTER 3 BCU (BUS CONTROL UNIT) 3.2.4 PCISTS (offset address: 0x06 to 0x07) Name DETECT_ SIG_SERR SIG_ DEVSEL1 DEVSEL0 DETECT_ PERR MABORT TABORT TABOT D_PERR After reset Name FBTB_CAP After reset Name Function DETECT_PERR Data and address parity error detection. Cleared to 0 when 1 is written. 1: Detected 0: Not detected SIG_SERR...
CHAPTER 3 BCU (BUS CONTROL UNIT) 3.2.12 SUBVID (offset address: 0x2C to 0x2D) Name SUBVID15 SUBVID14 SUBVID13 SUBVID12 SUBVID11 SUBVID10 SUBVID9 SUBVID8 After reset Name SUBVID7 SUBVID6 SUBVID5 SUBVID4 SUBVID3 SUBVID2 SUBVID1 SUBVID0 After reset Name Function 15:0 SUBVID(15:0) Subsystem vendor ID This is a vendor identification number to be used for recognizing the system or option card.
CHAPTER 3 BCU (BUS CONTROL UNIT) 3.2.14 INTL (offset address: 0x3C) Name INTL7 INTL6 INTL5 INTL4 INTL3 INTL2 INTL1 INTL0 After reset Name Function INTL(7:0) Sets the interrupt request line. Since this function is not supported by the BCU, settings for these bits are invalid. Use the ICU to set the interrupt request line.
CHAPTER 3 BCU (BUS CONTROL UNIT) 3.2.17 MAX_LAT (offset address: 0x3F) Name MAX_LAT7 MAX_LAT6 MAX_LAT5 MAX_LAT4 MAX_LAT3 MAX_LAT2 MAX_LAT1 MAX_LAT0 After reset Name Function MAX_LAT(7:0) Maximum delay time until a response is returned when the PCI bus usage right is requested.
CHAPTER 3 BCU (BUS CONTROL UNIT) 3.2.19 IDSELNUM (offset address: 0x41) Name C2IDSEL1 C2IDSEL0 C1IDSEL1 C1IDSEL0 After reset Name Function Reserved. Write 0 to these bits. 0 is returned after a read. C2IDSEL(1:0) Selects the IDSEL signal of CARDU2 (PC card channel 2). 11: Reserved 10: Selects the AD25 signal as the IDSEL signal.
CHAPTER 4 DMAAU (DMA ADDRESS UNIT) General The DMAAU register controls the DMA addresses for the AIU. The DMA channel used for each unit can set a DMA start address as any half-word address in the physical address from 0x0000 0000 to 0xFFFF FFFE, and is retained in DRAM as a 2 KB block that starts at the address which is generated by masking the lower 10 bits of the DMA start address.
CHAPTER 4 DMAAU (DMA ADDRESS UNIT) Register Set Table 4-1 lists the DMAAU registers. Table 4-1. DMAAU Registers Address Register Symbol Function BASE + 0x000 AIUIBALREG AIU IN DMA Base Address Register Low BASE + 0x002 AIUIBAHREG AIU IN DMA Base Address Register High BASE + 0x004 AIUIALREG AIU IN DMA Address Register Low...
CHAPTER 5 DCU (DMA CONTROL UNIT) General The DCU register is used for DMA control. Specifically, it controls acknowledgment from the BCU that handles bus arbitration and DMA requests from the on-chip peripheral I/O unit (AIU). It also controls DMA enable/disable settings. DMA Priority Control When a conflict occurs between DMA requests sent from on-chip peripheral I/O unit, the following priority levels are used to resolve the conflict.
CHAPTER 5 DCU (DMA CONTROL UNIT) 5.3.1 DMARSTREG (base address + 0x020) Name After reset Name DMARST After reset Name Function 15:1 Reserved. Write 0 to these bits. 0 is returned after a read. DMARST Reset DMA controller 1: Reset 0: Normal This register is used to reset the DMA controller.
CHAPTER 5 DCU (DMA CONTROL UNIT) 5.3.3 DMASENREG (base address + 0x024) Name After reset Name DMASEN After reset Name Function 15:1 Reserved. Write 0 to these bits. 0 is returned after a read. DMASEN Enable DMA sequencer 1: Enable 0: Disable This register is used to enable/disable the DMA sequencer.
CHAPTER 5 DCU (DMA CONTROL UNIT) 5.3.4 DMAMSKREG (base address + 0x026) Name After reset Name DMAMSKA DMAMSKA After reset Name Function 15:4 Reserved. Write 0 to these bits. 0 is returned after a read. DMAMSKAIN Audio input DMA transfer enable/disable 1: Enable 0: Disable DMAMSKAOUT...
CHAPTER 5 DCU (DMA CONTROL UNIT) 5.3.5 DMAREQREG (base address + 0x028) Name After reset Name DRQAIN DRQAOUT After reset Name Function 15:4 Reserved. Write 0 to these bits. 0 is returned after a read. DRQAIN Audio input DMA transfer request 1: Request pending 0: No request DRQAOUT...
CHAPTER 6 CMU (CLOCK MASK UNIT) General As various input clocks are supplied from the CPU to each unit, a masking method enables power consumption to be curtailed in units that are not used. The units for which this masking method are used are the USBU, CARDU1, CARDU2, KIU, PIU, AIU, PS2CH1, PS2CH2, and AC97U units.
CHAPTER 6 CMU (CLOCK MASK UNIT) Register Set Table 6-1 lists the CMU registers. Table 6-1. CMU Registers Address Register Symbol Function BASE + 0x040 CMUCLKMSK CMU Clock Mask Register BASE + 0x042 CMUSRST CMU Soft Reset Register Remark BASE: Base address. This is set by using the BADR register of the BCU (see 3.2.11). These registers are described in detail below.
Page 88
CHAPTER 6 CMU (CLOCK MASK UNIT) (2/2) Name Function MSKCARD1 Supply/mask PCICLK to CARDU2 unit 1: Supply 0: Mask MSKUSB Supply/mask PCICLK to USBU unit 1: Supply 0: Mask MSKPS2CH2 Supply/mask TClock to PS2CH2 unit 1: Supply 0: Mask MSKPS2CH1 Supply/mask TClock to PS2CH1 unit 1: Supply 0: Mask...
CHAPTER 6 CMU (CLOCK MASK UNIT) 6.2.2 CMUSRST (base address + 0x042) Name After reset Note Note Name AC97RST CARD2RST CARD1RST USBRST After reset Name Function 15:4 Reserved. Write 0 to these bits. 0 is returned after a read. AC97RST Soft reset to AC97U unit 1: Soft reset 0: Soft reset released...
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) General The ICU collects interrupt requests from the various on-chip peripheral units and transfers these interrupt request signals to the CPU. The functions of the ICU’s internal blocks are briefly described below. • ADDECICU … Decodes read/write addresses from the CPU that are used for ICU registers. •...
Page 92
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) The VRCINT signal (interrupt request signal) output timing and the timing of the status change of each interrupt status register are described below. In the ICU, the sampling clock differs depending on the interrupt source. The assignment of sampling clock and interrupt sources are shown in the following table.
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) Figure 7-3. Time Lag Until Status Change Is Reflected in VRCINT Signal (When Sampling with PCLK) PCLK (input) SCLK (input) Internal interrupt source change Reflection in ICU status register VRCINT internal synchronization VRCINT (output) Remark a: The time between when the internal interrupt source changes and when this change is reflected in the ICU status register (MAX.
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.1 SYSINT1REG (base address + 0x060) (1/2) Name DOZE AC97INTR1 AC97INTR GIUINTR PIUINTR After reset Name KIUINTR AIUINTR PIUINTR PS2CH1 PS2CH2 PCMCIA1 PCMCIA2 USBINTR INTR INTR INTR INTR After reset Name Function 15:14 Reserved. Write 0 to these bits. 0 is returned after a read. DOZEPIUINTR PIU interrupt request during Suspend mode 1: Occurred...
Page 95
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) (2/2) Name Function PCMCIA1INTR PCMCIA1 interrupt request 1: Occurred 0: Normal PCMCIA2INTR PCMCIA2 interrupt request 1: Occurred 0: Normal USBINTR USB interrupt request 1: Occurred 0: Normal This register indicates when various interrupt requests occur in the V 4173 system.
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.2 PIUINTREG (base address + 0x062) Name After reset Name PADCMD PADADP PADPAGE1 PADPAGE0 PADDLO PENCHG INTR INTR INTR INTR STINTR INTR After reset Name Function 15:7 Reserved. Write 0 to these bits. 0 is returned after a read. PADCMDINTR PIU command scan interrupt request.
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.3 AIUINTREG (base address + 0x064) Name INTMEND INTM INTMIDLE INTMST After reset Name INTSEND INTS INTSIDLE After reset Name Function 15:12 Reserved. Write 0 to these bits. 0 is returned after a read. INTMEND Audio input (MIC) DMA buffer 2 page interrupt request 1: Occurred...
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.4 KIUINTREG (base address + 0x066) Name After reset Name KDATLOST KDATRDY SCANINT After reset Name Function 15:3 Reserved. Write 0 to these bits. 0 is returned after a read. KDATLOST Key scan data lost interrupt request 1: Occurred 0: Normal KDATRDY...
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.5 GIULINTREG (base address + 0x068) Name INTS15 INTS14 INTS13 INTS12 INTS11 INTS10 INTS9 INTS8 After reset Name INTS7 INTS6 INTS5 INTS4 INTS3 INTS2 INTS1 INTS0 After reset Name Function 15:0 INTS(15:0) Interrupt request input to GPIO(15:0) pin 1: Occurred 0: Normal This register indicates when various GIU-related interrupt requests occur.
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.7 MSYSINT1REG (base address + 0x06C) (1/2) Name DOZE AC97INTR1 AC97INTR GIUINTR PIUINTR After reset Name KIUINTR AIUINTR PIUINTR PS2CH1 PS2CH2 PCMCIA1 PCMCIA2 USBINTR INTR INTR INTR INTR After reset Name Function 15:14 Reserved. Write 0 to these bits. 0 is returned after a read. DOZEPIUINTR PIU interrupt enable during Suspend mode 1: Enabled...
Page 101
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) (2/2) Name Function PCMCIA1INTR PCMCIA1 interrupt enable 1: Enabled 0: Disabled PCMCIA2INTR PCMCIA2 interrupt enable 1: Enabled 0: Disabled USBINTR USB interrupt enable 1: Enabled 0: Disabled This register is used to mask various interrupt requests that occur in the V 4173 system.
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.8 MPIUINTREG (base address + 0x06E) Name After reset Name PADCMD PADADP PADPAGE1 PADPAGE0 PADDLO PENCHG INTR INTR INTR INTR STINTR INTR After reset Name Function 15:7 Reserved. Write 0 to these bits. 0 is returned after a read. PADCMDINTR PIU command scan interrupt enable 1: Enabled...
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.9 MAIUINTREG (base address + 0x070) Name INTMEND INTM INTMIDLE INTMST After reset Name INTSEND INTS INTSIDLE After reset Name Function 15:12 Reserved. Write 0 to these bits. 0 is returned after a read. INTMEND Audio input (MIC) DMA buffer 2 page interrupt enable 1: Enabled...
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.10 MKIUINTREG (base address + 0x072) Name After reset Name KDAT KDAT SCAN LOST After reset Name Function 15:3 Reserved. Write 0 to these bits. 0 is returned after a read. KDATLOST Key scan data lost interrupt enable 1: Enabled 0: Disabled KDATRDY...
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) 7.2.11 MGIULINTREG (base address + 0x074) Name INTS15 INTS14 INTS13 INTS12 INTS11 INTS10 INTS9 INTS8 After reset Name INTS7 INTS6 INTS5 INTS4 INTS3 INTS2 INTS1 INTS0 After reset Name Function 15:0 INTS(15:0) GPIO(15:0) pin interrupt input enable 1: Enabled 0: Disabled This register is used to mask various GIU-related interrupt requests.
CHAPTER 7 ICU (INTERRUPT CONTROL UNIT) Notes for Register Setting There is no register setting flow in relation to the ICU. With regard to the interrupt mask registers, the initial setting is “initial = 0 = mask” after setting. Therefore, enough masks must be cleared to provide sufficient interrupts for the CPU’s start-up processing.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) General The GIU controls the GPIO(20:0) pins. GPIO is a general-purpose port for which input and output are available. An interrupt request signal input function can be assigned to GPIO with input signal change (rising edge or falling edge of signal), low level, or high level used as the trigger.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) Register Set Table 8-2 lists the GIU registers. Table 8-2. GIU Registers Address Register Symbol Function BASE + 0x080 GIUDIRL GPIO I/O Select Register L BASE + 0x082 GIUDIRH GPIO I/O Select Register H BASE + 0x084 GIUPIODL GPIO Port I/O Data Register L...
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.1 GIUDIRL (base address + 0x080) Name IOS15 IOS14 IOS13 IOS12 IOS11 IOS10 IOS9 IOS8 After reset Name IOS7 IOS6 IOS5 IOS4 IOS3 IOS2 IOS1 IOS0 After reset Name Function 15:0 IOS(15:0) GPIO(15:0) pin I/O select 1: Output 0: Input This register is used to set I/O modes for GPIO(15:0) pins.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.2 GIUDIRH (base address + 0x082) Name After reset Name IOS20 IOS19 IOS18 IOS17 IOS16 After reset Name Function 15:5 Reserved. Write 0 to these bits. 0 is returned after a read. IOS(20:16) GPIO(20:16) pin I/O select 1: Output 0: Input This register is used to set I/O modes for GPIO(20:16) pins.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.3 GIUPIODL (base address + 0x084) Name PIOD15 PIOD14 PIOD13 PIOD12 PIOD11 PIOD10 PIOD9 PIOD8 After reset Name PIOD7 PIOD6 PIOD5 PIOD4 PIOD3 PIOD2 PIOD1 PIOD0 After reset Name Function 15:0 PIOD(15:0) GPIO(15:0) pin output data specification 1: High 0: Low This register is used to read GPIO(15:0) pins and write data.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.4 GIUPIODH (base address + 0x086) Name After reset Name PIOD20 PIOD19 PIOD18 PIOD17 PIOD16 After reset Name Function 15:5 Reserved. Write 0 to these bits. 0 is returned after a read. PIOD(20:16) GPIO(20:16) pin output data specification 1: High 0: Low This register is used to read GPIO(20:16) pins and write data.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.5 GIUINTSTATL (base address + 0x088) Name INTS15 INTS14 INTS13 INTS12 INTS11 INTS10 INTS9 INTS8 After reset Name INTS7 INTS6 INTS5 INTS4 INTS3 INTS2 INTS1 INTS0 After reset Name Function 15:0 INTS(15:0) Interrupt to GPIO(15:0) pins. Cleared to 0 when 1 is written. 1: Interrupt occurred 0: No interrupt This register indicates the interrupt status of GPIO(15:0) pins.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.6 GIUINTSTATH (base address + 0x08A) Name After reset Name INTS20 INTS19 INTS18 INTS17 INTS16 After reset Name Function 15:5 Reserved. Write 0 to these bits. 0 is returned after a read. INTS(20:16) Interrupt to GPIO(20:16) pins. Cleared to 0 when 1 is written. 1: Interrupt occurred 0: No interrupt This register indicates the interrupt status of GPIO(20:16) pins.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.7 GIUINTENL (base address + 0x08C) Name INTE15 INTE14 INTE13 INTE12 INTE11 INTE10 INTE9 INTE8 After reset Name INTE7 INTE6 INTE5 INTE4 INTE3 INTE2 INTE1 INTE0 After reset Name Function 15:0 INTE(15:0) Interrupt enable to GPIO(15:0) pins 1: Interrupt enable 0: Interrupt disable This register is used to set interrupt enable status for GPIO(15:0) pins.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.9 GIUINTTYPL (base address + 0x090) Name INTT15 INTT14 INTT13 INTT12 INTT11 INTT10 INTT9 INTT8 After reset Name INTT7 INTT6 INTT5 INTT4 INTT3 INTT2 INTT1 INTT0 After reset Name Function 15:0 INTT(15:0) Interrupt request detection trigger 1: Edge 0: Level This register is used to set the trigger to detect an interrupt request for GPIO(15:0) pins.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.10 GIUINTTYPH (base address + 0x092) Name After reset Name INTT20 INTT19 INTT18 INTT17 INTT16 After reset Name Function 15:5 Reserved. Write 0 to these bits. 0 is returned after a read. INTT(20:16) Interrupt request detection trigger 1: Edge 0: Level This register is used to set the trigger to detect an interrupt request for GPIO(20:16) pins.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.11 GIUINTALSELL (base address + 0x094) Name INTL15 INTL14 INTL13 INTL12 INTL11 INTL10 INTL9 INTL8 After reset Name INTL7 INTL6 INTL5 INTL4 INTL3 INTL2 INTL1 INTL0 After reset Name Function 15:0 INTL(15:0) Interrupt request detection level 1: High active 0: Low active This register is used to set the active level when using the level detection method for interrupts to GPIO(15:0)
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.12 GIUINTALSELH (base address + 0x096) Name After reset Name INTL20 INTL19 INTL18 INTL17 INTL16 After reset Name Function 15:5 Reserved. Write 0 to these bits. 0 is returned after a read. INTL(20:16) Interrupt request detection level 1: High active 0: Low active This register is used to set the active level when using the level detection method for interrupts to GPIO(20:16)
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.13 GIUINTHTSELL (base address + 0x098) Name INTH15 INTH14 INTH13 INTH12 INTH11 INTH10 INTH9 INTH8 After reset Name INTH7 INTH6 INTH5 INTH4 INTH3 INTH2 INTH1 INTH0 After reset Name Function 15:0 INTH(15:0) GPIO(15:0) pin interrupt signal hold/through 1: Hold 0: Through This register is used to set whether or not interrupt signals to the GPIO(15:0) pins should be held.
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.14 GIUINTHTSELH (base address + 0x09A) Name After reset Name INTH20 INTH19 INTH18 INTH17 INTH16 After reset Name Function 15:5 Reserved. Write 0 to these bits. 0 is returned after a read. INTH(20:16) GPIO(20:16) pin interrupt signal hold/through 1: Hold 0: Through This register is used to set whether or not interrupt signals to the GPIO(20:16) pins should be held.
Page 122
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) The relationship between settings of GPIO interrupts enable/disable and hold/through is shown in Table 8-3. Table 8-3. Correspondences Between Interrupt Mask and Interrupt Hold Interrupt Setting of Setting of GIUINTEN Hold in GIU Notation to ICU Trigger GIUINTHTSEL Register Register...
CHAPTER 8 GIU (GENERAL-PURPOSE I/O UNIT) 8.2.15 SELECTREG (base address + 0x09E) Name After reset Name SEL3 SEL2 SEL1 SEL0 After reset Name Function 15:4 Reserved. Write 0 to these bits. 0 is returned after a read. SEL3 Function selection of TPEN/GPIO20, TPY(1:0)/GPIO(19:18), TPX(1:0)/GPIO(17:16) pins 1: Used as GPIO(20:16) pins 0: Used as TPEN, TPY(1:0), TPX(1:0) pins...
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) General The PIU uses an on-chip A/D converter and detects the X and Y coordinates of pen contact locations on the touch panel and scans the general-purpose A/D input port. Since the touch panel control circuit and the A/D converter (conversion precision: 12 bits) are both on-chip, the touch panel is connected directly to the V 4173.
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) 9.1.1 Block diagrams Figure 9-1. PIU Peripheral Block Diagram 4173 Digital I/O buffer Touch panel TPX0 TPX1 TPY0 TPY1 TPEN touchen A/D converter ADIN 10 k Ω AUDIOIN Analog input buffer Remark When Tr1 is ON, pull down the TPY1 signal. When Tr1 is OFF, leave the TPY1 signal open.
Page 127
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) • Touch panel A set of four pins are located at the edges of the X-axis and Y-axis resistance layers, and the two layers have high resistance when there is no pen contact and low resistance when there is pen contact. The resistance between the two edges of the resistance layers is about 1 kΩ.
Page 128
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) Figure 9-3. PIU Internal Block Diagram 4173 (internal) Internal bus Internal bus Scan sequencer controller PIU registers Touch panel Touch panel interface controller A/D converter General-purpose A/D port, Audio input port The PIU includes three blocks: an internal bus controller, a scan sequencer, and a touch panel interface controller. (1) Internal bus controller The internal bus controller controls the internal bus, the PIU registers, and interrupts and performs serial/parallel conversion of data from the A/D converter.
Page 130
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) (4) CmdScan state When in this state, the A/D converter operates using various settings. Voltage data from one port only is fetched based on a combination of the touch panel I/O signal setting (TPX(1:0), TPY(1:0)) and the selection of an input port (ADX, ADY, AUDIOIN, ADIN) connected to the A/D converter.
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) Register Set Table 9-1 lists the PIU registers. Table 9-1. PIU Registers Address Register Symbol Function BASE + 0x0A2 PIUCNTREG PIU Control register BASE + 0x0A4 PIUINTREG PIU Interrupt cause register BASE + 0x0A6 PIUSIVLREG PIU Data sampling interval register BASE + 0x0A8...
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) 9.3.1 PIUCNTREG (base address + 0x0A2) (1/2) Name PENSTC PADSTATE2 PADSTATE1 PADSTATE0 PADAT PADAT STOP START After reset Name PADSCAN PADSCAN PADSCAN PIUMODE1 PIUMODE0 PIUSEQEN PIUPWR PADRST STOP START TYPE After reset Name Function 15:14 Reserved.
Page 133
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) (2/2) Name Function PIUMODE(1:0) PIU mode setting 11: Reserved 10: Reserved 01: Operate A/D converter using any command 00: Sample coordinate data PIUSEQEN Scan sequencer operation enable 1: Enable 0: Disable PIUPWR PIU power mode setting 1: Set PIU output as active and change to standby mode 0: Set panel to touch detection state and shift to PIU operation stop enabled mode PADRST...
Page 134
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) Table 9-2. PIUCNTREG Register Bit Manipulation and States PIUCNTREG Bit Scan Sequencer’s State Manipulation Disable Standby WaitPenTouch PenDataScan 0 → 1 − Note 1 PADRST Disable Disable Disable 0 → 1 × × PIUPWR Standby 1 →...
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) 9.3.2 PIUINTREG (base address + 0x0A4) Name After reset Name PADCMD PADADP PADPAGE1 PADPAGE0 PADDLOST PENCHG INTR INTR INTER INTER INTR INTR After reset Name Function Valid page ID bit (older valid page) 1: Valid data older than page 1 buffer data is retained 0: Valid data older than page 0 buffer data is retained 14:7...
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) Caution In the Suspend mode, the V 4173 retains the touch panel state. Therefore, if the Suspend mode has been entered while the touch panel is touched, the contact state may be mistakenly recognized as having changed, when the Fullspeed mode returns.
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) 9.3.4 PIUSTBLREG (base address + 0x0A8) Name After reset Name STABLE5 STABLE4 STABLE3 STABLE2 STABLE1 STABLE0 After reset Name Function 15:6 Reserved. Write 0 to these bits. 0 is returned after a read. STABLE(5:0) Panel applied voltage stabilization standby time (PenDataScan, CmdScan state) A/D scan timeout time (ADPortScan state)
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) 9.3.5 PIUCMDREG (base address + 0x0AA) Name STABLEON TPYEN1 TPYEN0 TPXEN1 TPXEN0 After reset Name TPYD1 TPYD0 TPXD1 TPXD0 ADCMD3 ADCMD2 ADCMD1 ADCMD0 After reset Name Function 15:13 Reserved. Write 0 to these bits. 0 is returned after a read. STABLEON Touch panel applied voltage stabilization time set during command scan (STABLE(5:0) area of PIUSTBLREG register) enable...
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) 9.3.6 PIUASCNREG (base address + 0x0B0) Name After reset Name TPPSCAN ADPS START After reset Name Function 15:2 Reserved. Write 0 to these bits. 0 is returned after a read. Port selection for ADPortScan TPPSCAN 1: Select ADX, ADY (for touch panel) as A/D port 0: Select ADIN (general-purpose) as A/D port and AUDIOIN as audio input port...
Page 140
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) Table 9-3. PIUASCNREG Register Bit Manipulation and States PIUASCNREG Bit Scan Sequencer’s State Manipulation Disable Standby WaitPenTouch PenDataScan Note 0 → 1 × × × ADPSSTART ADPortScan 1 → 0 × × × Disable 0 →...
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) 9.3.7 PIUAMSKREG (base address + 0x0B2) Name After reset Name AUDINM ADINM ADYM ADXM After reset Name Function 15:8 Reserved. Write 0 to these bits. 0 is returned after a read. AUDINM Audio input port mask 1: Mask 0: Normal Reserved.
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) Status Transfer Flow Be sure to reset the PIU before operating the scan sequencer. Setting initial values via a reset sets particular values for the sequence interval, etc., that are required. The following registers require initial settings. SCANINTVAL(10:0) area in PIUSITVLREG register STABLE(5:0) area in PIUSTBLREG register Interrupt mask cancellation settings are required for registers other than the PIU registers.
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) Relationships Among TPX, TPY, ADX, ADY, TPEN, ADIN, and AUDIOIN Pins and States Table 9-7. Relationships Among TPX, TPY, ADX, ADY, TPEN, ADIN, and AUDIOIN Pins and States State PADSTATE(2:0) TPX1(ADX), TPY1(ADY), TPEN AUDIOIN, TPX0 TPY0...
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) Timing 9.6.1 Touch/release detection timing Touch/release detection does not use the A/D converter but instead uses the voltage level of the TPY1 pin to determine the panel’s touch/release state. The following figure shows a touch/release detection timing diagram. Figure 9-6.
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) Data Lost Generation Conditions The PIU issues a data lost interrupt when any of the following four conditions exist. Data for one coordinate has not been obtained within the interval period The A/D port scan has not been completed within the time set via PIUSTBLREG register Transfer of the next coordinate data has begun while valid data for both pages remains in the buffer The next data transfer starts while there is valid data in the ADPortScan buffer Once a data lost interrupt occurs, the sequencer is forcibly changed to the Standby state.
Page 151
CHAPTER 9 PIU (TOUCH PANEL INTERFACE UNIT) (3) When transfer of the next coordinate data has begun while valid data for both pages remains in the buffer (a) Cause This condition is caused when the data buffer contains two pages of valid data (both the data buffer page 1 and data buffer page 0 interrupts have occurred) but the valid data has not been processed.
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.1 General The AIU supports speaker output and MIC input. The settings related to A/D converter and D/A converter are also performed by AIU. The resolution of the D/A converter used for a speaker is 10 bits, and the resolution of the A/D converter used for a microphone is 12 bits.
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.1 MDMADATREG (base address + 0x0E0) Name MDMA11 MDMA10 MDMA9 MDMA8 After reset Name MDMA7 MDMA6 MDMA5 MDMA4 MDMA3 MDMA2 MDMA1 MDMA0 After reset Name Function 15:12 Reserved. Write 0 to these bits. 0 is returned after a read. 11:0 MDMA(11:0) MIC input DMA data...
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.3 SODATREG (base address + 0x0E6) Name SODAT9 SODAT8 After reset Name SODAT7 SODAT6 SODAT5 SODAT4 SODAT3 SODAT2 SODAT1 SODAT0 After reset Name Function 15:10 Reserved. Write 0 to these bits. 0 is returned after a read. SODAT(9:0) Speaker output data This register is used to store 10-bit data for speaker output.
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.4 SCNTREG (base address + 0x0E8) Name DAENAIU After reset Name SSTATE SSTOPEN After reset Name Function DAENAIU This is the speaker D/A (DAAV connection) enable bit. 1: ON 0: OFF 14:4 Reserved. Write 0 to these bits. 0 is returned after a read. SSTATE Indicates speaker operation state 1: In operation...
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.5 SCNVRREG (base address + 0x0EA) Name After reset Name SCNVR2 SCNVR1 SCNVR0 After reset Name Function 15:3 Reserved. Write 0 to these bits. 0 is returned after a read. SCNVR(2:0) D/A conversion rate 111: Reserved 101: Reserved 100: 8 ksps...
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.6 MIDATREG (base address + 0x0F0) Name MIDAT11 MIDAT10 MIDAT9 MIDAT8 After reset Name MIDAT7 MIDAT6 MIDAT5 MIDAT4 MIDAT3 MIDAT2 MIDAT1 MIDAT0 After reset Name Function 15:12 Reserved. Write 0 to these bits. 0 is returned after a read. 11:0 MIDAT(11:0) MIC input data...
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.7 MCNTREG (base address + 0x0F2) Name ADENAIU After reset Name MSTATE MSTOPEN ADREQAIU After reset Name Function ADENAIU This is the MIC A/D (ADAV P connection) enable bit. 1: ON 0: OFF 14:4 Reserved.
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.8 MCNVRREG (base address + 0x0F4) Name After reset Name MCNVR2 MCNVR1 MCNVR0 After reset Name Function 15:3 Reserved. Write 0 to these bits. 0 is returned after a read. MCNVR(2:0) A/D conversion rate 111: Reserved 101: Reserved 100: 8 ksps...
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.9 DVALIDREG (base address + 0x0F8) Name After reset Name SODATV SDMAV MIDATV MDMAV After reset Name Function 15:4 Reserved. Write 0 to these bits. 0 is returned after a read. SODATV This indicates when valid data has been stored in SODATREG register. 1: Valid data exists 0: No valid data SDMAV...
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.10 SEQREG (base address + 0x0FA) Name AIURST After reset Note Note Name AIUMEN AIUSEN After reset Name Function AIURST AIU reset via software 1: Reset 0: Normal 14:5 Reserved. Write 0 to these bits. 0 is returned after a read. Note AIUMEN MIC block operation enable, DMA enable...
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.2.11 INTREG (base address + 0x0FC) Name MENDINTR MINTR MIDLEINTR MSTINTR After reset Name SENDINTR SINTR SIDLEINTR After reset Name Function 15:12 Reserved. Write 0 to these bits. 0 is returned after a read. MIC DMA 2 page interrupt.
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.3 Operation Sequence 10.3.1 Output (Speaker) (1) When using DMA transfer <1> Set D/A conversion rate (SCNVR(2:0) area in SCNVRREG register = any value) <2> Set output data area to DMAAU <3> DMA enable in DCU <4>...
Page 164
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) Figure 10-1. Speaker Output and AUDIOOUT Pin AUDIOOUT <1> <2> <3> <4> <5> <6> <7> <8><9> <10> <11> Time (2) When not using DMA transfer <1> Enable clock supply to AIU in CMU <2> Set D/A conversion rate (SCNVR(2:0) area in SCNVRREG register = any value) <3>...
CHAPTER 10 AIU (AUDIO INTERFACE UNIT) 10.3.2 Input (MIC) <1> Set A/D conversion rate (MCNVR(2:0) area in MCNVRREG register = any value) <2> Set input data area in DMAAU <3> DMA enable in DCU <4> Set A/D converter’s ADAV P to ON (ADENAIU bit of MCNTREG register = 1) MIC power can be set ON and MIC operation can be enabled (AIUMEN bit = 1) without waiting for P resistor stabilization time (about 5 µ...
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) 11.1 General The KIU includes 12 scan lines and 8 detection lines. The number of key inputs to be detected can be selected from 96/80/64, by switching the number of scan lines from 12/10/8. The register can be set to enable the 12 scan lines to be used as a general-purpose I/O port or PS/2 interface signals.
Page 168
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) The data in the KIUDAT00 to KIUDAT05 registers should be read out in the interval time between two key scan operations. Scan interval is set by the KIUWKI register. When data is not read before the next key scan operation starts, the key scan data lost interrupt occurs (see 11.2.6).
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) 11.2.2 KIUSCANREP (base address + 0x110) Name KEYEN STPREP5 STPREP4 After reset Name STPREP3 STPREP2 STPREP1 STPREP0 SCANSTP SCANSTART ATSTP ATSCAN After reset Name Function KEYEN Key scan enable 1: Enable 0: Disable 14:10 Reserved.
Page 170
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) • Key scan stop The SCANSTP bit should be set to 1 when the KIU sequencer stops the key scan operation in Scanning or IntervalNextScan mode. When this bit is set to 1, the key scan operation stops. However, if this bit is set to 1 during a key scan operation, the KIU sequencer stops after the current set of key data is received.
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) 11.2.3 KIUSCANS (base address + 0x112) Name After reset Name SSTAT1 SSTAT0 After reset Name Function 15:2 Reserved. Write 0 to these bits. 0 is returned after a read. SSTAT(1:0) KIU sequencer status 11: Scanning 10: IntervalNextScan 01: WaitKeyIn 00: Stopped...
Page 172
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) • WaitKeyIn: This is the state of waiting for key input in the key auto scan mode. When the ATSCAN bit of the KIUSCANREP register is set to 1 and the KIU sequencer is enabled, key input is Note waited for.
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) 11.2.4 KIUWKS (base address + 0x114) Name T3CNT4 T3CNT3 T3CNT2 T3CNT1 T3CNT0 T2CNT4 T2CNT3 After reset Name T2CNT2 T2CNT1 T2CNT0 T1CNT4 T1CNT3 T1CNT2 T1CNT1 T1CNT0 After reset Name Function Reserved. Write 0 to this bit. 0 is returned after a read. Wait time setting ((T3CNT(4:0) + 1) ×...
Page 174
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) Figure 11-2. KSCAN Signal Status and KPORT Signal Sampling Timing T1CNT T2CNT T3CNT Hi-Z Hi-Z KSCAN1 (output) Hi-Z Hi-Z KSCAN0 (output) Sampling timing KPORT(7:0) (input) User’s Manual U14579EJ2V0UM...
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) 11.2.5 KIUWKI (base address + 0x116) Name WINTVL9 WINTVL8 After reset Name WINTVL7 WINTVL6 WINTVL5 WINTVL4 WINTVL3 WINTVL2 WINTVL1 WINTVL0 After reset Name Function 15:10 Reserved. Write 0 to these bits. 0 is returned after a read. Key scan interval time setting (WINTVL(9:0) ×...
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) 11.2.6 KIUINT (base address + 0x118) Name After reset Name KDATLOST KDATRDY SCANINT After reset Name Function 15:3 Reserved. Write 0 to these bits. 0 is returned after a read. KDATLOST Key scan data lost interrupt. Cleared to 0 when 1 is written. 1: Yes 0: No KDATRDY...
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) 11.2.7 KIURST (base address + 0x11A) Name After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Undefined Name KIURST After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Name Function 15:1 Reserved. Write 0 to these bits. The value is undefined after a read. KIURST KIU reset.
CHAPTER 11 KIU (KEYBOARD INTERFACE UNIT) 11.2.8 SCANLINE (base address + 0x11E) Name After reset Name LINE1 LINE0 After reset Name Function 15:2 Reserved. Write 0 to these bits. 0 is returned after a read. LINE(1:0) KSCAN pin use/do not use setting 11: Do not use KSCAN pins for key scan (All the KSCAN pins are used as general-purpose I/O ports or PS/2 ports) 10: Use eight key scan pins (KSCAN(7:0))
CHAPTER 12 PS2U (PS/2 UNIT) 12.1 General The PS2U controls the PS/2 interface with two channels, PS2CH1 and PS2CH2. The PS/2 interface performs bidirectional data transfers by using the PS2CLK1n and PS2DATA1n signals (n = 1, 2). The PS2U pins are alternate function pins that are shared with the KIU pins. Use the SELECTREG register of the GIU (see 8.2.15) to select the functions of the alternate function pins.
CHAPTER 12 PS2U (PS/2 UNIT) The INTEN bit controls whether detection of reception completion interrupt requests is enabled or disabled. If the INTEN bit is 1, when the reception of one group of data from the PS2DATAn pins is completed, the REMT bit is set to 1 and an interrupt request is reported to the CPU at the same time (n = 1, 2).
CHAPTER 12 PS2U (PS/2 UNIT) 12.3 Transmission Procedure Use the following procedure to transmit data. <1> Set the PS2EN bit of the PS2CHnCTRL register to 1 to disable reception. <2> After waiting 100 µ s, confirm whether any reception data exists. <3>...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.1 General The V 4173, which has two on-chip PC card unit (CARDU) channels for controlling PC cards that are compliant with the 1997 PC Card Standard, supports a total of two card slots. Caution The CARDU of the V 4173 does not support a 32-bit PC card (CardBus card).
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2 Configuration Register Set Table 13-1 lists the configuration registers. CARDU1 and CARDU2 each have these registers. Table 13-1. CARDU Configuration Registers (1/2) Offset Address Register Symbol Function 0x00 to 0x01 Vendor ID register 0x02 to 0x03 Device ID register 0x04 to 0x05...
Page 189
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) Table 13-1. CARDU Configuration Registers (2/2) Offset Address Register Symbol Function 0x3C INTL Interrupt line register 0x3D INTP Interrupt pin register 0x3E to 0x3F BRGCNT Bridge control register 0x40 to 0x41 SUBVID Subsystem vendor ID register 0x42 to 0x43 SUBID Subsystem ID register...
Name VID7 VID6 VID5 VID4 VID3 VID2 VID1 VID0 After reset Name Function 15:0 VID(15:0) Vendor ID 0x1033: NEC 13.2.2 DID (offset address: 0x02 to 0x03) Name DID15 DID14 DID13 DID12 DID11 DID10 DID9 DID8 After reset Name DID7 DID6...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.3 PCICMD (offset address: 0x04 to 0x05) (1/2) Name FBTB_EN SERR_EN After reset Name AD_STEP PERR_EN VGA_P_ MEMW_ SP_CYC MASTER_ MEM_EN IO_EN SNOOP INV_EN After reset Name Function 15:10 Reserved. Write 0 to these bits. 0 is returned after a read. FBTB_EN Enables/disables fast Back to Back.
Page 192
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) (2/2) Name Function MASTER_EN Controls bus master operation. 1: Operate as bus master on the PCI bus. 0: Do not operate as bus master on the PCI bus. MEM_EN Controls memory space. 1: Respond to a memory access to the PC card. 0: Do not respond to a memory access to the PC card.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.4 PCISTS (offset address: 0x06 to 0x07) Name DETECT_ SIG_SERR SIG_ DEVSEL1 DEVSEL0 DETECT_ PERR MABORT TABORT TABOT D_PERR After reset Name FBTB_CAP NEW_CAP After reset Name Function DETECT_PERR Data and address parity error detection. Cleared to 0 when 1 is written. 1: Detected 0: Not detected SIG_SERR...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.13 SECSTS (offset address: 0x16 to 0x17) Name S_DETECT_ S_SIG_ S_RV_ S_RV_ S_SIG_ S_DEVSEL1 S_DEVSEL0 S_DETECT_ PERR SERR MABORT TABORT TABOT D_PERR After reset Name S_FBTB_ After reset Name Function S_DETECT_PERR Data and address parity error detection. Cleared to 0 when 1 is written. 1: Detected 0: Not detected S_SIG_SERR...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.14 PCIBNUM (offset address: 0x18) Name PCIBNUM7 PCIBNUM6 PCIBNUM5 PCIBNUM4 PCIBNUM3 PCIBNUM2 PCIBNUM1 PCIBNUM0 After reset Name Function PCIBNUM(7:0) PCI bus number The value of this register is set and managed by software. Caution The CARDU of the V 4173 does not support a 32-bit PC card (CardBus card).
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.27 INTP (offset address: 0x3D) Name INTP7 INTP6 INTP5 INTP4 INTP3 INTP2 INTP1 INTP0 After reset Name Function INTP(7:0) PCI interrupt pin 0x01: Serial 13.2.28 BRGCNT (offset address: 0x3E to 0x3F) (1/2) Name POST_ MEM1_ MEM0_...
Page 209
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) (2/2) Name Function MABORT_MODE Controls operation when a master abort occurs in the PCI bus and CardBus. 1: For a delayed transaction, return a target abort. For a post transaction, set the SERR# signal to active when the SERR_EN bit is 1. 0: When reading, return all 1’s.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.29 SUBVID (offset address: 0x40 to 0x41) Name SUBVID15 SUBVID14 SUBVID13 SUBVID12 SUBVID11 SUBVID10 SUBVID9 SUBVID8 After reset Name SUBVID7 SUBVID6 SUBVID5 SUBVID4 SUBVID3 SUBVID2 SUBVID1 SUBVID0 After reset Name Function 15:0 SUBVID(15:0) Subsystem vendor ID This is a vendor identification number to be used for recognizing the system or option card.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.32 SYSCNT (offset address: 0x80 to 0x83) (1/2) Name After reset Name BAD_VCC_ PCPCI_EN REQ_DISB ASSIGN2 ASSIGN1 ASSIGN0 After reset Name After reset Name SUB_ID_ ASYN_ PCI_ WR_EN INT_MODE CLK_RIN After reset Name Function 31:22 Reserved.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) (2/2) Name Function ASYN_INT_MODE Synchronous/asynchronous setting for interrupt request samples from the PC card. 1: Sample interrupt requests other than for card insertion/removal asynchronously relative to the clock 0: Sample interrupt requests synchronously with the clock PCI_CLK_RIN PCI bus clock run control setting 1: Drive the primary CLKRUN# signal so that the PCICLK driven by CPU does not stop...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.34 SKDMA0 (offset address: 0x94 to 0x97) Name After reset Name After reset Name After reset Name DMA_PIN_ DMA_PIN_ CONFIG1 CONFIG0 After reset Name Function 31:2 Reserved. Write 0 to these bits. 0 is returned after a read. DMA_PIN_CONFIG(1:0) DMA request signal allocation control Caution The CARDU of the V...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.36 CHIPCNT (offset address: 0x9C) Name S_PREF_ DISB After reset Name Function Reserved. Write 0 to these bits. 0 is returned after a read. S_PREF_DISB Enables/disables prefetch reads from CardBus. 1: Disable 0: Enable Reserved.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.40 PMC (offset address: 0xA2 to 0xA3) Name PME_ PME_ PME_ PME_ PME_ SUPPORT4 SUPPORT3 SUPPORT2 SUPPORT1 SUPPORT0 SUPPORT SUPPORT After reset Name AUX_PWR_ PME_CLK VERSION2 VERSION1 VERSION0 SOURCE After reset Name Function PME_SUPPORT4 Enables the PME# signal (internal signal) to be active during a D3Cold state.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.2.43 DATA (offset address: 0xA7) Name DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0 After reset Name Function DATA(7:0) Write 0 to these bits. 0 is returned after a read. The CARDU unit does not support this function.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3 ExCA Register Set There are two methods of accessing these registers. Each access method is explained below. (1) Access according to a memory access from the primary side When all of the following conditions are satisfied, the ExCA registers can be accessed according to a memory access from the primary side.
Page 223
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) Tables 13-2 and 13-3 list the ExCA registers. CARDU1 and CARDU2 each have the following ExCA registers. Table 13-2. ExCA Registers (1/2) Offset Address Register Symbol Function ExCA 0x800 0x00 ID_REV ID/revision register 0x801 0x01 IF_STATUS...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3.1 ID_REV (PCI offset address: 0x800, ExCA offset address: 0x00) Name IF_TYPE1 IF_TYPE0 After reset Name Function IF_TYPE(1:0) Interface type 10: Supports 16-bit card Reserved. Write 0 to these bits. 0 is returned after a read. User’s Manual U14579EJ2V0UM...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3.2 IF_STATUS (PCI offset address: 0x801, ExCA offset address: 0x01) Name CARD_ READY CARD_WP CARD_ CARD_ DETECT2 DETECT1 DETECT1 DETECT0 After reset Undefined Undefined Undefined Undefined Undefined Undefined Name Function Reserved. Write 0 to these bits. 0 is returned after a read. CARD_PWR Supply status of V and V...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3.3 PWR_CNT (PCI offset address: 0x802, ExCA offset address: 0x02) Name CARD_ VCC1 VCC0 VPP1 VPP0 OUT_EN After reset Name Function CARD_OUT_EN Enables/disables output to a 16-bit card 1: Enable 0: Disable Reserved. Write 0 to these bits. 0 is returned after a read. VCC(1:0) Sets V power supply level...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3.4 INT_GEN_CNT (PCI offset address: 0x803, ExCA offset address: 0x03) Name RING_IND_ CARD_ CARD_ FUC_INT_ FUC_INT_ FUC_INT_ FUC_INT_ REST0 TYPE ROOT3 ROOT2 ROOT1 ROOT0 After reset Name Function RING_IND_EN Enables/disables Ring Indicate 1: Enable 0: Disable The CARDU unit does not support the Ring Indicate function.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3.5 CARD_SC (PCI offset address: 0x804, ExCA offset address: 0x04) Name CARD_DT_ RDY_CHG BAT_WAR_ BAT_DEAD _ST_CHG After reset Name Function Reserved. Write 0 to these bits. 0 is returned after a read. CARD_DT_CHG Detects change in the CDn1# signal and CDn2# signal (n = 1, 2) 1: Change occurred 0: No change occurred...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3.8 IO_WIN_CNT (PCI offset address: 0x807, ExCA offset address: 0x07) Name IO_WIN1_ IO_WIN1_ IO_WIN0_ IO_WIN0_ DATA_SEL DATA_SIZE DATA_SEL DATA_SIZE After reset Name Function Reserved. Write 0 to these bits. 0 is returned after a read. IO_WIN1_DATA_SEL Determines the I/O window 1 data size 1: IOIS16# signal (corresponds to WP1 or WP2 signal of the V...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3.30 GLO_CNT (PCI offset address: 0x81E, ExCA offset address: 0x1E) Name FUN_INT_ INT_WB_ CSC_INT_ After reset Name Function Reserved. Write 0 to these bits. 0 is returned after a read. FUN_INT_LEV Sets the trigger for function interrupt requests to the host 1: Level mode 0: Edge mode Since the CARDU unit only supports parallel mode for PCI interrupts, this bit setting...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3.44 EXT_DATA (ExCA offset address: 0x2F) Name EXT_DATA7 EXT_DATA6 EXT_DATA5 EXT_DATA4 EXT_DATA3 EXT_DATA2 EXT_DATA1 EXT_DATA0 After reset Name Function EXT_DATA(7:0) Sets the extended data Caution Read/write according to a memory access from the primary side is not supported. 13.3.45 MEM_WIN4_SAL (PCI offset address: 0x830, ExCA offset address: 0x30) Name MEM_WIN4...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.3.71 MEM_WIN_PWEN (PCI offset address: 0x891, ExCA extended offset address: 0x16) Name POSTWEN After reset Name Function Reserved. Write 0 to these bits. 0 is returned after a read. POSTWEN Enables/disables the memory window post write cycle 1: Enable 0: Disable Caution The setting of POSTWEN bit is common for all windows.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.4 CardBus Socket Register Set When all of the following conditions are satisfied, the CardBus socket registers can be accessed according to a memory access from the primary side. • The higher 20 bits of the address match the higher 20 bits of the CSRBADR register. •...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.4.1 SKT_EV (offset address: 0x000) (1/2) Name After reset Name After reset Name After reset Name POW_ CCD2_EV CCD1_EV CSTSCHG_ CYC_EV After reset Name Function 31:4 Reserved. Write 0 to these bits. 0 is returned after a read. POW_CYC_EV Whether or not a change to 1 is to be detected in the POW_UP bit of the SKT_PRE_STATE register.
Page 260
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) (2/2) Name Function • For a 16-bit memory card CSTSCHG_EV Whether or not a change to 0 is to be detected in the BVD1 signal (corresponds to the BVD11# or BVD21# signal of the V 4173) or BVD2 signal (corresponds to the BVD12# or BVD22# signal of the V 4173) and a change to 1 is to be detected in...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.4.2 SKT_MASK (offset address: 0x004) Name After reset Name After reset Name After reset Name POW_ CCD_MSK1 CCD_MSK0 CSC_MSK CYC_MSK After reset Name Function 31:4 Reserved. Write 0 to these bits. 0 is returned after a read. POW_CYC_MSK Controls interrupt requests according to the POW_CYC_EN bit of the SKT_EV register...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.4.3 SKT_PRE_STATE (offset address: 0x008) (1/2) Name YV_SKT XV_SKT 3V_SKT 5V_SKT After reset Name After reset Name YV_CARD_ XV_CARD_ 3V_CARD_ 5V_CARD_ BAD_VCC_ DATA_ LOST After reset Note Name NOT_A_ READY CB_CARD_ R2_CARD_ POW_UP CCD20 CCD10 CSTSCHG...
Page 263
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) (2/2) Name Function 3V_CARD_DT Detects a 3 V card 1: Detect a card that is operating at 3 V 0: Detect a card that is not operating at 3 V 5V_CARD_DT Detects a 5 V card 1: Detect a card that is operating at 5 V 0: Detect a card that is not operating at 5 V BAD_VCC_REQ...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.4.4 SKT_FORCE_EV (offset address: 0x00C) (1/2) Name After reset Name After reset Name CVS_TEST YV_CARD XV_CARD 3V_CARD 5V_CARD BAD_VCC_ DATA_LOST After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Name NOT_A_ CB_CARD R2_CARD POW_UP CCD20 CCD10...
Page 265
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) (2/2) Name Function CB_CARD The value written to this bit becomes the value of the CB_CARD_DT bit of the SKT_PRE_STATE register. However, the value is ignored if there is a card. R2_CARD The value written to this bit becomes the value of the R2_CARD_DT bit of the SKT_PRE_STATE register.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.4.5 SKT_CNT (offset address: 0x010) (1/2) Name After reset Name After reset Name After reset Name STP_CLK_ VCC_CNT2 VCC_CNT1 VCC_CNT0 VPP_CNT2 VPP_CNT1 VPP_CNT0 After reset Name Function 31:8 Reserved. Write 0 to these bits. 0 is returned after a read. STP_CLK_EN Enables/disables clock stopping according to the clock run protocol 1: Enable...
Page 267
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) (2/2) Name Function VPP_CNT(2:0) Controls the V power supply 111: Reserved 110: Reserved 101: V = Y.Y V 100: V = X.X V 011: V = 3.3 V 010: V = 5 V 001: V = 12 V 000: V...
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.5 PC Card Unit Operation This section provides supplementary information about PC card unit operation. 13.5.1 16-bit PC card support Each CARDU unit has five memory windows and two I/O windows for 16-bit PC cards. (1) Memory window Memory mapping can map from the 4 GB address space of a PCI system to the 64 MB address space within a card.
Page 269
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) (2) I/O window I/O mapping can map from the first 64 KB address space of the 4 GB address space of a PCI system to the 64 KB address space within a card. The size of each I/O window is 2 KB to 64 KB. Table 13-6 shows the registers related to I/O windows.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.5.2 Interrupts Status interrupt requests of a PC card unit and function interrupt requests from a PC card are reported to the host by using PCI interrupts (parallel). Table 13-7 shows the sources of interrupts and their masking methods. Table 13-7.
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) 13.5.3 Power supply interface The PC card unit has three serial signals, which are compatible with TI’s TPS2202A, for controlling the socket power supplies (V and V ). The VCC_CNT(2:0) and VPP_CNT(2:0) areas of the SKT_CNT register within the CardBus socket registers are monitored, and when there is a change in their values, the power supply control circuit operates and outputs serial signals (PWCDATA, PWCCLK, PWCLATCH).
Page 272
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) Table 13-10. CARDU2 (Slot 2) V Settings VPP_CNT(2:0) PWCDATA Request Voltage (V) Supply Voltage (V) Bit 4 Bit 5 (slot 2) (slot 2) Hi-Z Hi-Z − Hi-Z − Hi-Z Remark Hi-Z: High impedance Table 13-11.
Page 273
CHAPTER 13 CARDU1, CARDU2 (PC CARD UNITS) Figure 13-5. Power Supply Control Serial Signal (PWCDATA, PWCCLK, PWCLATCH) Timing (a) Register setting → → → → PWCCLK output PCLK (input) VPP_CNT, VCC_CNT Change in CARDU1 setting PWCCLK (output) (b) Register data latch → → → → PWCDATA output 36PCLK CARDU1 can be set CARDU2_clk...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) The USBU of the V 4173, which is a USB host controller, is compliant with OPEN HCI Specification Release 1.0. The USBU supports power management functions such as PCI/USB-side clock stopping functions. It is also equipped with two downstream ports.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.2 USB Host Control Configuration Registers To set the hardware resources to be used by a device, the device characteristics, and device operations, the PCI local bus (internal PCI bus of the V 4173) accesses the USB host control configuration registers.
Table 14-1. USB Host Control Configuration Registers Offset Register Name Bits Reset Value Contents Address 0x00 Vendor ID register 15:0 0x1033 Vendor ID (NEC) 0x02 Device ID register 31:16 0x0035 Device ID of this macro (USBU) 0x04 Command register 15:0 0x0000 See 14.2.2.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.2.2 Command register (offset address: 0x04) Name Fast back- SERR# to-back enable enable After reset Name Wait cycle Parity Error Memory Special Memory I/O space control response palette write and Cycles Master space snoop Invalidate enable...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.2.3 Status register (offset address: 0x06) Name Detected Signaled Received Received Signal DEVSEL DEVSEL Data Parity parity error system master target target timing timing Error error abort abort abort detected After reset Name Fast back- 66 MHz to-back...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.2.4 Base address register (offset address: 0x10) Name Base Base Base Base Base Base Base Base address address address address address address address address (MSB) (MSB) (MSB) (MSB) (MSB) (MSB) (MSB) (MSB) After reset Name Base Base...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.2.5 Power management register (offset address: 0xE0) (1/2) Name After reset Name Wakeup_ Enable After reset Name Wakeup_ Status After reset Name ID Write PC_mode REQ_ Status Power Power Mask Enable Change Status Status Standby After reset...
Page 281
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/2) Name Function REQ_Enable Controls REQ# signal output timing. 1: PCICLK (internal clock) asynchronous output 0: PCICLK synchronous output Reserved. Write 0 to these bits. 0 is returned after a read. Status Change Standby Device status relative to power status transition control.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3 Operational Registers The USBU (USB host controller, HC) has on-chip operational registers, which are windows for communicating with the host CPU. These registers, which are mapped to a 4 KB range of the system’s 4 GB main memory space, are used by the host controller driver (HCD).
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.3 HcControl (offset address: 0x04) (1/2) Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Undefined Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Undefined...
Page 285
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/2) Name Function Interrupt Routing Route of interrupt request generated due to an event registered in the HcInterruptStatus register 1: SMI# signal (internal signal) output 0: USBINT# signal (internal signal) output HCFS Host Controller Functional Status for USB USB operation mode 11: UsbSuspend 10: UsbOperational...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.4 HcCommandStatus (offset address: 0x08) (1/2) Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Undefined Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Name R/W (HCD)
Page 287
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/2) Name Function Control List Filled Whether or not a TD exists within the control list. 1: Exists 0: Does not exist Host Controller Reset HC software reset Set (1) by the HCD and cleared (0) by the HC. User’s Manual U14579EJ2V0UM...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.5 HcInterruptStatus (offset address: 0x0C) (1/2) Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Undefined Name R/W (HCD)
Page 289
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/2) Name Function Unrecoverable Error Detection of system error not related to the USB 1: Detected 0: Normal Resume Detected Detection of resume signal 1: Detected 0: Normal Start of Frame This bit is set at the start of a frame. This bit is cleared (0) when 0 is written. Writeback Done Head This bit is set (1) when the contents of the HcDoneHead register are written to the Note...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.6 HcInterruptEnable (offset address: 0x10) (1/2) Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Undefined Name R/W (HCD)
Page 291
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/2) Name Function Frame Number Overflow Interrupt request due to Frame Number Overflow 1: Enable 0: Disable Unrecoverable Error Interrupt request due to Unrecoverable Error 1: Enable 0: Disable Resume Detected Interrupt request due to Resume Detected 1: Enable 0: Disable Start of Frame...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.7 HcInterruptDisable (offset address: 0x14) (1/2) Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Name R/W (HCD) R/W (HC) After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Undefined Name R/W (HCD)
Page 293
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/2) Name Function Unrecoverable Error Interrupt request due to Unrecoverable Error 1: Disable Resume Detected Interrupt request due to Resume Detected 1: Disable Start of Frame Interrupt request due to Start of Frame 1: Disable Writeback Done Head Interrupt request due to HcDoneHead Writeback...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.14 HcDoneHead (offset address: 0x30) Name R/W (HCD) R/W (HC) After reset Name R/W (HCD) R/W (HC) After reset Name R/W (HCD) R/W (HC) After reset Name R/W (HCD) R/W (HC) After reset Name Function 31:0...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.20 HcRhDescriptorA (offset address: 0x48) (1/2) Name POTPGT POTPGT POTPGT POTPGT POTPGT POTPGT POTPGT POTPGT R/W (HCD) R/W (HC) Note Note Note Note Note Note Note Note After reset Name R/W (HCD) R/W (HC) After reset Undefined Undefined...
Page 307
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/2) Name Function Device Type Indicates that the root hub is not a compound device. No Power Switching Denial of power application switching 1: If the HC is on, the port power is also always applied. 0: The port power can be on or off.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.21 HcRhDescriptorB (offset address: 0x4C) (1/2) Name PPCM PPCM PPCM PPCM PPCM PPCM PPCM PPCM R/W (HCD) R/W (HC) Note Note Note Note Note Note Note Note After reset Name PPCM PPCM PPCM PPCM PPCM PPCM...
Page 309
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/2) Name Function 15:3 Reserved. Write 0 to these bits. 0 is returned after a read. Device Removable Connection of device to port 2 1: Connected 0: Not connected Device Removable Connection of device to port 1 1: Connected 0: Not connected Reserved.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.22 HcRhStatus (offset address: 0x50) (1/2) Name CRWE R/W (HCD) R/W (HC) Note 1 After reset Undefined Undefined Undefined Undefined Undefined Undefined Undefined Name OCIC Note 2 R/W (HCD) R/W (HC) Note 1 Note 1 After reset Undefined...
Page 311
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/2) Name Function CRWE Clean Remote Wakeup Enable 1: Clear the RWE bit of the HcControl register to 0. 0: No change 30:18 Reserved. Write 0 to these bits. Since the values of these bits are undefined after a reset, initialize them by using software.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.3.23 HcRhPortStatus1, 2 (offset address: 0x54, 0x58) (1/4) Name R/W (HCD) R/W (HC) After reset Name PRSC POCIC PSSC PESC R/W (HCD) R/W (HC) Note 1 Note 1 Note 1 Note 1 Note 1 After reset Name Note 2...
Page 313
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (2/4) Name Function 31: 21 Reserved. Write 0 to these bits. 0 is returned after a read. PRSC Port Reset Status Change This bit is set (1) due to the completion of a reset. It is cleared (0) when 1 is written by the HCD.
Page 314
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (3/4) Name Function <For writing> Set Port Power This bit is set to 1 at the following times. • When the PSM bit of the HcRhDescriptorA register is 0 and the SGP bit of the HcRhStatus register becomes 1 •...
Page 315
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) (4/4) Name Function <For writing> Set Port Suspend This bit is set (1) when the CCS bit is 1 and 1 is written by the HCD. It is cleared (0) when the PSSC bit is set (1) or the PRSC bit is set (1), the HCFS area of the HcControl register is 01, or the port power is off.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4 USB Specifications This section describes communication functions and operations using the USB and the structure of the interface data that is used. For details, see Open HCI Specification Release 1.0. 14.4.1 General The Universal Serial Bus (USB) is a serial bus for exchanging data between a host computer and various types of peripheral devices.
Page 317
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) Figure 14-4. Low-Speed Device Cable and Resistor Connections Full-speed or low- Low-speed USB transceiver speed USB Non-twisted unshielded cable transceiver D− D− Maximum cable length is 3 meters R1 = 15 k Ω ± 5% R2 = 1.5 k Ω...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4.2 Host controller communication methods The host controller (HC) and host controller driver (HCD) communicate by using the following two routes. 1. Operational registers 2. HCCA (Host Controller Communication Area) For communication that is performed by using the operational registers contained in the HC, the HC is the PCI target device.
Page 319
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) Although ED lists are classified into four types (bulk, control, interrupt, and isochronous), three ED list header pointers are maintained (the isochronous type is excluded). The IsochronousED list is simply linked after the InterruptEDs.
Page 320
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) Figure 14-7 shows how OpenHCI allocates bandwidth. The HC selects the list to process based on a priority order algorithm. Control/bulk list processing has priority until the value of the FR area of the HcFmRemaining register from the beginning of the frame is the same as the value of the PS area of the HcPeriodicStart register.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4.3 ED (Endpoint Descriptor) An ED is always located in system memory in units of 16 bytes. When the HC checks an ED list and finds a linked TD, it executes the transfers indicated there. When the HCD must change the value of the HeadP area of an ED, the HCD sets (1) the K bit of the ED to disable all ED list processing having the same transfer type as the ED to be deleted so that the HC will not access the ED.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4.5 ED fields Table 14-3 shows details about the ED fields. Table 14-3. ED Fields (1/2) Field Name Function Function Address USB address of the function that includes the endpoint controlled by this ED Endpoint Number Endpoint address within the function Direction...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) Table 14-3. ED Fields (2/2) Field Name Function Toggle Carry This bit is a data toggle carry bit. When a TD is retired, this bit is always written using the final data toggle value (LSB of the T area) that was used by the retired TD. This field is not used by an isochronous endpoint.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4.8 GeneralTD fields Table 14-4 shows details about the GeneralTD fields. Table 14-4. GeneralTD Fields (1/2) Field Name Function Buffer Rounding 1: The final data packet will not fill the defined buffer even if no error occurs. 0: The defined data buffer must be completely filled by the final data packet from the endpoint indicated by the TD.
Page 325
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) Table 14-4. GeneralTD Fields (2/2) Field Name Function Current Buffer Pointer Indicates the next physical address in memory to be accessed by a transmission/reception for the endpoint. When this area is 0, it indicates either a data packet of length zero or that all bytes were transferred.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4.9 IsochronousTD format An IsochronousTD is used only for isochronous endpoint. When the F bit of an ED is 1, all TDs that are linked to the ED always use this format, and the TDs are always located in system memory in units of 32 bytes. Figure 14-12.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4.10 IsochronousTD fields Table 14-5 shows details about the IsochronousTD fields. Table 14-5. IsochronousTD Fields Field Name Function Starting Frame Lower 16 bits of the frame number that is sent by the first data packet of the IsochronousTD Delay Interrupt Time until an interrupt request is issued after this IsochronousTD processing is completed Frame Count...
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4.12 HCCA format Table 14-6 shows the HCCA format. Table 14-6. HCCA Format Offset Size Field Name Function Address (Bytes) HccaInterruptTable Pointer to an InterruptED 0x80 HccaFrameNumber Displays the current frame number. This value is updated by the HC before periodic list processing begins in the frame.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4.14 HC state transitions The HC has four states. These states are UsbOperational, UsbReset, UsbSuspend, and UsbResume. The current state is indicated in the HCFS area of the HcControl register. The HCD can execute the transitions between the USB states shown in Figure 14-13.
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) 14.4.15 List service flow Figure 14-14 shows the list service flow. Figure 14-14. List Service Flow Start Is list enabled? Synchronous list? Hc_Current ED = 0 ? Read head pointer BLF, CLF = 1 ? HeadP = 0 ? Isochronous Set Hc_Current ED...
Page 331
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) The list service flow is executed after the HC determines the kind of list that must be serviced. A list is periodically disabled by the HCD to switch the ED. Therefore, when processing lists, the HC first checks whether or not the target list is enabled according to the BLE, CLE, and PLE bits of the HcControl register.
Page 332
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) Figure 14-16 shows the TD service flow. When processing an IsochronousTD, the HC first calculates the relative frame number to decide whether to send a packet in the current frame. This relative frame number is used to select Offset(R) and Offset(R+1) (R = 0, 2, 4, 6).
Page 333
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) Figure 14-16. TD Service Flow Start Isochronous Compare Number with Frame in ED Frame Number > BE area value? FrameNumber < 0? Calculate Packet Addr and Size Retire TD PID = OUT? Perform SOF check Read Packet from memory...
Page 334
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) When processing a GeneralTD, the HC obtains the next memory address from the CBP area. For a transmission to or reception from the CurrentBufferPointer address of the data, the data many not fit in a single physical page and may span multiple pages.
Page 335
CHAPTER 14 USBU (UNIVERSAL SERIAL BUS UNIT) Figure 14-17. Transfer Completed Queue Operation HeadP NextTD NextTD HcDoneHead HeadP NextTD NextTD Remark 1 to 3: Operation sequence →: Writing of data User’s Manual U14579EJ2V0UM...
CHAPTER 15 AC97U (AC97 UNIT) 15.1 General The AC97U is a digital controller that is compliant with the Audio Codec ’97 Revision 2.1. It is used for connecting with an external Codec through an AC-Link. 15.2 Configuration Register Set Table 15-1 lists the AC97U PCI configuration registers. Table 15-1.
Name VID7 VID6 VID5 VID4 VID3 VID2 VID1 VID0 After reset Name Function 15:0 VID(15:0) Vendor ID 0x1033: NEC 15.2.2 DID (offset address: 0x02 to 0x03) Name DID15 DID14 DID13 DID12 DID11 DID10 DID9 DID8 After reset Name DID7 DID6...
CHAPTER 15 AC97U (AC97 UNIT) 15.2.3 PCICMD (offset address: 0x04 to 0x05) Name FBTB_EN SERREN After reset Name AD_STEP PERREN VGA_P_ MEMW_ SP_CYC MASTER_ MEM_EN IO_EN SNOOP INV_EN After reset Name Function 15:10 Reserved. Write 0 to these bits. 0 is returned after a read. FBTB_EN Enables/disables fast Back to Back.
CHAPTER 15 AC97U (AC97 UNIT) 15.2.4 PCISTS (offset address: 0x06 to 0x07) Name DETECT_ SIG_SERR SIG_TABOT DEVSEL1 DEVSEL0 DETECT_ PERR MABORT TABORT D_PERR After reset Name FBTB_CAP UDF_SPT 66M_CAP After reset Name Function DETECT_PERR Data and address parity error detection. Cleared to 0 when 1 is written. 1: Detected 0: Normal SIG_SERR...
CHAPTER 15 AC97U (AC97 UNIT) 15.2.12 SVID (offset address: 0x2C to 0x2D) Name SVID15 SVID14 SVID13 SVID12 SVID11 SVID10 SVID9 SVID8 After reset Name SVID7 SVID6 SVID5 SVID4 SVID3 SVID2 SVID1 SVID0 After reset Name Function 15:0 SVID(15:0) Subsystem vendor ID This is a vendor identification number to be used for recognizing the system or option card.
CHAPTER 15 AC97U (AC97 UNIT) 15.3.1 INT_CLR/INT_STATUS (offset address: 0x00) (1/2) Name INTR After reset Name After reset Name IOSTS STSDAT STSADR ACLINK_CK After reset Name CODECGPI ACLINK DAC1END DAC2END DAC3END ADC1END ADC2END ADC3END After reset Name Function INTR Master interrupt request status 1: Any of bits 11 to 9 and bits 7 to 0 of this register are 1 0: All of bits 11 to 9 and bits 7 to 0 of this register are 0 30:12...
Page 348
CHAPTER 15 AC97U (AC97 UNIT) (2/2) Name Function ACLINK_CK AC-Link clock request interrupt request, or clock request interrupt request from Codec side during a suspend state 1: Interrupt requested 0: No interrupt requested Writing 1 for this bit clears to 0 the interrupt request signal that was set. CODECGPI Interrupt request when 1 was set for the AC97 input data slot 12 bit 0 1: Interrupt requested...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.4 CODEC_REQ (offset address: 0x0C) Name After reset Name After reset Name SLOT3_REQ SLOT4_REQ After reset Name SLOT5_REQ SLOT6_REQ SLOT7_REQ SLOT8_REQ SLOT9_REQ SLOT10_REQ SLOT11_REQ SLOT12_REQ After reset Name Function 31:10 Reserved. Write 0 to these bits. 0 is returned after a read. SLOT3_REQ Codec input data slot 1 bit 11 (slot 3 request) SLOT4_REQ...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.7 CTRL (offset address: 0x18) (1/2) Name SRC_RAM_ SRC_CNVT SRC_ FILTER_ON After reset Note Name MICENB DAC3ENB ADC3ENB After reset Note Name DAC2ENB ADC2ENB DAC1ENB ADC1ENB After reset Name DAC1FORM2 DAC1FORM1 DAC1FORM0 ADC1FORM2 ADC1FORM1 ADC1FORM0 After reset Name Function...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.8 ACLINK_CTRL (offset address: 0x1C) Name ck_stop_on sync_on After reset Name sync_time7 sync_time6 sync_time5 sync_time4 sync_time3 sync_time2 sync_time1 sync_time0 After reset Name aclink_rst_on After reset Name aclink_rst_ aclink_rst_ aclink_rst_ aclink_rst_ aclink_rst_ aclink_rst_ aclink_rst_ aclink_rst_ time7 time6 time5 time4...
Page 357
CHAPTER 15 AC97U (AC97 UNIT) Figure 15-1. SYNC Signal Set 1 in the sync_on bit The sync_on bit is automatically cleared SYNC (sync_time (7:0) + 2) × 33 MHz Figure 15-2. reset_b Signal (Internal Signal) Set 1 in the aclink_rst_on bit The aclink_rst_on bit is automatically cleared reset_b...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.10 INT_MASK (offset address: 0x24) (1/2) Name MMASK After reset Name After reset Name MASK_ MASK_ MASK_ MASK_ IOSTS STSDAT STSADR ACLINK_CK After reset Name MASK_ MASK_ MASK_ MASK_ MASK_ MASK_ MASK_ MASK_ CODECGPI ACLINK DAC1END DAC2END DAC3END...
Page 360
CHAPTER 15 AC97U (AC97 UNIT) (2/2) Name Function MASK_ACLINK_CK Enables/disables AC-Link clock request interrupt or enables/disables clock request interrupt from Codec side during a suspend state 1: Enable 0: Disable MASK_CODECGPI Enables/disables interrupt when 1 was set for the AC97 input data slot 12 bit 0 1: Enable 0: Disable MASK_ACLINK...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.11 DAC1_CTRL (offset address: 0x30) Name DAC1_ DAC1_ ENABLE STATUS After reset Name After reset Name After reset Name After reset Name Function DAC1_ENABLE DAC1 DMA control 1: Enable 0: Disable DAC1_STATUS DAC1 AC-Link transfer status 1: Transfer in progress 0: Transfer ended 29:0...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.12 DAC1L (offset address: 0x34) Name After reset Name After reset Name DAC1L15 DAC1L14 DAC1L13 DAC1L12 DAC1L11 DAC1L10 DAC1L9 DAC1L8 After reset Name DAC1L7 DAC1L6 DAC1L5 DAC1L4 DAC1L3 DAC1L2 DAC1L1 DAC1L0 After reset Name Function 31:16 Reserved.
CHAPTER 15 AC97U (AC97 UNIT) 15.3.14 DAC2_CTRL (offset address: 0x3C) Name DAC2_ DAC2_ ENABLE STATUS After reset Name After reset Name After reset Name After reset Name Function DAC2_ENABLE DAC2 DMA control 1: Enable 0: Disable DAC2_STATUS DAC2 AC-Link transfer status 1: Transfer in progress 0: Transfer ended 29:0...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.15 DAC2L (offset address: 0x40) Name After reset Name After reset Name DAC2L15 DAC2L14 DAC2L13 DAC2L12 DAC2L11 DAC2L10 DAC2L9 DAC2L8 After reset Name DAC2L7 DAC2L6 DAC2L5 DAC2L4 DAC2L3 DAC2L2 DAC2L1 DAC2L0 After reset Name Function 31:16 Reserved.
CHAPTER 15 AC97U (AC97 UNIT) 15.3.17 DAC3_CTRL (offset address: 0x48) Name DAC3_ DAC3_ ENABLE STATUS After reset Name After reset Name After reset Name After reset Name Function DAC3_ENABLE DAC3 DMA control 1: Enable 0: Disable DAC3_STATUS DAC3 AC-Link transfer status 1: Transfer in progress 0: Transfer ended 29:0...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.18 DAC3L (offset address: 0x4C) Name After reset Name After reset Name DAC3L15 DAC3L14 DAC3L13 DAC3L12 DAC3L11 DAC3L10 DAC3L9 DAC3L8 After reset Name DAC3L7 DAC3L6 DAC3L5 DAC3L4 DAC3L3 DAC3L2 DAC3L1 DAC3L0 After reset Name Function 31:16 Reserved.
CHAPTER 15 AC97U (AC97 UNIT) 15.3.20 ADC1_CTRL (offset address: 0x54) Name ADC1_ ENABLE After reset Name After reset Name After reset Name After reset Name Function ADC1_ENABLE ADC1 DMA control 1: Enable 0: Disable 30:0 Reserved. Write 0 to these bits. 0 is returned after a read. User’s Manual U14579EJ2V0UM...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.21 ADC1L (offset address: 0x58) Name After reset Name After reset Name ADC1L15 ADC1L14 ADC1L13 ADC1L12 ADC1L11 ADC1L10 ADC1L9 ADC1L8 After reset Name ADC1L7 ADC1L6 ADC1L5 ADC1L4 ADC1L3 ADC1L2 ADC1L1 ADC1L0 After reset Name Function 31:16 Reserved.
CHAPTER 15 AC97U (AC97 UNIT) 15.3.23 ADC2_CTRL (offset address: 0x60) Name ADC2_ ENABLE After reset Name After reset Name After reset Name After reset Name Function ADC2_ENABLE ADC2 DMA control 1: Enable 0: Disable 30:0 Reserved. Write 0 to these bits. 0 is returned after a read. User’s Manual U14579EJ2V0UM...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.24 ADC2L (offset address: 0x64) Name After reset Name After reset Name ADC2L15 ADC2L14 ADC2L13 ADC2L12 ADC2L11 ADC2L10 ADC2L9 ADC2L8 After reset Name ADC2L7 ADC2L6 ADC2L5 ADC2L4 ADC2L3 ADC2L2 ADC2L1 ADC2L0 After reset Name Function 31:16 Reserved.
CHAPTER 15 AC97U (AC97 UNIT) 15.3.26 ADC3_CTRL (offset address: 0x6C) Name ADC3_ ENABLE After reset Name After reset Name After reset Name After reset Name Function ADC3_ENABLE ADC3 DMA control 1: Enable 0: Disable 30:0 Reserved. Write 0 to these bits. 0 is returned after a read. User’s Manual U14579EJ2V0UM...
CHAPTER 15 AC97U (AC97 UNIT) 15.3.27 ADC3L (offset address: 0x70) Name After reset Name After reset Name ADC3L15 ADC3L14 ADC3L13 ADC3L12 ADC3L11 ADC3L10 ADC3L9 ADC3L8 After reset Name ADC3L7 ADC3L6 ADC3L5 ADC3L4 ADC3L3 ADC3L2 ADC3L1 ADC3L0 After reset Name Function 31:16 Reserved.
CHAPTER 15 AC97U (AC97 UNIT) 15.5.2 AC-Link interface support format The AC97U only supports the slots shown in Figure 15-5 among those in the AC97 guidelines. Figure 15-5. AC97U-Supported Slots µ 48 kHz (20.8 s) Slot number SYNC LINE1 SDATAOUT RFU RFU RFU RFU ADDR DATA...
CHAPTER 15 AC97U (AC97 UNIT) (2) Data transfer On the PCI bus, 32-bit (word) data transfers are performed in units of 4 words. The first transfer after transfers are enabled is a 4-word burst transfer performed two times consecutively to fill the double buffer. Subsequently, the buffers are filled alternately by requesting the next data whenever one buffer becomes empty.
CHAPTER 15 AC97U (AC97 UNIT) 15.5.5 Interrupt control Figure 15-9 shows interrupt control. Figure 15-9. Interrupt Control Interrupt source INTR Set 1 in INT_CLR/INT_STATUS register Interrupt request mask Various types of interrupt requests (INT_MSK register) 15.5.6 SRC (sample rate converter) This section explains the converter and filter functions.
Page 384
CHAPTER 15 AC97U (AC97 UNIT) (2) Converter function Figure 15-11 shows the converter function when data is output. When data is input, 48 Kss data is input from the AC-Link and converted to data of various rates in the reverse of the process shown for data output.
Page 385
CHAPTER 15 AC97U (AC97 UNIT) (3) Filter function A 32-order FIR filter is used as the filter function. Figure 15-12. Filter Function Codec 48k Waveform data 4k to 48k Converter Filter Record data 4k to 48k Codec 48k The output equation is as follows. y(x_0) = (a_−31 ×...
CHAPTER 15 AC97U (AC97 UNIT) 15.6 AC-Link Interface Data Transfer Format Figure 15-13 shows the AC-Link interface data transfer format. Figure 15-13. AC-Link Interface Data Transfer Format µ 48 kHz (20.8 s) Slot number SYNC LINE1 SDATAOUT RFU RFU RFU RFU ADDR DATA CTRL...
Page 387
CHAPTER 15 AC97U (AC97 UNIT) (1) SDATAOUT slot 0: TAG Function Valid Frame When any of bits 14 to 10 or bit 3 is 1, 1 is set for this bit. Slot1 Valid bit When a write operation is performed for the CODEC_WR register, 1 is set for this bit. Slot2 Valid bit When a write operation is performed for the CODEC_WR register, 1 is set for this bit.
Page 388
CHAPTER 15 AC97U (AC97 UNIT) (4) SDATAOUT slot 3: PCML (PCM Playback Left Channel) Function 19:4 PCM Playback Left Data Outputs the result of the calculation (filter or rate conversion) that was performed on the data that was input from memory due to a DMA for DAC1. These bits are fixed at 0.
Page 389
CHAPTER 15 AC97U (AC97 UNIT) (8) SDATAIN slot 0: TAG Function Valid Frame When any of bits 14 to 10 or bit 3 is 1, this bit becomes 1. Slot1 Valid bit When 1 is entered for this bit, an interrupt request is generated. Slot2 Valid bit When 1 is entered for this bit, an interrupt request is generated.
Page 390
CHAPTER 15 AC97U (AC97 UNIT) (9) SDATAIN slot 1: STATUSADDR (Status Address Port) Function Unused 18:12 Control Register Index The value of this area is displayed in the RADDR(6:0) area of the CODEC_RD register. Slot3 Request: PCM Left Channel The value of this bit is displayed in the SLOT3_REQ bit of the CODEC_REQ register. Slot4 Request: PCM Right Channel The value of this bit is displayed in the SLOT4_REQ bit of the CODEC_REQ register.
Page 391
CHAPTER 15 AC97U (AC97 UNIT) (12) SDATAIN slot 4: PCMR (PCM Record Right Channel) Function 19:4 PCM Record Right Data This area is output to memory due to a DMA for ADC2. Unused (13) SDATAIN slot 5: LINE1ADC (Optional Modem Line1 ADC) Function 19:4 Optional Modem Line1 ADC Data...
CHAPTER 15 AC97U (AC97 UNIT) 15.7 Data Output to Codec (1) Data output to slot 1 or 2 The following steps <1> and <2> are repeated due to data output to slot 1 or 2. <1> Confirm that the WRDY bit of the CODEC_WR register in the operational registers is 0 (When it is 1, writing is enabled for slots 1 and 2).
CHAPTER 15 AC97U (AC97 UNIT) 15.8 Data Input from Codec (1) Slot 1 data input Data is read due to slot 1 data input by repeating the following steps (a) and (b). (a) Read data according to an interrupt request <1>...
CHAPTER 15 AC97U (AC97 UNIT) (4) Slot 3, 4, 5, or 6 data input A DMA to the following cache buffers is started for slot 3, 4, 5, or 6 data input. • Slot 3: ADC1 Note • Slot 4: ADC2 •...
Page 395
CHAPTER 15 AC97U (AC97 UNIT) <4> To continue to perform DMA operations, set the next transfer base address and transfer count. <5> When the DMAs have executed the specified number of transfers, an interrupt request is generated and the DMA start bit is automatically cleared to 0. Slot Interrupt Status Bit Register...
Page 396
CHAPTER 15 AC97U (AC97 UNIT) The data length that is transferred to the buffer within the AC97U by a single DMA is 32 bits × 4 (= 16 bits × 8). The data that is used in a single transfer with the Codec is 16 bits among these bits. The following table shows the relationship between the CTRL register settings and data transfer counts.
Page 397
CHAPTER 15 AC97U (AC97 UNIT) <2> The DMA operation is started by setting 1 in the DMA start bit in the operational registers. Slot Start Bit Register 3, 6 ADC1_CTRL ADC1_ENABLE ADC2_CTRL ADC2_ENABLE ADC3_CTRL ADC3_ENABLE <3> Set the following items in the CTRL register in the operational registers. •...
Page 398
CHAPTER 15 AC97U (AC97 UNIT) • The counters for the base address and transfer count are separate from the registers. The register values are loaded in the counters only when the start bit is set to 1 and the DMA end interrupt request is generated. Therefore, if the next base address and transfer count are set in advance after the start bit was set to 1 or the DMA end interrupt request was generated, DMA operations can be performed continuously by loading the setting values after the DMA that is currently being processed ends.
CHAPTER 15 AC97U (AC97 UNIT) 15.10 Special Interrupts This section explains bits 8 to 6 of the INT_CLR/INT_STATUS register in the operational registers. (1) Bit 8: ACLINK_CK An interrupt request is generated when there is a clock request from the Codec side during a suspend state. (2) Bit 7: CODECGPI An interrupt request is generated when valid data is input to AC97 input data slot 12 and bit 0 of slot 12 is 1.
CHAPTER 15 AC97U (AC97 UNIT) 15.11 AC97U Suspend Transition Procedure The procedure for setting the AC97U to suspend mode is shown below. <1> Issue a power down mode/power save mode command for the Codec. <2> Set the ck_stop_on bit of the ACLINK_CTRL register in the operational registers to 1. <3>...
CHAPTER 15 AC97U (AC97 UNIT) 15.12 Filter RAM To use the filter function with DMA transfers, the coefficients for the calculation must be set in advance in the filter RAM. The method of setting this RAM is described below. The RAM has two blocks. One is for data output (DAC) and the other is for data input (ADC). One block is 16 bits ×...
APPENDIX A CAUTIONS A.1 Adjusting Skew of PCI Clock 4173 (4 ns, refer to µ µ µ µ PD31173 (V If the hold time of the PCLK signal of the V 4173) Data Sheet) cannot be satisfied, bring forward the rising edge of the PCI clock as illustrated in Figure A-1. Evaluate the PCI clock block. If necessary, insert a circuit that adjusts the skew of PCLK to the PCLK pin of the V 4173.
APPENDIX B RESTRICTIONS Version 3.1 of the V 4173 has the following restrictions. Consult NEC for the restrictions on products other than version 3.1. B.1 Noise During Operation of AC97 B.1.1 Phenomenon If playback or recording is performed with the AC97U, noise is superimposed on the sound.
APPENDIX B RESTRICTIONS B.2 Erroneous Recognition of PC Card B.2.1 Phenomenon The CEn1#, CEn2#, and OEn# pins output a low level for about 10 ms after the power supply to the card has been turned on (the supply voltage is set by the VCC(1:0) and VPP(1:0) areas of the PWR_CNT register). Some CF cards that quickly clear a power-on reset recognize this as a request for IDE mode by mistake, and enter the IDE mode.
APPENDIX B RESTRICTIONS B.2.2 Preventive measures The CF card can be prevented from entering the IDE mode by adding the external circuit shown in Figure B-3. Figure B-3. Example of Circuit Preventing Shift to IDE Mode Card power supply GPIO 4173 CF card Note...
APPENDIX B RESTRICTIONS B.3 Pulling up PC Card Pins B.3.1 Phenomenon The C1A(22:20), C1A(15:14), WP1, C2A(22:20), C2A(15:14), and WP2 pins are always high when the power supply to the card is off. This is because the C1A(22:20), C1A(15:14), WP1, C2A(22:20), C2A(15:14), and WP2 pins are pulled up by an internal 50 kΩ...
APPENDIX B RESTRICTIONS B.4 Incorrect Playback with AIU B.4.1 Phenomenon If recording and playback are simultaneously performed with the AIU, illegal data may be output during playback and thus playback may not be correctly executed. B.4.2 Preventive measures (1) Do not set the AIUMEN and AIUSEN bits of the SEQREG register to 1 at the same time. (2) Recording and playback can be performed simultaneously by using an interrupt and I/O read by the CPU as a substitute for DMA, without using recording DMA.
APPENDIX C INDEX BIST............69, 195, 341 BRGCNT ............... 208 A/D converter unit ............ 27 Bulk transfers............317 A/D port scan ............149 Bus control unit..........26, 64 AC97U ............. 27, 336 Bus topology............316 AC97U operational registers......43, 346 BUSCNT..............
Page 409
APPENDIX C INDEX DAC3L ..............368 GIUINTSTATL ............113 DATA ..............220 GIUINTTYPH............117 Data lost..............150 GIUINTTYPL ............116 DCU ..............27, 81 GIULINTREG ............99 DCU registers ............ 30, 81 GIUPIODH..............112 DEVCNT ..............213 GIUPIODL ..............111 DID............65, 190, 337 GLO_CNT ..............241 DMA address unit ..........
Page 410
APPENDIX C INDEX Interrupt control outline diagram ......91 MEM_TIM_SEL1 ........... 256 Interrupt control unit ........... 27, 90 MEM_TIM_SEL2 ........... 256 Interrupt source............92 MEM_WIN_PWEN..........257 Interrupt transfers........... 317 MEM_WIN0_EAH ..........237 INTL ............72, 207, 344 MEM_WIN0_EAL........... 237 INTP............72, 208, 345 MEM_WIN0_OAH..........
Page 412
APPENDIX C INDEX Touch panel interface controller......128 Touch panel interface unit........ 27, 125 Touch/release detection......... 149 Transfer Descriptor ..........323 Universal serial bus unit........27, 274 USB host control configuration registers..........40, 275, 276 USB host control configuration space....275 USBU ...............
Page 413
Facsimile Message Although NEC has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that From: errors may occur. Despite all the care and precautions we've taken, you may Name encounter problems in the documentation.
Need help?
Do you have a question about the VR4100 Series and is the answer not in the manual?
Questions and answers