11.07.2015 Views

TSC2101-Audio Codec w/ Integrated Headphone Speaker Amp ...

TSC2101-Audio Codec w/ Integrated Headphone Speaker Amp ...

TSC2101-Audio Codec w/ Integrated Headphone Speaker Amp ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SLAS392C− JUNE 2003 − REVISED SEPTEMBER 2004www.ti.com44Converted data is automatically written into the FIFO. To control the writing, reading and interrupt process, awrite pointer (WRPTR), a read pointer (RDPTR) and a trigger pointer (TGPTR) are used. The read pointeralways shows the location, which will be read next. The write pointer indicates the location, in which the nextconverted data is going to be written. The trigger pointer indicates the location at which an interrupt will begenerated if the write pointer reaches that location. Trigger level is the number of the data points needed to bepresent in the FIFO before generating an interrupt. For e.g., X−Y continuous scan mode with trigger level setto 8, the <strong>TSC2101</strong> generates interrupt after writing (X1, Y1), (X2, Y2), (X3, Y3), (X4, Y4) i.e. 4 data-pairs or8 data. Figure 35 shows the case when trigger level is programmed as 32. On resetting buffer mode, RDPTRmoves to location 1, WRPTR moves to location 1, and TGPTR moves to location equal to programmed triggerlevel.The user can select the input or input sequence, which needs to be converted, from the ADCSM bits of controlregister 00H/page 1. The converted values are written in a predefined sequence to the circular buffer. The userhas flexibility to program a specific trigger level in order to choose the configuration which best fits theapplication. When the number of converted data, written in FIFO, becomes equal to the programmed triggerlevel then the device generates an interrupt signal on /PINTDAV pin. In buffer mode, the user should programthis pin as Data Available (DATA_AVA). In buffer mode, touch screen related conversions (X, Y, Z1, Z2) areallowed only in self-controlled mode and nontouch screen related conversions (BAT, AUX1, AUX2, TEMP1,TEMP2) are allowed only in host-controlled mode.Buffer mode can be used in single-shot conversion or continuous conversion mode.In single shot conversion mode, once the number of data written reaches programmed trigger level, the<strong>TSC2101</strong> generates an interrupt and waits for the user to start reading. As soon as the user starts reading thefirst data from the last converted set, the <strong>TSC2101</strong> clears the interrupt and starts a new set of conversions andthe trigger pointer is incremented by the programmed trigger level. An interrupt is generated again when thetrigger condition is satisfied.In continuous conversion mode, once number of data written reaches the programmed trigger level, the<strong>TSC2101</strong> generates an interrupt. It immediately starts a new set of conversions and the trigger pointer isincremented by the programmed trigger level. An interrupt gets cleared either by writing the next converted datainto the FIFO or by starting to read from the FIFO.See the section Conversion Time Calculation for the <strong>TSC2101</strong> and subsection Buffer Mode Operation in thisdata sheet for timing diagrams and conversion time calculations.Depending upon how the user is reading data, the FIFO can become empty or full. If the user is trying to readdata even if the FIFO is empty, then RDPTR keeps pointing to same location. If the FIFO gets full then the nextlocation is overwritten with newly converted data and the read pointer is incremented by one.While reading the FIFO, the <strong>TSC2101</strong> provides FIFO empty and full status flags along with the data. The usercan also read a status flag from control register 02H/page 1.DIGITAL INTERFACERESETThe device requires reset after power up. This requires a low-to-high transition on the RESET pin after powerup for correct operation. Reset initializes all the internal registers, counters and logic.Hardware Power-DownHardware power-down powers down all the internal circuitry to save power. All the register contents aremaintained. Putting the <strong>TSC2101</strong> into hardware power-down circuit also disables the pen-touch detect circuit.General Purpose I/OThe <strong>TSC2101</strong> has two general purpose I/O (GPIO1 and GPIO2), which can be programmed either as inputsor outputs. As outputs they can be programmed to control external logic through the <strong>TSC2101</strong> registers or sendinterrupts to the host processor on events like button detect, headset insertion, headset removal,Auxiliary/temperature outside threshold range etc. As inputs they can be used by the host-processor to monitorlogic states of signals on the system through the <strong>TSC2101</strong> registers.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!