AnsweredAssumed Answered

LPC 824 SCTimer: PWM and pulse count

Question asked by Jan Blumenkamp on Aug 19, 2017
Latest reply on Sep 29, 2018 by ATHMESH NANDAKUMAR

Hello everyone,

the SCTimer is a very complex peripheral and before I put much more time into understanding it, I would like to know if what I am planning to do is actually possible.

I have an application that decodes RFID tags. For that, I need to be able to count pulses. I have a clock and a data line. On every data line edge transition I need to check how many clock pulses occured.

This is the one thing. Additional to that I need two PWM outputs.

The two task seperately from each other are not a big deal. But I want to do both with only one SCTimer (as the LPC824 only has one).

Now I am wondering if that is actually possible - having a counter and a PWM independently from each other with only one SCTimer? If, for the counter part, I need to use the signal that I want to use pulses als SCT clock, of course this would not work, right? Or is it possible to increment the timer counter based on signal transitions independently from the PWM?

With kind regards,