AM263Px MCU+ SDK: ADC SOC software

| AM263Px MCU+ SDK 26.00.00 |

ADC SOC software

# 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_AIN2 pin should be connected to signals to be converted.

## AM263PX-CC E2 or AM263X-CC E2 or AM263X-CC E1 or AM261X-SOM E1

When using AM263x-CC with TMDSHSECDOCK (HSEC180 controlCARD Baseboard Docking Station)

- Feed analog input for the following
  - ADC0_AIN2 - HSEC 15

## AM263PX-LP or AM263X-LP

When using AM263x-LP, AM263Px-LP

- Feed analog input (non-zero voltage) to ADC0_AIN2 boosterpack header J5/J7 Pin 66

## AM261X-LP Rev A

- Feed analog input to ADC0_AIN2 boosterpack header J5/7 pin 63

# Supported Combinations

Parameter | Value
--- | ---
CPU + OS | r5fss0-0 nortos
Toolchain | ti-arm-clang
Board | am263px-cc, am263px-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 Result register value : 4095
ADC Result register value : 4095
ADC Result register value : 4095
ADC Result register value : 4095
ADC Result register value : 4095
ADC Result register value : 4095
ADC Result register value : 4095
ADC Result register value : 4095
ADC Result register value : 4095
ADC Result register value : 4095
ADC Software Triggered Conversion Test Passed!!
All tests have passed!!