SCT (lpc43xx): need a second counter while using the L-State machine....

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by lpc_guy469 on Mon Mar 10 10:02:23 MST 2014

I am using the LPC43xx micro-controller, along with the SCT, to control a sensor.  I am also using the SCT Design Tool in conjunction with the Keil IDE.  This works fine.  I can control the output lines that manipulate the sensor.  This implementation using an L-State design to perform matching with the events.  However, it is important that I use another counter to keep track of an "expiration time"....at which point the control sequence will be restarted.

Originally, I thought that I could use the H_COUNT (pre-scaled with a factor) register to keep track of the "expiration time".  However, I have learned that the SCT only supports one state machine....either L-State, H-State, or Unified-State.  So, I am looking for a way to use the H-COUNT register (or some other means) to "watch" the "expiration time" from inside the SCT state machine.  The "expiration time" can be as short as milliseconds to hours.

Does anyone know of a way to accomplish this?

Thanks in advance for your assistance.