example to use ARM TX Event to trigger ADC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

example to use ARM TX Event to trigger ADC

example to use ARM TX Event to trigger ADC

The example demos how to use ARM TX Event to trigger ADC based on LPC55S69-EVK board and MCUXPresso IDE and SDK.

As the Table 753, the “ARM tx event” is the one of the ADC triggering source, although it is a hardware triggering, but the mechanism is the same as software triggering, after ADC configuration, you execute the instruction asm(“SEV”); the ARM tx event will be generated and trigger ADC to sample.

The ADC of LPC55xx support hardware trigger mode, each hardware trigger source corresponds to a trigger register, as the Table 753, the ARM tx event ASC triggering source index is 11, so you have to initialize the ADC trigger control register TCTRL11. In the TCTRL11 register, you can assign the command ID, select the FIFO0 or FIFO1 to save the ADC result, enable hardware triggering.

xiangjun_rong_0-1684199728360.png

 

 

Attachments
No ratings
Version history
Last update:
‎05-15-2023 06:31 PM
Updated by: