Part Number: AM2434
Hello E2E-Community,
i got a question regarding the ADC0 of the Sitara AM243x. A look in the technical reference manual shows that each step can operate in SW or HW enabled mode. This is also shown in the register description of ADC_STEPCONFIG_j Register (Offset = 64h + formula). Here the 1-0 set either set SW-enabled single-shot / continous, or HW-enabled single-shot / continous mode. However out of the provided ADC examples only the "adc_singleshot" is can be used out-of-the-box. The other examples do not provide a CCS project as far as I can see. Furthermore I noticed:
- The "adc_singleshot" example uses the "v0" implementation of the ADC driver only defines two modes -> "ADC_OPERATION_MODE_SINGLE_SHOT" and "ADC_OPERATION_MODE_CONTINUOUS" which are SW enabled e.g. "ADC_OPERATION_MODE_SINGLE_SHOT" is "ADC_STEPCONFIG_MODE_SW_EN_ONESHOT" from "hw_adc.h". HW-enabled modes are not defined in the "v0" driver.
- The e.g. "adc_soc_ecap" example which does not provide a CCS project seems to use the "v2" implementation of the ADC driver. However using / including the "adc.h" of the "v2" in a blank projekt for the AM243x leads to several errors.
- Because of that I tried to manually enable / configure HW-enabled Steps manually using the Registers. The figure "ADC0 Integration" in Section 12.1.1.3 shows that the register CTRLMMR_ADC0_CTRL[4-0] TRIG_SEL must be used. During further research the following post caught my attention: https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1467859/lp-am243-triggering-adc-with-periodic-timer-trigger-output. In this post Swargam Anil posted a picture of this register in section 5.1.1.5.72. The post is from Jan/2025 and shows that "AM64x / AM243x Silicon Revision 1.0" is used. However I cannot find this section or the CTRLMMR_ADC0_CTRL description in the current technical reference manual. Am I missing something?
It would be helpful to know where the register description for CTRLMMR_ADC0_CTRL is located in the current version of the technical reference manual, so that I can configure the HW-enabled steps manually. Maybe there is a solution to either include the "v2" or extend the "v0" so that I can use HW-enabled steps in a AM243x. Maybe it is also possible to provide a small example.
Best regards,
chr
