nobner
- 1st July 2010, 14:30
Hello,
i´ve got a question using PULSIN.
In my application a square-wave signal with 1KHz is applied to an PIC-input.(usind 18F6722)
My crystal is 8MHz.
I limited the PULSIN-Time by DEFINE PULSIN_MAX 1000
So I think, during this PULSIN-Time a few pulses are received, the amount is not critical.
Now my question is: Is only the first pulse measured and stored in the PULSIN-Variable or is the
PULSIN-Variable overwritten by each new received pulse?
If it is overwritten, what happens, when PULSIN_MAX time expires during a pulse is active?
Thanks in advance
i´ve got a question using PULSIN.
In my application a square-wave signal with 1KHz is applied to an PIC-input.(usind 18F6722)
My crystal is 8MHz.
I limited the PULSIN-Time by DEFINE PULSIN_MAX 1000
So I think, during this PULSIN-Time a few pulses are received, the amount is not critical.
Now my question is: Is only the first pulse measured and stored in the PULSIN-Variable or is the
PULSIN-Variable overwritten by each new received pulse?
If it is overwritten, what happens, when PULSIN_MAX time expires during a pulse is active?
Thanks in advance