Lines Matching +full:invert +full:- +full:input

2 # SPDX-License-Identifier: Apache-2.0
9 rising and/or falling edges of an input signal.
14 Each pulse counter unit has a 16-bit signed counter register.
19 Each channel has two inputs: a signal input that accepts signal edges
20 to be detected, as well as a control input that can be used to enable
21 or disable the signal input.
29 Example: Use PCNT to read a rotary-enconder
31 The mapping between signal and control input and the pin is done through pinctrl:
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
118 Define what to do on the positive edge of pulse input.
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
131 Define what to do on the negative edge of pulse input.
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
144 Define what to do when the control input is high.
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
157 Define what to do when the control input is low.
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).