Other Parts Discussed in Thread: SN74F161A
Based on the initial system state, I need to initialize the eCAP modules such that the Mod4 counter does not start at zero. For continuous mode and after reset the Mod4 counter counts 0,1,2,3,0,1,... If possible I would like to synchronize the first event number to something other than event 1. For instance have the Mod4 counter start off counting 2,3,0,1,2,...
I have tried using the ECFRC register to force events but it doesn't affect the Mod4 counter, I get the IRQ but not an increment of Mod4. In the example above I have forced event 1 and 2 but the eCAP module continues to look for event 1 on the IO pin when I need it to start by looking for event 3 due to the system state at the time.
Please let me know if there is a method of advancing the Mod4 counter to align with my system state which changes with every reset. As it stands I miss several events at startup, in the example I would miss event 3 and event 4. Only once event 1 occurs do I resume normal operation.
Thanks!