CMT2157A
Rev 0.8 | Page 23/31
www.cmostek.com
5.9.3 Toggle
The Toggle Button Mode is supported in 1920 and 1527. In this mode, 5 or 6 buttons are used. Four buttons directly mapped to
the data D0 – D3 are used to control the data. Besides, a single button or two separated buttons used to turn on/off the data
can be chosen by the parameter “On/Off Button(s)”. In this mode, only one button can be pressed at the same time. Pin 12 (K0)
and Pin 5 (K7) are never used in this mode. The figure below gives examples of the pin functions in Toggle mode.
LED
VDD
GND
RFO
K7
K6
K5
XTAL
CLK
K0
K1
K2
K3
K4
NC
ON
OFF
D0
D1
D2
D3
NC
LED
VDD
GND
RFO
CLK
XTAL
7
6
5
1
2
3
4
8
9
10
14
13
12
11
√
√
√
√
×
√
√
√
√
×
√
√
√
√
LED
VDD
GND
RFO
K7
K6
K5
XTAL
CLK
K0
K1
K2
K3
K4
NC
ON/OFF
NC
D0
D1
D2
D3
NC
LED
VDD
GND
RFO
CLK
XTAL
7
6
5
1
2
3
4
8
9
10
14
13
12
11
√
√
√
√
×
√
√
√
√
×
√
×
√
√
Figure 25. Toggle Button Mode with Single (left) and Separated (right) ON/OFF Button(s)
For the 4 data buttons mapped to D0 – D3, every time a button is pressed, the generated data bit toggles. For example, if the
default value of D1 is 0, press K4 down, the D1 is set to 1 in the current transmission, release the K4 and press it down again,
the D1 is set to 0 in the current transmission, and so on. This is what it means by “Toggle”. See the table below for the
examples of toggle button mode
Table 18. Examples of the Toggle Button Mode
On/Off Button(s)
Pressed Button (Times)
D0
D1
D2
D3
Single
(K1 is On/Off)
Press K4 (D1) – 1
st
Time
0
1
0
0
Press K4 (D1) – 2
nd
Time
0
0
0
0
Press K4 (D1) – 3
rd
Time
0
1
0
0
Press K1 – 1
st
Time (On)
1
1
1
1
Press K1 – 2
nd
Time (Off)
0
0
0
0
Press K1 – 3
rd
Time (On)
1
1
1
1
Separated
(K1 is On
K2 is Off)
Press K4 (D1) – 1
st
Time
0
1
0
0
Press K4 (D1) – 2
nd
Time
0
0
0
0
Press K4 (D1) – 3
rd
Time
0
1
0
0
Press K1 (On)
1
1
1
1
Press K2 (Off)
0
0
0
0
Press K1 (On)
1
1
1
1
5.9.4 PWM
The PWM Button Mode is only supported for 1920 and 1527 encoding format. In this mode, 2 buttons are used to send out
commands to increase or decrease the duty ratio of the PWM output of the CMT2251A. A single on/off button, or two
separated on/off buttons can be chosen by the parameter “On/Off Button(s)”. The “On” command sets the PWM output of the
CMT2251A to 100% of duty ratio, while the “Off” command sets the PWM output to 0% of duty ratio. In this mode, only one
button can be pressed at the same time. Pin 12 (K0), Pin 9 (K3), Pin 6 (K6) and Pin 5 (K7) are never used in this mode. The
commands of On, Off, Increase and Decrease are represented by D0 – D3. The figure below gives examples of the pin