Not applicable
Aug 25, 2015
07:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 25, 2015
07:43 AM
I have tried to use analog input in DAVE 4, but I could not get functional and fully generated files.
analog_io_conf.c and analog_io.c are missing their functions.
analog_io_conf.c and analog_io.c are missing their functions.
4 Replies
Not applicable
Aug 25, 2015
07:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 25, 2015
07:52 PM
HI,
The observation you made is correct. 🙂
There are no initialization code required to configure the analog io pins.
The core reason for the APP is to allow DAVE solver to reserve the port pins selected.
Regards,
Daryl
The observation you made is correct. 🙂
There are no initialization code required to configure the analog io pins.
The core reason for the APP is to allow DAVE solver to reserve the port pins selected.
Regards,
Daryl
Not applicable
Aug 25, 2015
11:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 25, 2015
11:45 PM
Can you please show me how to read data through this port. I mean the port is still undefined. I could not use ANALOG_IO_0. I am using XMC4500 , F100x1024.
Not applicable
Aug 26, 2015
01:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 26, 2015
01:01 AM
Hi,
Since this is an analog port, you have to setup the ADC to be able to read the value.
If you have installed DAVE v4.1.2, you can make use of the APP: ADC_MEASUREMENT.
Refer to the APP Help documentation, section USAGE.
In this section, follow the steps to create an example demonstrates the conversion of the required ADC channel. If the converted channel is above a threshold voltage then a pin is set to Low else it would be set to High. The port pin is connected to a on-board LED. This would switch on/off the LED depending on the potentiometer value(Potentiometer controls the input voltage for the ADC).
If you do not have installed DAVE, you can download DAVE v4.1.2 : www.infineon.com/dave
Try it today, let me know if you need more help.
Regards,
Daryl 🙂
Since this is an analog port, you have to setup the ADC to be able to read the value.
If you have installed DAVE v4.1.2, you can make use of the APP: ADC_MEASUREMENT.
Refer to the APP Help documentation, section USAGE.
In this section, follow the steps to create an example demonstrates the conversion of the required ADC channel. If the converted channel is above a threshold voltage then a pin is set to Low else it would be set to High. The port pin is connected to a on-board LED. This would switch on/off the LED depending on the potentiometer value(Potentiometer controls the input voltage for the ADC).
If you do not have installed DAVE, you can download DAVE v4.1.2 : www.infineon.com/dave
Try it today, let me know if you need more help.
Regards,
Daryl 🙂
Not applicable
Aug 26, 2015
01:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 26, 2015
01:04 AM
Thank you. I'll try it and tell about the results.