Configure ADC

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

cross mob
Communication
Level 5
Level 5
100 replies posted First solution authored 250 sign-ins

Hello!
I'm using MTB ADC_basic : https://github.com/Infineon/mtb-example-hal-adc-basic for my soil moisture sensor reading program, but when I check the example of MTB ADC_basic initialized in my Modus Toolbox software, I cannot find a configuration in it the Device Configurator 4.0 section, do I need to configure something for my project? for example the SAR ADC part as shown below?
Thank you!

Communication_0-1680408239142.png

 

0 Likes
1 Solution
ScottKerstein
Employee
Employee
5 solutions authored 10 likes received 25 sign-ins

Hello,

The ADC_basic code example is written with Hardware Abstraction Layer (HAL.)  There is a link to HAL documentation in the MTB "Quick Panel" under documentation and you can follow the configuration starting in main.c and refer back the documentation to learn more.

ScottKerstein_0-1680531763029.png

 

The Device Configurator 4.0 uses the PSoC 6 Peripheral Driver Library (PDL) to generate code.  Both HAL and PDL can be used in the same application without issues, but you won't be able to see the HAL configuration using the device configurator.

Check out this blog to learn more about the ADC_basic and using HAL vs. PDL ending with a DAC configuration using the configurator.  It contains several links to help you learn more about using MTB.

https://community.infineon.com/t5/Blogs/myDVM-Done-Dirt-Cheap-Part-1/ba-p/383460

https://community.infineon.com/t5/Blogs/myDVM-Done-Dirt-Cheap-Part-2-Time-to-add-a-DAC/ba-p/394626

Hopefully, this helps

View solution in original post

2 Replies
ScottKerstein
Employee
Employee
5 solutions authored 10 likes received 25 sign-ins

Hello,

The ADC_basic code example is written with Hardware Abstraction Layer (HAL.)  There is a link to HAL documentation in the MTB "Quick Panel" under documentation and you can follow the configuration starting in main.c and refer back the documentation to learn more.

ScottKerstein_0-1680531763029.png

 

The Device Configurator 4.0 uses the PSoC 6 Peripheral Driver Library (PDL) to generate code.  Both HAL and PDL can be used in the same application without issues, but you won't be able to see the HAL configuration using the device configurator.

Check out this blog to learn more about the ADC_basic and using HAL vs. PDL ending with a DAC configuration using the configurator.  It contains several links to help you learn more about using MTB.

https://community.infineon.com/t5/Blogs/myDVM-Done-Dirt-Cheap-Part-1/ba-p/383460

https://community.infineon.com/t5/Blogs/myDVM-Done-Dirt-Cheap-Part-2-Time-to-add-a-DAC/ba-p/394626

Hopefully, this helps

Thank you for that data!
I still don't see a config in the project https://community.infineon.com/t5/Blogs/myDVM-Done-Dirt-Cheap-Part-1/ba-p/383460 i think i figured out the problem mine

0 Likes