This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: ADC0 A0_12 - PA14 not able to assign to pin 17 in 28 pin package via SYSCFG

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

HI everybody , 

I m willing to use 28 pin device .   Now I want to use A0_12   ( which is  PA14  and in 28 pin  package is pin  17 )   but I m not able to do it 

actually I m not able also in 64 pins  , so something is wrong on my side .

please could you kindly give me  proper step by step instruction on how to do it in SYSCFG   : so how to have the pin assigned ( so if I select a CH how to have proper pin involed selected )

thank you very much 

BR

Carlo

  • Hi Carlo,

    Are you looking at the PinMux section and trying to change it there? If so, you should instead refer to Basic Configuration -> Sampling Mode Configuration -> ADC Conversion Memory Configurations -> ADC Conversion Memory 0 Configuration.

    I used the settings above to get ADC samples from A0_12 on PA14. 

    Please let me know if this resolves your issue or if you need further assistance.

  • Hi Dylan 

    thank you for your prompt reply but I did your setting and problem is tstill here :  have  a  look to the chip and pin 7 is NOT reserved to ADC0-12 as expected ( I m using your config exactly )  see picture hereunder  ( MEM0  is showing PA14   as needed  but not on chip view even if compiled ) . 

    you see  you are still using PA27 ...  how can I get the ADC0-12 on the pin 7 as expected and needed ? Am i wrong ?

    it seems  ADC12-0 is not taken in account in the  pinmux and setting  ( same if you look at SYSFGC code ) 

    coudl you kindly check and share a working project  so to kindly highlight me my error ?

    thank you 

    BR

    Carlo

  • Carlo,

    My apologies, I've looked further into this and the issue here is with the sysconfig code. In its current state, sysconfig won't show PA14 as reserved for ADC0_12 even if it is set correctly. 

    Despite this, the code generated by sysconfig should still give you the correct behavior. I have used these settings on my own device and verified it using a waveform generator and viewing the ADC conversion results. 

    This is an issue with sysconfig that will be fixed soon, but until then you can still achieve the correct behavior in the device.

  • Hi Dylan 

    OK thank you very much    , so  as for now it is an issue in SYSCFG visualization but pin is set properly 

    please where I can see this in  the code ? I was not able to check in .C file 

    thank you 

    BR

    Carlo

  • Note that you won't find anything explicitly saying initializing PA14 as this is all handled by the ADC init. The best reference you will find is in the initialization of the ADC where channel 12 of ADC0 is initialized. 

    The analog function for the pin is entirely configured in the "SYSCFG_DL_ADC12_0_init" function, which can be found in the "ti_msp_dl_config.c" file generated by syscfg. You'll see that inside this init function, the channel is selected in the "DL_ADC12_configConversionMem()" function.

    I hope this explanation is clear, let me know if I need to add further information.