English
Language : 

STMPE821_09 Datasheet, PDF (45/55 Pages) STMicroelectronics – 8-channel capacitive touch key controller
STMPE821
Basic PWM controller
PWM_CTRL_n
7
6
PERIOD_0
PWM control register n=0-3
5
4
PERIOD_1
3
2
REPETITION
1
0
FRAME_ORDER
Address:
0xB1, 0xB5, 0xB9, 0xBD
Type:
R/W
Reset:
0x00
Description:
This register controls the sequence and repetition of blinking.
[7:6] PERIOD_0:
This defines the ON period time which is when the PWM channel output is toggling. The time
unit is as defined in the TIMING bits of the respective TIMING_SETUP registers:
00: 1 time unit
01: 2 time unit
10: 3 time unit
11: 4 time unit
[5:4] PERIOD_1:
This defines the OFF period time which is when the PWM channel output is low, that is, not
toggling. The time unit is as defined in the TIMING bits of the respective TIMING_SETUP
registers:
00: 0 time unit. This means that there is no OFF period but only ON period, that is, the PWM
channel output will always be toggling.
01: 1 time unit
10: 2 time unit
11: 3 time unit
[3:1] REPETITION:
This defines the number of repetition of pairs of PERIOD_0 and PERIOD_1.
000: infinite repetition.
001: execute only one pair.
010: execute 2 pairs
011: execute 3 pairs
100: execute 4 pairs
101: execute 5 pairs
110: execute 6 pairs
111: execute 7 pairs
[0] FRAME_ORDER:
For PWM mode, this defines which frame, PERIOD_0 or PERIOD_1 comes first.
0: PERIOD_0 is outputted first then PERIOD_1.
1: PERIOD_1 is outputted first then PERIOD_0.
45/55