Decodes PWM-Signal from RC Receiver with counter and threshold values to decide wether to set the output to HIGH or LOW.
The program can be tested by applying a PWM-Signal to the input with a longer pulse time than 1.9ms, then the output will go to HIGH. If then you apply a PWM-Signal with a pulse time lower than 1.1 the output will go to LOW.
Additionally the 7-Segment-Display will always show how many outputs are currently active (HIGH).
# | Input | Output | Bidirectional |
---|---|---|---|
0 | input PWM of channel 0 | segment a | output of channel 0 |
1 | input PWM of channel 1 | segment b | output of channel 1 |
2 | input PWM of channel 2 | segment c | output of channel 2 |
3 | input PWM of channel 3 | segment d | output of channel 3 |
4 | input PWM of channel 4 | segment e | output of channel 4 |
5 | input PWM of channel 5 | segment f | output of channel 5 |
6 | input PWM of channel 6 | segment g | output of channel 6 |
7 | input PWM of channel 7 | UART Transmit Wire | output of channel 7 |