maanas
Newbie level 6
I have been using PIC18 micro-controller for generating reference signal and a charging signal at 100 Hz rate max. Now I have to generate this charging signal after sensing an external trigger pulse of width 15us with frequency in between 1 to 100 Hz. I am using 4 timers of PIC18 for different purposes and one timer is spare.
I am thinking of using external interrupt on rising edge but how to check 15uS pulse width. I mean what if the external pulse only rises to logic high and doesn't go to logic low. How would I know that?
How to verify that the input pulses are in integer format only i.e. 1Hz, 2Hz and not 1.5Hz or any other values?
How to mark limit for sensing up to 100 Hz only?
I am thinking of using external interrupt on rising edge but how to check 15uS pulse width. I mean what if the external pulse only rises to logic high and doesn't go to logic low. How would I know that?
How to verify that the input pulses are in integer format only i.e. 1Hz, 2Hz and not 1.5Hz or any other values?
How to mark limit for sensing up to 100 Hz only?