Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

XMC™ Forum Discussions

Andreas_Heder
Level 2
Level 2
10 replies posted 25 sign-ins First like received

Hello,

i try to follow the AN234282 "Using a SAR ADC in XMC7000 family
About this" 3.1.3

The problem is the Interrupt registration:

Andreas_Heder_0-1673602709153.png

but in the pdl lib there is no "cy_stc_sysint_irq_t"

i have:

Andreas_Heder_1-1673602966016.png

 

also i found a lot of differences between the AppNote (pictures from the device Configurator) and the newest offically

version of the MTB/deviceconfigrator.

 

Andreas_Heder_2-1673603247741.png

 

So the question is: Is the AppNote up to date? Or i am using an older version of Device Configurator?

 

Could you provide an example code/project with PMW Hardware Trigger?

 

best regards

Andreas

 

 

 

 

0 Likes
6 Replies
jsmith678x
Level 3
Level 3
First solution authored 50 sign-ins 10 replies posted

Best you create an Empty App and in the Device Configurator. 

jsmith678x_0-1673776975803.png

 

Right panel

jsmith678x_1-1673777008469.png

Fill main.c manually by using PDL.

0 Likes

Hello,

 

this isn´t helpfull. The configuration in the Deviceconfigurator is not the problem here.

 

In the AppNote, a structure is referenced that does not exist in the library...

0 Likes

Probably your example is obsolate. The best when you create a new one. Import TCPWM_Counter to yor workspace. Create Empty App and configure as described before. From TCPWM_Counter you will have TCPWM related function calls. Add it to your new project. ADC function calls you have to add manually by using PDL/HAL.

 

cy_stc_sysint_irq_t identifier does'n exists in mtb_shared so probably this example is wrong.

 

0 Likes

Here are my code:

Andreas_Heder_0-1673859024176.pngAndreas_Heder_1-1673859152212.png

Andreas_Heder_2-1673859177716.png

 

 

btw, with SW trigger, everything works fine.

 

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi @Andreas_Heder ,

The appnote code snippet currently is not in sync with the latest pdl version. We are working with our internal team to get it updated to the latest version. Thanks for reporting the issue. Meanwhile we hope you are able to use the ADC with the device configurator.

Best Regards,
Vasanth

0 Likes

Hello @Vasanth ,

let me know when a new AppNote is availible. Currently it doesn´t work.

0 Likes