- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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