Simple question, can I use ADC inputs and DAC outputs together on STM32L476RGT6? For instance , I want to use the ADC input 12_IN7 on pin 16 PA2 and the DAC output 1 on PA4 pin 20. The cube software is flagging a 'partial' error which I find confusing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 9:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 10:55 AM
Yes you can. CubeMX won't let you set a configuration which won't work. The little yellow "warnings" are letting you know that some things can't be enabled. Hover over them to learn more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 11:41 AM
Ah that makes sense. So the Cube software is saying that not all ADC inputs can be used because I have configured the DAC output. Thank you for the reply, most appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 11:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 2:07 PM
I don't get it.
Why would DAC output on PA4 in any way disable ADC input from PA2?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-30 8:16 AM
I was concerned that once you select the peripheral module, it doesn't allow you to multiplex individual pins for other functions. So you either use the ADC and all associated inputs or the other functions, but not both. It looks like I am wrong and you can, the cube software is just indicating a partial problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-01 7:18 PM
Maybe because adc can support differential input using pair of pins and with pin selection, this option has restrictions.... nothing to worry abouy.
