Part Number: MSPM0C1106
Other Parts Discussed in Thread: MSPM0C1105
Hello,
Can we make it clearer how many memory result and configuration registers are available in the ADC?
The datasheet doesn't cover this in either the electrical specifications or detailed description sections. The TRM is generic to the ADC12 peripheral so it just defines MEMRES_Y and MEMCTL_Y.
It's not defined in the mspm0c1105_c1106.h device specific header file, the dl_adc12.h seems to imply 12 registers since it has a maximum sequence start and sequence end value of DL_ADC12_SEQ_END_ADDR_11/ DL_ADC12_SEQ_START_ADDR_11.
However in hw_adc12.h we define up to 23 (ADC12_CTL2_ENDADD_ADDR_23). Also it is important to note that these dl_adc12.h and hw_adc12.h are not device specific so this means that even if a value is defined here it wouldn't necessarily be correct on your specific MSPM0.
This should be stated somewhere on the datasheet, and included in some define in the device specific header file. This helps for example if you want to write code to sample more adc channels than there are memres registers.
For those who are curious the answer is 12 MEMCTL/ MEMRES registers, you can find this by launching a debug session and looking at the number of registers defined in the ADC peripheral. Clear as mud!
Munan