This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0L1228: Edge Count - TIM.CTR always starts from 0 after Enable, although CVAE is configured in "no change"

Part Number: MSPM0L1228

Hi,

I use the edge count on a MSPM0L1228 with TIMG8 (Count Mode => Up Count). I try to implement a mechanism, where the edge count detection pauses by writing a high value to an external control bit and the edge count continues by clearing the same control bit. I simply do this with TIMG8.CTRL.EN = 1/0, which works fine for me so far. The only problem I have is, that after setting the bit  in TIMG8.CTRL.EN from '0' to '1' to continue the edge count detection, the counter value in TIMG8.CTR restarts counting from 0. In TIMG8.CTRCTL there is the field CVAE, which is set to '01' and means, that the current counter value in TIMG8.CTR continues. It seems, that this field is ignored by the MCU, cause whatever is written to this field, the counter behaves always the same => continue with count value 0.

Can you help me out with this and tell me, what is from here?

Here is my configuration:
TIMG8.CTRCTL = 0x00000024
TIMG8.LOAD = 0x0000FFFF