Hi everybody,
I am using the PEC channel on a C167 to count a certain number of pulses in a certain amount of time. The interrupt associated with PEC channel is triggered when I use a input voltage switching between 0 and something above 5V. It happens that my sensor's range is 7-12V ... so obviously the interrupt never occurs. Is there a way to set the voltage threshold to trigger the interrupt? I can't find anything in the documentation ...
Thanks in advance for your time guys.
Does the pin even support 7-12 V without frying?
Input signals that aren't logic-level or within the analog range supported by an ADC has to be normalized before connected to a processor. Subtract the 7V offset before connecting the signal to your processor - but make sure that you have proper over/undervoltage protection for every processor pin that gets connected to the outside world.