- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Infineon Experts:
I want to use GTM-TIM feature to capture the DSADC SRM timestamp
I configure GTM_TIMnINSEL register to select the correct TIM input source
And GTM_DSADCINSELi register to choose the correct input signal
Except this, I also configure GTM-TIM feature as well as EDSADC feature.
Now the GTM TIM to capture other source(e.g. internal connection to ATOM,ATOM configured to output PWM) is available, The EDSADC itself is also work and the SRM interrupt can be triggered correctly.
But when I want to use TIM to capture the timestamp when the DSADC SRM event occures, It is not worked as expected and the correspond TIM GPRO0 register has no value.
From the datasheet I see that when TIM is used to capture timestamp, edge trigger (raising edge/faling edge) is needed,
So Can the DSADC SRM interrupt result in edge change on TIM channel? How can I understand the GTM-TIM to EDSADC connection and how to use this feature?
Can you help me to analyze is there GTM-TIM connections not configured correctly or where my understanding is wrong?
Thanks a lot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jeremy,
Thanks for your reply, I solved my problem after some debug and re-read the user manual.
The configuration from EDSADC->TIM is not wrong, Just like I described in my problem, these 2 configuration in below picture for the DSADC to TIM connection is enough.
There is some bug inside my code about interrupt setting, So the notification function always not called.
Anyway, Thanks for your kindly help😁
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @JackaryZhang ,
Thank you for your interest in Infineon's products and for the opportunity to serve you.
It seems a bit weird, I hope you share the sample demo, then I can replicate the phenomenon you mentioned above, and figure the issue out.
Looking forward to your reply.
BR,
Jeremy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jeremy,
Thanks for your reply, I solved my problem after some debug and re-read the user manual.
The configuration from EDSADC->TIM is not wrong, Just like I described in my problem, these 2 configuration in below picture for the DSADC to TIM connection is enough.
There is some bug inside my code about interrupt setting, So the notification function always not called.
Anyway, Thanks for your kindly help😁
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
I am doing the same configuration, EDSADC result event to GTM TIM.
I can see input selection options in GTM with SRMx inputs from DSADC.
But i couldn't understand how SRM service request Can be configured?
My assumption is
1.SRPN =SRCGTMTIM/4
2.TOS = CPUx
3.SRE = Enable
Will work, could you confirm my configurarion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Jeremy_Zhou
Thanks for the response.
I have configured GTM_DSADCINSEL = SRM2 and TIMCHSEL with DSADC.
My configuration still not working.
I have configured like below for DSADC result event service request
SRC_DSADCSRM.SRPN = 1;
SRC_DSADCSRM.SRE = 1;
SRC_DSADCSRM.CLRR = 1;
SRC_DSADCSRM.TOS = TOS_CPU2
Kindly provide your suggestion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @SivakumarG ,
Thanks for your reply.
Please check whether the result event flag arises, next, I'd like to suggest you confirm the correct SRC_DSADCSRMx register to be set, as the 'x' can be 0~13.
BR,
Jeremy