Enabling Hardware Trigger-Based ADC Input Sampling for PWM Duty Cycle Control-with FRDM-MCXA156

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

Enabling Hardware Trigger-Based ADC Input Sampling for PWM Duty Cycle Control-with FRDM-MCXA156

Enabling Hardware Trigger-Based ADC Input Sampling for PWM Duty Cycle Control-with FRDM-MCXA156

This document introduces how to configure and use the hardware trigger feature of the Analog-to-Digital Converter (ADC) on the FRDM-MCXA156 development board.

It presents an event where using an external button initiates a reading and ADC conversion that reads an analog input from a potentiometer; the resulting digital value is then used to dynamically update the duty cycle of a PWM signal connected to an external output represented by a LED.

This example demonstrates the usage of external connections and analog measurement by walking through the modifications required to enable hardware triggering via the Input Multiplexing (INPUTMUX) module.

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-2409307%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EEnabling%20Hardware%20Trigger-Based%20ADC%20Input%20Sampling%20for%20PWM%20Duty%20Cycle%20Control-with%20FRDM-MCXA156%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409307%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CDIV%3E%0A%3CP%3EThis%20document%20introduces%20how%20to%20configure%20and%20use%20the%20hardware%20trigger%20feature%20of%20the%20Analog-to-Digital%20Converter%20(ADC)%20on%20the%20%3CSTRONG%3EFRDM-MCXA156%3C%2FSTRONG%3E%20development%20board.%3C%2FP%3E%0A%3CP%3EIt%20presents%20an%20event%20where%20using%20an%20external%20button%20initiates%20a%20reading%20and%20ADC%20conversion%20that%20reads%20an%20analog%20input%20from%20a%20potentiometer%3B%20the%20resulting%20digital%20value%20is%20then%20used%20to%20dynamically%20update%20the%20duty%20cycle%20of%20a%20PWM%20signal%20connected%20to%20an%20external%20output%20represented%20by%20a%20LED.%3C%2FP%3E%0A%3CP%3EThis%20example%20demonstrates%20the%20usage%20of%20external%20connections%20and%20analog%20measurement%20by%20walking%20through%20the%20modifications%20required%20to%20enable%20hardware%20triggering%20via%20the%20Input%20Multiplexing%20(INPUTMUX)%20module.%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2409307%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EAnalog(ADC%7CCMP%7CDAC%7COpAmps)%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EClock%7CTimers%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFRDM-Training%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMCXA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
yesterday
Updated by: