I am trying to set up EVA with TIMER1 to start the sequencer and run ADC acquisitions.
Everything seems to work OK, except for the fact that the intervals at which EVASOCs occur (which I am monitoring with a scope) are exactly 5 times longer that what I calculate them to be. Data is collected properly, and what I get coresponds to the data I see at the ADC input while EVASOC pulses are running....
Here are my settings:
I am running with HSPCLK set to 75MHz (13.33ns):
SysCtrlRegs.HISPCP.all = 0x1; // HSPCLK = SYSCLKOUT/2
The Timer is set to 200 and the compare reg is set to 1:
EvaRegs.T1CMPR = 0x001; // Setup T1 compare value
EvaRegs.T1PR = 200;
So I would expect an EVASOC event to occur every 13.33ns * 200 = 2.66us
Instead they are occurring at exactly 5 times that: 13.33 us
I checked the values of the CPS bit and ADCCLKPS, and they are 0 and 0x1 respectively, so the clock going to the ADCs should be HSPCLK...without any prescaling..right?
What am I missing here?