Hi, datasheet for LPC81x claims they can handle up to 2 states, however the registers EVx_CTRL and STATE have both allowed 5 bits (EVx_CTRL:STATEV, bits 19:15 and STATE:STATEy, 4:0 and 20:16) for states, which make me think that actually the SCT in this chip can handle up to 32 states.
However then I read: "The value of a state variable is completely under the control of the application. If an
application does not use states, the value of the state variable remains zero, which is the
default value."
Does this chips actually have 32 states, or does it mean that I can write any value up to 32 into one of the two states?
Please DON'T suggest me to read the AN11538. I've been reading almost you've provided trying to decode the SCT timer but it's been a difficult duty.
Thank you!