General Purpose Inputs and Outputs (GPIO1, GPIO2, GPIO3) and Jack Detection. Nuvoton NAU88C22
Add to My manuals101 Pages
advertisement
7.2 General Purpose Inputs and Outputs (GPIO1, GPIO2, GPIO3) and Jack Detection
Three pins are provided in the NAU88C22 that may be used for limited logic input/output functions. GPIO1 has multiple possible functions, and may be either a logic input or logic output. GPIO2 and GPIO3 may be either line level analog inputs, or logic inputs dedicated to the purpose of jack detection. GPIO2 and GPIO3 do not have any logic output capability or function. Only one GPIO can be selected for jack detection.
If a GPIO is selected for the jack detection feature, the Slow Timer Clock must be enabled. The jack detection function is automatically “debounced” such that momentary changes to the logic value of this input pin are ignored. The Slow Timer Clock is necessary for the debouncing feature.
Registers that control the GPIO functionality are:
R8 GPIO functional selection options
R9 Jack Detection feature input selection and functional options
If a GPIO is selected for the jack detection function, the required Slow Timer Clock determines the duration of the time windows for the input logic debouncing function. Because the logic level changes happen asynchronously to the Slow Timer Clock, there is inherently some variability in the timing for the jack detection function. A continuous and persistent logic change on the GPIO pin used for jack detection will result in a valid internal output signal within 2.5 to 3.5 periods of the Slow Timer Clock. Any logic change of shorter duration will be ignored.
The threshold voltage for a jack detection logic-low level is no higher than 1.0Vdc. The threshold voltage for a jack detection logic-high level is no lower than 1.7Vdc. These levels will be reduced as the VDDC core logic voltage pin is reduced below 1.9Vdc.
If the RLIN or LLIN input pin is used for the GPIO function, the analog signal path should be configured to be disconnected from its respective PGA input. This will not cause harm to the device, but could cause unwanted noise introduced through the PGA path.
7.3 Automated Features Linked to Jack Detection
Some functionality can be automatically controlled by the jack detection logic. This feature can be used to enable the internal analog amplifier bias voltage generator, and/or enable analog output drivers automatically as a result of detecting a logic change at a GPIO pin assigned to the purpose of jack detection. This eliminates any requirement for the host/processor to perform these functions.
The internal analog amplifier bias generator creates the VREF voltage reference and bias voltage used by the analog amplifiers. The ability to control it is a power management feature. This is implemented as a logical
“OR” function of either the debounced internal jack detection signal, or the ABIASEN control bit in Register 1.
The bias generator will be powered if either of these control signals is enabled (value = 1).
Power management control of four different outputs is also optionally and selectively subject to control linked with the jack detection signal. The four outputs that can be controlled this way are the headphone driver signal pair, loudspeaker driver signal pair, AUXOUT1, and AUXOUT2. Register settings determine which outputs may be enabled, and whether they are enabled by a logic 1 or logic 0 value. Output control is a logical “AND” operation of the jack detection controls, and of the register control bits that normally control the outputs. Both controls must be in the “ON” condition for a given output to be enabled.
Registers that affect these functions are:
R9 GPIO pin selection for jack detect function, jack detection enable, VREF jack enable
R13 bit mapped selection of which outputs are to be enabled when jack detect is in a logic 1 state
R13 bit mapped selection of which outputs are to be enabled when jack detect is in a logic 0 state
NAU88C22 Datasheet Rev 0.6 Page 42 of 101 June, 2016
advertisement
Related manuals
advertisement
Table of contents
- 12 GENERAL DESCRIPTION
- 12 Analog Inputs
- 12 Analog Outputs
- 13 ADC, DAC, and Digital Signal Processing
- 13 Realtime Signal Level Readout and DSP Status
- 13 Digital Interfaces
- 13 Clock Requirements
- 14 POWER SUPPLY
- 14 Power-On Reset
- 14 Power Related Software Considerations
- 14 Software Reset
- 16 INPUT PATH DETAILED DESCRIPTIONS
- 16 Programmable Gain Amplifier (PGA)
- 17 Zero Crossing Example
- 17 Positive Microphone Input (MICP)
- 18 Negative Microphone Input (MICN)
- 19 Microphone biasing
- 19 Line/Aux Input Impedance and Variable Gain Stage Topology
- 22 Left and Right Line Inputs (LLIN and RLIN)
- 22 Auxiliary inputs (LAUXIN, RAUXIN)
- 22 ADC Mix/Boost Stage
- 23 Input Limiter / Automatic Level Control (ALC)
- 23 Normal Mode Example Operation
- 24 ALC Parameter Definitions
- 25 ALC Peak Limiter Function
- 25 ALC Normal Mode Example Using ALC Hold Time Feature
- 25 Noise Gate (Normal Mode Only)
- 27 ALC Example with ALC Min/Max Limits and Noise Gate Operation
- 27 ALC Register Map Overview
- 28 Limiter Mode
- 29 ADC DIGITAL BLOCK
- 29 Sampling / Oversampling Rate, Polarity Control, Digital Passthrough
- 30 ADC Digital Volume Control and Update Bit Functionality
- 30 ADC Programmable High Pass Filter
- 30 Programmable Notch Filter
- 32 DAC DIGITAL BLOCK
- 32 DAC Soft Mute
- 32 DAC AutoMute
- 32 DAC Sampling / Oversampling Rate, Polarity Control, Digital Passthrough
- 33 DAC Digital Volume Control and Update Bit Functionality
- 33 DAC Automatic Output Peak Limiter / Volume Boost
- 34 5-Band Equalizer
- 35 3D Stereo Enhancement
- 35 Companding
- 35 µ-law
- 35 A-law
- 36 8-bit Word Length
- 37 ANALOG OUTPUTS
- 37 Main Mixers (LMAIN MIX and RMAIN MIX)
- 37 Auxiliary Mixers (AUX1 MIXER and AUX2 MIXER)
- 38 Right Speaker Submixer
- 38 Headphone Outputs (LHP and RHP)
- 39 Speaker Outputs
- 41 Auxiliary Outputs
- 41 MISCELLANEOUS FUNCTIONS
- 41 Slow Timer Clock
- 42 General Purpose Inputs and Outputs (GPIO1, GPIO2, GPIO3) and Jack Detection
- 42 Automated Features Linked to Jack Detection
- 43 CLOCK SELECTION AND GENERATION
- 44 Phase Locked Loop (PLL) General Description
- 45 Phase Locked Loop (PLL) Design Example
- 45 CSB/GPIO1 as PLL output
- 47 CONTROL INTERFACES
- 47 Selection of Control Mode
- 47 C Style Interface)
- 47 2-Wire Protocol Convention
- 48 2-Wire Write Operation
- 49 2-Wire Read Operation
- 49 SPI Control Interface Modes
- 50 SPI 3-Wire Write Operation
- 50 SPI 4-Wire 24-bit Write and 32-bit Read Operation
- 50 SPI 4-Wire Write Operation
- 51 SPI 4-Wire Read Operation
- 52 Software Reset
- 53 DIGITAL AUDIO INTERFACES
- 53 Right-Justified Audio Data
- 53 Left-Justified Audio Data
- 54 S Audio Data
- 54 PCM A Audio Data
- 55 PCM B Audio Data
- 55 PCM Time Slot Audio Data
- 57 Control Interface Timing
- 59 Audio Interface Timing
- 61 APPLICATION INFORMATION
- 61 Typical Application Schematic
- 62 Recommended power up and power down sequences
- 62 Power Up (and after a software generated register reset) Procedure Guidance
- 62 Power Down
- 63 Unused Input/Output Tie-Off Information
- 65 Power Consumption
- 66 Supply Currents of Specific Blocks
- 67 APPENDIX A: DIGITAL FILTER CHARACTERISTICS
- 73 APPENDIX B: COMPANDING TABLES
- 73 µ-Law / A-Law Codes for Zero and Full Scale
- 73 µ-Law / A-Law Output Codes (Digital mW)
- 74 APPENDIX C: DETAILS OF REGISTER OPERATION
- 94 APPENDIX D: REGISTER OVERVIEW
- 96 PACKAGE DIMENSIONS
- 99 ORDERING INFORMATION