English
Language : 

CP3BT23 Datasheet, PDF (87/260 Pages) Texas Instruments – CP3BT23 Reprogrammable Connectivity Processor with Bluetooth and Dual CAN Interfaces
16.5.1 ADC Global Configuration Register (ADCGCR)
The ADCGCR register controls the basic operation of the in-
terface. The CPU bus master has read/write access to the
ADCGCR register. After reset this register is set to 0000h.
MUX_CFG
The Multiplexer Configuration field and the
DIFF bit configure the analog circuits of the
ADC module, as shown in Table 35.
Table 35 MUX_CFG Operation
876
TOUCH_CFG
543 2
1
0
MUX_CFG DIFF ADCIN CLKEN
15
14 13
12 11 10 9
MUXOUTEN INTEN Res. NREF_CFG PREF_CFG
MUX_CFG
000
001
Channel
Selected,
(DIFF = 0)
Channels
Selected
(DIFF = 1)
+
-
0
01
1
10
CLKEN
The Clock Enable bit controls whether the
010
2
23
lete ADCIN
bso DIFF
ADC module is running. When this bit is clear,
all ADC clocks are disabled, the ADC analog
circuits are in a low-power state, and ADC
registers (other than the ADCGCR and AG-
CACR registers) are not writeable. Clearing
this bit reinitializes the ADC state machine
and cancels any pending trigger event. When
this bit is set, the ADC clocks are enabled and
the ADC analog circuits are powered up. The
converter is operational within 0.25 µs of be-
ing enabled.
0 – ADC disabled.
1 – ADC enabled.
The ADCIN bit selects the source of the ADC
input. When the bit is clear, the source is the
8-channel Input Multiplexer. When the bit is
set, the source is the ADCIN pin.
0 – ADC input is from 8-channel multiplexer.
1 – ADC input is from ADCIN pin.
The Differential Operation Mode bit and the
MUX_CFG field configure the analog circuits
of the ADC module. When this bit is clear, the
ADC module operates in single-ended mode.
When this bit is set, the ADC operates in dif-
ferential mode. See Table 35 .
0 – Single-ended mode.
1 – Differential mode.
011
3
32
100
4
45
101
5
54
110
6
67
111
7
76
For best noise immunity in touchscreen appli-
cations, channel 2 should be used for sam-
pling the X plate voltage, and channel 1
should be used for sampling the Y plate volt-
age.
TOUCH_CFG The Touchscreen Configuration field controls
the configuration of the low-ohmic drivers for
the TSX+, TSX-, TSY+, and TSY- signals, as
shown in Table 36. When TOUCH_CFG is
101b, the pen-down detector is enabled. The
output of the pen-down detector is visible to
software in the PEN_DOWN bit of the AD-
SRESLT register, and it is ORed with the
Done signal to generate the wake-up signal
WUI30 passed to the MIWU unit.
Table 36 TOUCH_CFG Modes
TOUCH_CFG
O 000
ADC0/TSX+
Inactive
ADC1/TSY+
Inactive
ADC2/TSX-
Inactive
ADC3/TSY-
Inactive
Mode
None
001
Inactive
Driven High
Inactive
Driven Low
Sample Y
010
Driven High
Inactive
Driven Low
Inactive
Sample X
011
Driven High
Inactive
Inactive
Driven Low
Sample Z (1),
Pre-Pen Down
100
Inactive
Driven High
Driven Low
Inactive
Sample Z (2)
101
Weakly Pulled High
Inactive
Inactive
Driven Low Pen-Down Detect
11X
Inactive
Inactive
Inactive
inactive
Reserved
www.national.com
86