<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC Microcontrollers中的主题 LPC55S69 LADC software trigger option</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-LADC-software-trigger-option/m-p/1554940#M50729</link>
    <description>&lt;P&gt;Hello, looking for some advice please, I am using the MCUXpresso config tools to set up an ACD instance. I have created a command and a trigger, but want to call the conversion from within a loop. The tools state a software trigger is available, are there any worked examples of this please? Images and code generated attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulsanders_0-1668605770463.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200625i0554760D53E0A2BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paulsanders_0-1668605770463.png" alt="paulsanders_0-1668605770463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file&lt;BR /&gt;* will be overwritten if the respective MCUXpresso Config Tools is used to update this file.&lt;BR /&gt;**********************************************************************************************************************/&lt;/P&gt;&lt;P&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;!!GlobalInfo&lt;BR /&gt;product: Peripherals v11.0&lt;BR /&gt;processor: LPC55S69&lt;BR /&gt;package_id: LPC55S69JBD100&lt;BR /&gt;mcu_data: ksdk2_0&lt;BR /&gt;processor_version: 11.0.1&lt;BR /&gt;functionalGroups:&lt;BR /&gt;- name: BOARD_InitPeripherals&lt;BR /&gt;UUID: 4aff5c84-1a1c-4751-b1b7-3315c5796bec&lt;BR /&gt;called_from_default_init: true&lt;BR /&gt;selectedCore: cm33_core0&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/P&gt;&lt;P&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;component:&lt;BR /&gt;- type: 'system'&lt;BR /&gt;- type_id: 'system_54b53072540eeeb8f8e9343e71f28176'&lt;BR /&gt;- global_system_definitions:&lt;BR /&gt;- user_definitions: ''&lt;BR /&gt;- user_includes: ''&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/P&gt;&lt;P&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;component:&lt;BR /&gt;- type: 'uart_cmsis_common'&lt;BR /&gt;- type_id: 'uart_cmsis_common_9cb8e302497aa696fdbb5a4fd622c2a8'&lt;BR /&gt;- global_USART_CMSIS_common:&lt;BR /&gt;- quick_selection: 'default'&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/P&gt;&lt;P&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;component:&lt;BR /&gt;- type: 'gpio_adapter_common'&lt;BR /&gt;- type_id: 'gpio_adapter_common_57579b9ac814fe26bf95df0a384c36b6'&lt;BR /&gt;- global_gpio_adapter_common:&lt;BR /&gt;- quick_selection: 'default'&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* Included files&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;#include "peripherals.h"&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* BOARD_InitPeripherals functional group&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/***********************************************************************************************************************&lt;BR /&gt;* NVIC initialization code&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'NVIC'&lt;BR /&gt;- type: 'nvic'&lt;BR /&gt;- mode: 'general'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'nvic_57b5eef3774cc60acaede6f5b8bddc67'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'NVIC'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- nvic:&lt;BR /&gt;- interrupt_table: []&lt;BR /&gt;- interrupts: []&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;/P&gt;&lt;P&gt;/* Empty initialization function (commented out)&lt;BR /&gt;static void NVIC_init(void) {&lt;BR /&gt;} */&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* CTIMER2_custom_init initialization code&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'CTIMER2_custom_init'&lt;BR /&gt;- type: 'custom_init'&lt;BR /&gt;- mode: 'general'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'custom_init_87bfd8659a9d6953df1cceb1e02ed9b8'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'CTIMER2'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- general:&lt;BR /&gt;- user_includes: ''&lt;BR /&gt;- user_definitions: ''&lt;BR /&gt;- user_code: ''&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;/P&gt;&lt;P&gt;/* Empty initialization function (commented out)&lt;BR /&gt;static void CTIMER2_custom_init_init(void) {&lt;BR /&gt;} */&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* CTIMER3_custom_init initialization code&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'CTIMER3_custom_init'&lt;BR /&gt;- type: 'custom_init'&lt;BR /&gt;- mode: 'general'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'custom_init_87bfd8659a9d6953df1cceb1e02ed9b8'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'CTIMER3'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- general:&lt;BR /&gt;- user_includes: ''&lt;BR /&gt;- user_definitions: ''&lt;BR /&gt;- user_code: ''&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;/P&gt;&lt;P&gt;/* Empty initialization function (commented out)&lt;BR /&gt;static void CTIMER3_custom_init_init(void) {&lt;BR /&gt;} */&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* ADC0 initialization code&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'ADC0'&lt;BR /&gt;- type: 'lpadc'&lt;BR /&gt;- mode: 'LPADC'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'lpadc_ddcc12878b96237847ab78b571214e1c'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'ADC0'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- fsl_lpadc:&lt;BR /&gt;- lpadcConfig:&lt;BR /&gt;- clockSource: 'AsynchronousFunctionClock'&lt;BR /&gt;- clockSourceFreq: 'BOARD_BootClockRUN'&lt;BR /&gt;- enableInDozeMode: 'false'&lt;BR /&gt;- conversionAverageMode: 'kLPADC_ConversionAverage1'&lt;BR /&gt;- offsetCalibration: 'no'&lt;BR /&gt;- autoCalibrate: 'false'&lt;BR /&gt;- enableAnalogPreliminary: 'false'&lt;BR /&gt;- powerUpDelay: '0x80'&lt;BR /&gt;- referenceVoltageSource: 'kLPADC_ReferenceVoltageAlt2'&lt;BR /&gt;- powerLevelMode: 'kLPADC_PowerLevelAlt1'&lt;BR /&gt;- triggerPriorityPolicy: 'kLPADC_TriggerPriorityPreemptImmediately'&lt;BR /&gt;- enableConvPause: 'false'&lt;BR /&gt;- convPauseDelay: '0'&lt;BR /&gt;- FIFO0Watermark: '0'&lt;BR /&gt;- FIFO1Watermark: '0'&lt;BR /&gt;- FIFO0WatermarkDMA: 'false'&lt;BR /&gt;- FIFO1WatermarkDMA: 'false'&lt;BR /&gt;- lpadcConvCommandConfig:&lt;BR /&gt;- 0:&lt;BR /&gt;- user_commandId: 'Sounder_Monitoring'&lt;BR /&gt;- commandId: '1'&lt;BR /&gt;- chainedNextCommandNumber: '0'&lt;BR /&gt;- sampleChannelMode: 'kLPADC_SampleChannelSingleEndSideA'&lt;BR /&gt;- channelNumber: 'CH.4'&lt;BR /&gt;- enableAutoChannelIncrement: 'false'&lt;BR /&gt;- loopCount: '0'&lt;BR /&gt;- hardwareAverageMode: 'kLPADC_HardwareAverageCount16'&lt;BR /&gt;- sampleTimeMode: 'kLPADC_SampleTimeADCK3'&lt;BR /&gt;- hardwareCompareMode: 'kLPADC_HardwareCompareDisabled'&lt;BR /&gt;- hardwareCompareValueHigh: '0'&lt;BR /&gt;- hardwareCompareValueLow: '0'&lt;BR /&gt;- conversionResoultuionMode: 'kLPADC_ConversionResolutionStandard'&lt;BR /&gt;- enableWaitTrigger: 'false'&lt;BR /&gt;- lpadcConvTriggerConfig:&lt;BR /&gt;- 0:&lt;BR /&gt;- user_triggerId: 'Sounder_Monitoring_Trigger'&lt;BR /&gt;- triggerId: '3'&lt;BR /&gt;- targetCommandId: '1'&lt;BR /&gt;- delayPower: '0'&lt;BR /&gt;- priority: 'false'&lt;BR /&gt;- channelAFIFOSelect: '0'&lt;BR /&gt;- channelBFIFOSelect: '0'&lt;BR /&gt;- enableHardwareTrigger: 'false'&lt;BR /&gt;- IRQ_cfg:&lt;BR /&gt;- interrupt_type: ''&lt;BR /&gt;- enable_irq: 'false'&lt;BR /&gt;- adc_interrupt:&lt;BR /&gt;- IRQn: 'ADC0_IRQn'&lt;BR /&gt;- enable_interrrupt: 'enabled'&lt;BR /&gt;- enable_priority: 'false'&lt;BR /&gt;- priority: '0'&lt;BR /&gt;- enable_custom_name: 'false'&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;BR /&gt;const lpadc_config_t ADC0_config = {&lt;BR /&gt;.enableInDozeMode = false,&lt;BR /&gt;.conversionAverageMode = kLPADC_ConversionAverage1,&lt;BR /&gt;.enableAnalogPreliminary = false,&lt;BR /&gt;.powerUpDelay = 0x80UL,&lt;BR /&gt;.referenceVoltageSource = kLPADC_ReferenceVoltageAlt2,&lt;BR /&gt;.powerLevelMode = kLPADC_PowerLevelAlt1,&lt;BR /&gt;.triggerPriorityPolicy = kLPADC_TriggerPriorityPreemptImmediately,&lt;BR /&gt;.enableConvPause = false,&lt;BR /&gt;.convPauseDelay = 0UL,&lt;BR /&gt;.FIFO0Watermark = 0UL,&lt;BR /&gt;.FIFO1Watermark = 0UL&lt;BR /&gt;};&lt;BR /&gt;lpadc_conv_command_config_t ADC0_commandsConfig[1] = {&lt;BR /&gt;{&lt;BR /&gt;.sampleChannelMode = kLPADC_SampleChannelSingleEndSideA,&lt;BR /&gt;.channelNumber = 4U,&lt;BR /&gt;.chainedNextCommandNumber = 0,&lt;BR /&gt;.enableAutoChannelIncrement = false,&lt;BR /&gt;.loopCount = 0UL,&lt;BR /&gt;.hardwareAverageMode = kLPADC_HardwareAverageCount16,&lt;BR /&gt;.sampleTimeMode = kLPADC_SampleTimeADCK3,&lt;BR /&gt;.hardwareCompareMode = kLPADC_HardwareCompareDisabled,&lt;BR /&gt;.hardwareCompareValueHigh = 0UL,&lt;BR /&gt;.hardwareCompareValueLow = 0UL,&lt;BR /&gt;.conversionResolutionMode = kLPADC_ConversionResolutionStandard,&lt;BR /&gt;.enableWaitTrigger = false&lt;BR /&gt;}&lt;BR /&gt;};&lt;BR /&gt;lpadc_conv_trigger_config_t ADC0_triggersConfig[1] = {&lt;BR /&gt;{&lt;BR /&gt;.targetCommandId = 1,&lt;BR /&gt;.delayPower = 0UL,&lt;BR /&gt;.channelAFIFOSelect = 0,&lt;BR /&gt;.channelBFIFOSelect = 0,&lt;BR /&gt;.priority = 1,&lt;BR /&gt;.enableHardwareTrigger = false&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static void ADC0_init(void) {&lt;BR /&gt;/* Initialize LPADC converter */&lt;BR /&gt;LPADC_Init(ADC0_PERIPHERAL, &amp;amp;ADC0_config);&lt;BR /&gt;/* Configure conversion command 1. */&lt;BR /&gt;LPADC_SetConvCommandConfig(ADC0_PERIPHERAL, ADC0_SOUNDER_MONITORING, &amp;amp;ADC0_commandsConfig[0]);&lt;BR /&gt;/* Configure trigger 3. */&lt;BR /&gt;LPADC_SetConvTriggerConfig(ADC0_PERIPHERAL, ADC0_SOUNDER_MONITORING_TRIGGER, &amp;amp;ADC0_triggersConfig[0]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* Initialization functions&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt;/* Initialize components */&lt;BR /&gt;ADC0_init();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* BOARD_InitBootPeripherals function&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitBootPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt;BOARD_InitPeripherals();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 13:37:08 GMT</pubDate>
    <dc:creator>sanders7284</dc:creator>
    <dc:date>2022-11-16T13:37:08Z</dc:date>
    <item>
      <title>LPC55S69 LADC software trigger option</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-LADC-software-trigger-option/m-p/1554940#M50729</link>
      <description>&lt;P&gt;Hello, looking for some advice please, I am using the MCUXpresso config tools to set up an ACD instance. I have created a command and a trigger, but want to call the conversion from within a loop. The tools state a software trigger is available, are there any worked examples of this please? Images and code generated attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulsanders_0-1668605770463.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200625i0554760D53E0A2BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paulsanders_0-1668605770463.png" alt="paulsanders_0-1668605770463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file&lt;BR /&gt;* will be overwritten if the respective MCUXpresso Config Tools is used to update this file.&lt;BR /&gt;**********************************************************************************************************************/&lt;/P&gt;&lt;P&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;!!GlobalInfo&lt;BR /&gt;product: Peripherals v11.0&lt;BR /&gt;processor: LPC55S69&lt;BR /&gt;package_id: LPC55S69JBD100&lt;BR /&gt;mcu_data: ksdk2_0&lt;BR /&gt;processor_version: 11.0.1&lt;BR /&gt;functionalGroups:&lt;BR /&gt;- name: BOARD_InitPeripherals&lt;BR /&gt;UUID: 4aff5c84-1a1c-4751-b1b7-3315c5796bec&lt;BR /&gt;called_from_default_init: true&lt;BR /&gt;selectedCore: cm33_core0&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/P&gt;&lt;P&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;component:&lt;BR /&gt;- type: 'system'&lt;BR /&gt;- type_id: 'system_54b53072540eeeb8f8e9343e71f28176'&lt;BR /&gt;- global_system_definitions:&lt;BR /&gt;- user_definitions: ''&lt;BR /&gt;- user_includes: ''&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/P&gt;&lt;P&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;component:&lt;BR /&gt;- type: 'uart_cmsis_common'&lt;BR /&gt;- type_id: 'uart_cmsis_common_9cb8e302497aa696fdbb5a4fd622c2a8'&lt;BR /&gt;- global_USART_CMSIS_common:&lt;BR /&gt;- quick_selection: 'default'&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/P&gt;&lt;P&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;component:&lt;BR /&gt;- type: 'gpio_adapter_common'&lt;BR /&gt;- type_id: 'gpio_adapter_common_57579b9ac814fe26bf95df0a384c36b6'&lt;BR /&gt;- global_gpio_adapter_common:&lt;BR /&gt;- quick_selection: 'default'&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* Included files&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;#include "peripherals.h"&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* BOARD_InitPeripherals functional group&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/***********************************************************************************************************************&lt;BR /&gt;* NVIC initialization code&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'NVIC'&lt;BR /&gt;- type: 'nvic'&lt;BR /&gt;- mode: 'general'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'nvic_57b5eef3774cc60acaede6f5b8bddc67'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'NVIC'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- nvic:&lt;BR /&gt;- interrupt_table: []&lt;BR /&gt;- interrupts: []&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;/P&gt;&lt;P&gt;/* Empty initialization function (commented out)&lt;BR /&gt;static void NVIC_init(void) {&lt;BR /&gt;} */&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* CTIMER2_custom_init initialization code&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'CTIMER2_custom_init'&lt;BR /&gt;- type: 'custom_init'&lt;BR /&gt;- mode: 'general'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'custom_init_87bfd8659a9d6953df1cceb1e02ed9b8'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'CTIMER2'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- general:&lt;BR /&gt;- user_includes: ''&lt;BR /&gt;- user_definitions: ''&lt;BR /&gt;- user_code: ''&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;/P&gt;&lt;P&gt;/* Empty initialization function (commented out)&lt;BR /&gt;static void CTIMER2_custom_init_init(void) {&lt;BR /&gt;} */&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* CTIMER3_custom_init initialization code&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'CTIMER3_custom_init'&lt;BR /&gt;- type: 'custom_init'&lt;BR /&gt;- mode: 'general'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'custom_init_87bfd8659a9d6953df1cceb1e02ed9b8'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'CTIMER3'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- general:&lt;BR /&gt;- user_includes: ''&lt;BR /&gt;- user_definitions: ''&lt;BR /&gt;- user_code: ''&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;/P&gt;&lt;P&gt;/* Empty initialization function (commented out)&lt;BR /&gt;static void CTIMER3_custom_init_init(void) {&lt;BR /&gt;} */&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* ADC0 initialization code&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'ADC0'&lt;BR /&gt;- type: 'lpadc'&lt;BR /&gt;- mode: 'LPADC'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'lpadc_ddcc12878b96237847ab78b571214e1c'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'ADC0'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- fsl_lpadc:&lt;BR /&gt;- lpadcConfig:&lt;BR /&gt;- clockSource: 'AsynchronousFunctionClock'&lt;BR /&gt;- clockSourceFreq: 'BOARD_BootClockRUN'&lt;BR /&gt;- enableInDozeMode: 'false'&lt;BR /&gt;- conversionAverageMode: 'kLPADC_ConversionAverage1'&lt;BR /&gt;- offsetCalibration: 'no'&lt;BR /&gt;- autoCalibrate: 'false'&lt;BR /&gt;- enableAnalogPreliminary: 'false'&lt;BR /&gt;- powerUpDelay: '0x80'&lt;BR /&gt;- referenceVoltageSource: 'kLPADC_ReferenceVoltageAlt2'&lt;BR /&gt;- powerLevelMode: 'kLPADC_PowerLevelAlt1'&lt;BR /&gt;- triggerPriorityPolicy: 'kLPADC_TriggerPriorityPreemptImmediately'&lt;BR /&gt;- enableConvPause: 'false'&lt;BR /&gt;- convPauseDelay: '0'&lt;BR /&gt;- FIFO0Watermark: '0'&lt;BR /&gt;- FIFO1Watermark: '0'&lt;BR /&gt;- FIFO0WatermarkDMA: 'false'&lt;BR /&gt;- FIFO1WatermarkDMA: 'false'&lt;BR /&gt;- lpadcConvCommandConfig:&lt;BR /&gt;- 0:&lt;BR /&gt;- user_commandId: 'Sounder_Monitoring'&lt;BR /&gt;- commandId: '1'&lt;BR /&gt;- chainedNextCommandNumber: '0'&lt;BR /&gt;- sampleChannelMode: 'kLPADC_SampleChannelSingleEndSideA'&lt;BR /&gt;- channelNumber: 'CH.4'&lt;BR /&gt;- enableAutoChannelIncrement: 'false'&lt;BR /&gt;- loopCount: '0'&lt;BR /&gt;- hardwareAverageMode: 'kLPADC_HardwareAverageCount16'&lt;BR /&gt;- sampleTimeMode: 'kLPADC_SampleTimeADCK3'&lt;BR /&gt;- hardwareCompareMode: 'kLPADC_HardwareCompareDisabled'&lt;BR /&gt;- hardwareCompareValueHigh: '0'&lt;BR /&gt;- hardwareCompareValueLow: '0'&lt;BR /&gt;- conversionResoultuionMode: 'kLPADC_ConversionResolutionStandard'&lt;BR /&gt;- enableWaitTrigger: 'false'&lt;BR /&gt;- lpadcConvTriggerConfig:&lt;BR /&gt;- 0:&lt;BR /&gt;- user_triggerId: 'Sounder_Monitoring_Trigger'&lt;BR /&gt;- triggerId: '3'&lt;BR /&gt;- targetCommandId: '1'&lt;BR /&gt;- delayPower: '0'&lt;BR /&gt;- priority: 'false'&lt;BR /&gt;- channelAFIFOSelect: '0'&lt;BR /&gt;- channelBFIFOSelect: '0'&lt;BR /&gt;- enableHardwareTrigger: 'false'&lt;BR /&gt;- IRQ_cfg:&lt;BR /&gt;- interrupt_type: ''&lt;BR /&gt;- enable_irq: 'false'&lt;BR /&gt;- adc_interrupt:&lt;BR /&gt;- IRQn: 'ADC0_IRQn'&lt;BR /&gt;- enable_interrrupt: 'enabled'&lt;BR /&gt;- enable_priority: 'false'&lt;BR /&gt;- priority: '0'&lt;BR /&gt;- enable_custom_name: 'false'&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;BR /&gt;const lpadc_config_t ADC0_config = {&lt;BR /&gt;.enableInDozeMode = false,&lt;BR /&gt;.conversionAverageMode = kLPADC_ConversionAverage1,&lt;BR /&gt;.enableAnalogPreliminary = false,&lt;BR /&gt;.powerUpDelay = 0x80UL,&lt;BR /&gt;.referenceVoltageSource = kLPADC_ReferenceVoltageAlt2,&lt;BR /&gt;.powerLevelMode = kLPADC_PowerLevelAlt1,&lt;BR /&gt;.triggerPriorityPolicy = kLPADC_TriggerPriorityPreemptImmediately,&lt;BR /&gt;.enableConvPause = false,&lt;BR /&gt;.convPauseDelay = 0UL,&lt;BR /&gt;.FIFO0Watermark = 0UL,&lt;BR /&gt;.FIFO1Watermark = 0UL&lt;BR /&gt;};&lt;BR /&gt;lpadc_conv_command_config_t ADC0_commandsConfig[1] = {&lt;BR /&gt;{&lt;BR /&gt;.sampleChannelMode = kLPADC_SampleChannelSingleEndSideA,&lt;BR /&gt;.channelNumber = 4U,&lt;BR /&gt;.chainedNextCommandNumber = 0,&lt;BR /&gt;.enableAutoChannelIncrement = false,&lt;BR /&gt;.loopCount = 0UL,&lt;BR /&gt;.hardwareAverageMode = kLPADC_HardwareAverageCount16,&lt;BR /&gt;.sampleTimeMode = kLPADC_SampleTimeADCK3,&lt;BR /&gt;.hardwareCompareMode = kLPADC_HardwareCompareDisabled,&lt;BR /&gt;.hardwareCompareValueHigh = 0UL,&lt;BR /&gt;.hardwareCompareValueLow = 0UL,&lt;BR /&gt;.conversionResolutionMode = kLPADC_ConversionResolutionStandard,&lt;BR /&gt;.enableWaitTrigger = false&lt;BR /&gt;}&lt;BR /&gt;};&lt;BR /&gt;lpadc_conv_trigger_config_t ADC0_triggersConfig[1] = {&lt;BR /&gt;{&lt;BR /&gt;.targetCommandId = 1,&lt;BR /&gt;.delayPower = 0UL,&lt;BR /&gt;.channelAFIFOSelect = 0,&lt;BR /&gt;.channelBFIFOSelect = 0,&lt;BR /&gt;.priority = 1,&lt;BR /&gt;.enableHardwareTrigger = false&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static void ADC0_init(void) {&lt;BR /&gt;/* Initialize LPADC converter */&lt;BR /&gt;LPADC_Init(ADC0_PERIPHERAL, &amp;amp;ADC0_config);&lt;BR /&gt;/* Configure conversion command 1. */&lt;BR /&gt;LPADC_SetConvCommandConfig(ADC0_PERIPHERAL, ADC0_SOUNDER_MONITORING, &amp;amp;ADC0_commandsConfig[0]);&lt;BR /&gt;/* Configure trigger 3. */&lt;BR /&gt;LPADC_SetConvTriggerConfig(ADC0_PERIPHERAL, ADC0_SOUNDER_MONITORING_TRIGGER, &amp;amp;ADC0_triggersConfig[0]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* Initialization functions&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt;/* Initialize components */&lt;BR /&gt;ADC0_init();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* BOARD_InitBootPeripherals function&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitBootPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt;BOARD_InitPeripherals();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 13:37:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-LADC-software-trigger-option/m-p/1554940#M50729</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-11-16T13:37:08Z</dc:date>
    </item>
  </channel>
</rss>

