2023-02-03 04:03 AM
I am developing a STM32 project with STM32G030K6T6 ADC channels but when I start setting the MCU, it allows only 8 ADC convertions (the datasheet describes there are 12 and the system configuration allows to add up to 12 channels) . However, I need all the 12 channels. How can I use them?
Solved! Go to Solution.
2023-02-03 04:48 AM
That's due to your CHSELRMOD setting. Either up to 8 channels in arbitrary sequence or up to all channels in numerical sequence (up or down).
In CubeMX it's the "Sequencer" selection.
2023-02-03 04:29 AM
2023-02-03 04:33 AM
Yes, I enabled the 12 external channels, but when I try to use them with DMA, it appear this option on the image.
2023-02-03 04:46 AM
This limitation stems from setting ADC_CFGR1.CHSELRMOD, read the ADC chapter in RM.
Cube/CubeMX implements only a fraction of the hardware's possible functionality.
JW
2023-02-03 04:48 AM
That's due to your CHSELRMOD setting. Either up to 8 channels in arbitrary sequence or up to all channels in numerical sequence (up or down).
In CubeMX it's the "Sequencer" selection.
2023-02-03 04:55 AM
@Community member which RM you mean?
2023-02-03 04:58 AM
Obviously RM0454, that's for G0x0.
2023-02-03 04:58 AM
@Andreas Bolsch so it's possible to use all the 12 channels, since I read them into a sequential order?
2023-02-03 05:04 AM
Not only 12, all available channels (incl. the internal ones).