Hardware AN3301
10/35 Doc ID 18161 Rev 1
1.7 PWM controller
The STMPE812A is integrated with push-pull type of GPIO/PWM outputs. At V
CC
of 3.3 V,
the outputs are able to provide 8mA of sourcing (out of device) and 12mA of sinking (into
device) current capability. As such, STMPE812A is able to support LED driving in both
sourcing and sinking configuration.
Note: the PWM timing and duty cycle settings in datasheet are based on a LED sourcing
configuration. When used in sinking configuration, the inversion must be executed
accordingly.
Figure 4. PWM LED driving configurations
AM004194V1
C u rrent s o u rcing
configu ra tion (8 mA)
C u rrent s inking
configu ra tion (12mA)
PWM(A1)
S TMPE8 12A
PWM(A1)
S TMPE8 12A
VCC
PWM(A1)
S TMPE8 12A
PWM(A1)
S TMPE8 12A
VCC
AN3301 Hardware
Doc ID 18161 Rev 1 11/35
1.8 ADC controller
The STMPE812A is equipped with a 12-bit analog-to-digital converter (ADC). Besides the
use for ADC conversion during touchsceen controller operation, it is possible to be used as
general purpose ADC conversion for up to maximum two external auxiliary analog signals
feed through pins B2 and C2.
The touchscreen controller has the priority for the ADC conversion. Selection of conversion
of the two external auxiliary analog signals is programmed through Bit[0] of the ADC control
register (0x20).
Whenever the touchscreen data acquisition is initiated, the ADC conversion is triggered
automatically without needs to program the ADC control register. Writing ‘1’ to Bit[6] of ADC
Control register to initialize conversion for Touchscreen data is redundant and will result in
higher current consumption if ADC is in continuous capture mode.
The STMPE812A is integrated with an internal charge pump in order to ensure ADC
performance in low V
CC
condition. The internal charge pump should be turned on through
ADC control register in the device initialization phase whenever the V
CC
is less than 2.5 V.
Important: If V
CC
is higher than 2.5 V, it is important to ensure the charge pump is
disabled to prevent possible reliability issue or permanent damage of the device.
1.9 GPIO output configurations
The STMPE812A provides push-pull type of GPIO output. If open drain GPIO outputs are
required, it is configurable, with a tweak to the software programming routine. See Figure 5,
Figure 6 and Figure 7.
1.9.1 Push-pull
Set the GPIO to output state through PORT_FUNTION (0x04) register. Input path will be
disabled. Output path will be enabled in push-pull configuration.
Figure 5. GPIO push-pull configuration
AM004195V1
GPIOxGPIOx
STMPE812A
enabled
OUTPUT
INPUT
disabled
Hardware AN3301
12/35 Doc ID 18161 Rev 1
1.9.2 Open drain
GPIO output driven low by STMPE812A
Set the GPIO to output state through PORT_FUNTION (0x04) register. Input path is
disabled. Set the output state to LOW through GPIO_CLR_PIN (0x11) register. Output path
is enabled and pull GPIO pin LOW.
Figure 6. GPIO open drain configuration (output low)
GPIO output pulled high by external pull up resistor
Set the GPIO to input state through PORT_FUNTION (0x04) register. Input path is enabled
and output path disabled. GPIO will be pulled high by external pull up resistor.
Figure 7. GPIO open drain configuration (output high)
AM004197V1
GPIOx
STMPE812A
enable
OUTPUT
INPUT
disable
VCC
External
pull up
GPIOx
GPIO = LOW
AM004198V1
GPIOx
STMPE812A
enable
OUTPUT
INPUT
disable
VCC
External
pull up
GPIOx
GPIO = HIGH

STMPE812ABJR

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
Touch Screen Controllers Touchscreen cntrlr S-Touch
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet