|
WM9715L Datasheet, PDF (51/77 Pages) Wolfson Microelectronics plc – AC’97 Audio and Touchpanel CODEC | |||
|
◁ |
Production Data
INTERRUPT CONTROL
WM9715L
THE ADCIRQ PIN
The WM9715L has three interrupt pins:
⢠ADCIRQ is a dedicated interrupt pin to indicate that AUXADC data is available for reading
(see âTouchpanel interfaceâ)
⢠PENDOWN is a dedicated interrupt pin to indicate that the resistive touchpanel
connected to the WM9715L is being touched (see âTouchpanel interfaceâ)
⢠GENIRQ is a general-purpose interrupt pin, which can indicate a number of different
events.
In a typical use case with touchscreen measurements running continuously, âAUXADC data
availableâ is the most frequent type of interrupt event from the WM9715L. In the interest of
minimizing software overheads, it is recommended to use the dedicated ADCIRQ pin to transmit this
type of interrupt.
The ADCIRQ output is enabled using registers 56h and 4Ch.
REGISTER BIT LABEL DEFAULT
ADDRESS
4Ch
4
GC4 1
56h
4
GE4 1
Table 34 Enabling the ADCIRQ pin
DESCRIPTION
ADCIRQ output enable
ADCIRQ is enabled when both GC4 and GE4 are
set to â0â.
To disable ADCIRQ, set both bits to â1â.
Other combinations (0/1, 1/0) are reserved.
THE PENDOWN PIN
In a typical use case, PENDOWN is the second most frequent type of interrupt after ADCIRQ. In the
interest of minimizing software overheads, it is recommended to use the dedicated PENDOWN pin to
transmit this type of interrupt.
The PENDOWN output is enabled using registers 56h and 4Ch.
REGISTER BIT LABEL DEFAULT
ADDRESS
4Ch
3
GC3 1
56h
3
GE3 1
Table 35 Enabling the PENDOWN pin
DESCRIPTION
PENDOWN output enable
PENDOWN is enabled when both GC4 and GE4 are
set to â0â.
To disable PENDOWN, set both bits to â1â.
Other combinations (0/1, 1/0) are reserved.
THE GENIRQ PIN
The GENIRQ pin transmits a logical OR of up to five individual interrupt events:
⢠Over-temperature (see âThermal Sensorâ)
⢠COMP1 events, e.g. dead battery alarm (see âBattery Alarm and Analogue Comparatorsâ)
⢠COMP2 events, e.g. low battery alarm (see âBattery Alarm and Analogue Comparatorsâ)
⢠ADCIRQ
⢠PENDOWN
When the host processor receives an interrupt, it needs to read register 54h in order to determine
which event triggered the interrupt. As a result, GENIRQ is best suited for interrupts that occur rarely,
and where longer response times can be tolerated. ADCIRQ or PENDOWN interrupts should only be
w
PD Rev 4.0 December 2007
51
|
▷ |