Introduction
This example uses the ADC to perform an ADC SOC conversion triggered by software.
The example does the below
- Configures SOC0 to be triggered by software.
- Configures ADC interrupt 1 to be generated at end of conversion of SOC0.
- Forces the SOC0 through software and waits for completion by polling ADC interrupt 1 status.
External Connections
- ADC0_AIN0 pin should be connected to signals to be converted.
AM263X-CC E2 or AM263X-CC E1
When using AM263x-CC with TMDSHSECDOCK (HSEC180 controlCARD Baseboard Docking Station)
- Feed analog input for the following
AM263X-LP
When using AM263x-LP
- Feed analog input (non-zero voltage) to boosterpack header J1/J3 Pin 23.
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Board | am263x-cc, am263x-lp |
Example folder | examples/drivers/adc/adc_soc_software/ |
Steps to Run the Example
- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Establish connections as mentioned in External Connections section
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
- View the ADC conversion results in UART console logs
See Also
ADC
Sample Output
Shown below is a sample output when the application is run,
ADC Software Triggered Conversion Test Started ...
ADC Software Triggered Conversion Test Passed!!
All tests have passed!!