I am varying the pulse with (1-100us) in P0_2 pin but the period time not changing. but i need only the pulse width value please help me to make it work
Note:-(reading pulse from ultra sonic sensor module)
Content originally posted in LPCWare by R2D2 on Tue Dec 02 23:29:40 MST 2014 Quote: asokfair ok , if i enable both edges , how to differentiate between falling and raising...
Content originally posted in LPCWare by asokfair on Tue Dec 02 22:21:56 MST 2014 ok , if i enable both edges , how to differentiate between falling and raising interrupt ? should i need to read the pin status?
Content originally posted in LPCWare by R2D2 on Tue Dec 02 05:42:01 MST 2014 I would recommend to avoid changing CCR in ISR and enabling both edges instead...
Reading Input PIN in ISR is a by far better solution :)