lpcware

2 input capture channels on SCT

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by YOZHik on Wed Jul 23 10:45:43 MST 2014
I have 2 SCT0 capture inputs enabled to measure PWM period from external sensors (between falling edges). I created 2 events to generate an interrupt and read out capture values from CAP[0] and CAP[1]. The timer is running from the system's clock. Everything works perfectly fine until falling edges on both channels get really close to each other. In that case there is no flag set for one of the channels in the EVFLAG register and the channel simply misses its edge. INSYNC bits are set for both channels. Any thoughts?

Outcomes