LP11C24 ADC in, PWM out

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

LP11C24 ADC in, PWM out

756 Views
altec1980
Contributor I

Good morning,

Hope this message finds you well. I recently bought many LPC11C24 units
for academic purposes.

I would like to know if you could share a C/C++ script taking an ADC
input (from a potentiometer) and then, proportionally scaling this input to a
PWM output duty cycle (ex: to LPC_TMR32B1->MR1 on pin # R_PIO1_2 ).

I'm using the MCUXpresso IDE (v11.6.0 ). I'm also using the common
header file "LPC11xx.h".

Thanks in advance for any help.

0 Kudos
Reply
1 Reply

721 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @altec1980 .

 

You can find some examples on the LPCOpen folder for the LPC11C24, to install it you must click on "Import project(s) from file system…" then click on "Browse" and look for the next route on the file explorer.

"MCUXpressoIDE_11.6.0_8187\ide\plugins\com.nxp.mcuxpresso.tools.wizards_11.6.0.202112161359\Examples\LPCOpen"

Install the .zip called "lpcopen_v2_00a_lpcxpresso_nxp_lpcxpresso_11c24"

 

Regards, Miguel.

0 Kudos
Reply