Hi,
I'm working on a F2809 on EPWM1-module.
My aim is to:
1. Stop the counter: EALLOW; CTRMODE = 0;
2. load the counter with a value other than zero, e.g.: TBCTR = 10;
3. load the compare values: CMPA = 10; CMPB = 13;
3. force the direction to count up, thats the problem! I try to: PHSDIR = 1; SWFYNC = 1;
4. Start the counter in UP-DOWN-Mode: CTRMODE = 2; EDIS;
My problem is that the "CTRDIR"-bit at 3. never changes the way I want it to. What can I do to force the direction-bit predictable? Or are there completely other ways to do that?
Best regards,
-Max