Lines Matching +full:counter +full:- +full:size
2 # SPDX-License-Identifier: Apache-2.0
6 Espressif's Pulse Counter Mode (PCNT) controller Node
8 The pulse counter module is designed to count the number of
14 Each pulse counter unit has a 16-bit signed counter register.
17 to either increment or decrement the counter.
23 Each pulse counter unit also features a filter on each of the four inputs,
29 Example: Use PCNT to read a rotary-enconder
38 bias-pull-up;
43 Note: Check espressif,esp32-pinctrl.yaml for complete documentation regarding pinctrl.
48 pinctrl-0 = <&pcnt_default>;
49 pinctrl-names = "default";
51 #address-cells = <1>;
52 #size-cells = <0>;
55 #address-cells = <1>;
56 #size-cells = <0>;
60 sig-pos-mode = <2>;
61 sig-neg-mode = <1>;
62 ctrl-h-mode = <0>;
63 ctrl-l-mode = <1>;
68 compatible: "espressif,esp32-pcnt"
70 include: [sensor-device.yaml, pinctrl-device.yaml]
72 child-binding:
80 - 0
81 - 1
82 - 2
83 - 3
84 - 4
85 - 5
86 - 6
87 - 7
97 child-binding:
105 - 0
106 - 1
110 sig-pos-mode:
113 - 0
114 - 1
115 - 2
119 0 (Default) - Inhibit counter (counter value will not change in this condition).
120 1 - Increase counter value.
121 2 - Decrease counter value.
123 sig-neg-mode:
126 - 0
127 - 1
128 - 2
132 0 (Default) - Inhibit counter (counter value will not change in this condition).
133 1 - Increase counter value.
134 2 - Decrease counter value.
136 ctrl-h-mode:
139 - 0
140 - 1
141 - 2
145 0 (Default) - Don't change counter mode.
146 1 - Invert counter mode(increase -> decrease, decrease -> increase).
147 2 - Control mode: Inhibit counter (counter value will not change in this condition).
149 ctrl-l-mode:
152 - 0
153 - 1
154 - 2
158 0 (Default) - Don't change counter mode.
159 1 - Invert counter mode(increase -> decrease, decrease -> increase).
160 2 - Control mode: Inhibit counter (counter value will not change in this condition).