Hello all,
I am using the input capture pins for calculating the pulse width of square waves. I need to do the same thing with CN5 pin. I am using dsPIC30F3011.
Please tell me how can I calculate the time information of the pulse width of a square wave using the ChangeNotification pin ? I have no timer left
(I have to do it with CN anyhow as the circuit is already designed by other people- no alternative)
Wait for interrupt, when CN5 change state stop increment
Multiply the value with the time
Get result
The input change notification module provides the
dsPIC30F devices the ability to generate interrupt
requests to the processor in response to a Change-Of-
State (COS) on selected input pins. This module is
capable of detecting input Change-Of-States, even in
Sleep mode, when the clocks are disabled. There are
10 external signals (CN0 through CN7, CN17 and
CN18) that may be selected (enabled) for generating
an interrupt request on a Change-Of-State.