Hi,
We have an existing system with the “TMS320F24X “ processor and we are Porting it to the Sitara platform( AM335X).
The following architecture was used on the TMS320F24X where a single GP timer1 is used as a Time base for the following tasks.
a> T1CNT = TIPR -->Period Interrupt --> Used for keeping a Time stamp at the PWM frequency rate.
b> T1CNT = T1CMPR -->ADC trigger is generated to start ADC
c> TICNT = CMPR1 --> PWM Generation ( Compare unit )
d> TICNT = CMPR2 --> PWM Generation ( Compare unit )
e> T1CNT = CMPR3 --> one millisecond interrupt generation
The aim is to have all the tasks mentioned above (a,b,c,d,e) synchronized to the same time base which is a very crucial criteria for this project.
What I have understood after reading the “spruh73k “manual is that I can’t emulate the same on the AM335x due to the following concerns.
Let me elaborate a little. For example, if I use the DMTIMER 4 on AM335x for triggering the ADC let us say for every 50us , I Can’t use the same Timer to generate a Period Interrupt every 10ms for the Time stamp task ( task ‘ a’ ) as any interrupt would send a trigger to the ADC. I would have to use another Timer. Also the PWMSS module has got its own Time Base Module for PWM generation and also cannot be used to trigger the ADC.
Now for the AM335X , I end up having four time bases which would have to be synchronized .
DMTimer 1 --> One millisecond interrupt generation
DMTImer 4 --> Triggering the ADC
Dmtimer 5 --> Interrupt is Used for keeping a Time stamp at the PWM frequency rate.
PWMSS module -->Pwm Generation
Could you please comment on whether my understanding on the above setup for AM335x is correct (or) am I missing something ?
Is it possible to have all the timers and PWMSS synchronized to a single time base on AM335x
Regards,
Veena