- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I am facing problems during using ADC trigger procedure by TCPWM.
I used the example code from "Using a SAR DAC in Traveo T2G" guide but still can't get the ADC conversion via PWM hardware trigger. (No problem with Software trigger)
EVM board: CYTVII-B-E-1M-176-CPU
I have no idea what else I can check to solve the problem
Please help me to check If I am doing something wrong.
Thanks and BRs,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi txcao,
on first glance, I also don’t see why your code is not running as expected. This is why
I tried to write my own and attached the result.
TCPWM0_GRP1_CNT0 is running as PWM-timer with ~1s period and 1/4s duty. The LED4 on the CYTVII-B-E-SK is flashing in this rhythm. The ADC is triggered from TCPWM via the trigger multiplexer and the conversion result is output via semihosting. Because the PWM is so slow you can easily see the synchronicity of the timing of LED and ADC result on screen.
Regards
JJack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @txcao
Please elaborate more on your observation. What do you mean by "can't get the ADC conversion"? What is the issue that you are facing?
Have you tried the ADC code example available on this link? - https://softwaretools.infineon.com/tools/com.ifx.tb.tool.traveoiisampledriverlibrarycodeex
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Apurva_S ,
I am using SDL ver 7.7.
I have tested the OneChannelConversion _SWtrigger and confirm that ADC conversion works normally using the SW trigger. I am facing a trigger problem when changing it to HW trigger (PWM).
It can't get into the AdcIntHandler(void) at the up and down edges of PWM during debugging.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi txcao,
on first glance, I also don’t see why your code is not running as expected. This is why
I tried to write my own and attached the result.
TCPWM0_GRP1_CNT0 is running as PWM-timer with ~1s period and 1/4s duty. The LED4 on the CYTVII-B-E-SK is flashing in this rhythm. The ADC is triggered from TCPWM via the trigger multiplexer and the conversion result is output via semihosting. Because the PWM is so slow you can easily see the synchronicity of the timing of LED and ADC result on screen.
Regards
JJack