[NUC240] ADC, PWM with PID Control

Post Reply
chhsieh3
Posts: 309
Joined: 13 Mar 2020, 09:08

03 Jun 2020, 14:40

  • Application: NUC240 uses PID Controller to adjust PWM output DC voltage in RC filter and read ADC value.
  • BSP Version: NUC240 BSP CMSIS v3.01.001
  • Hardware: NuEdu-EVB NUC240 V2.1 with NuEdu-Basic01 V2.0
The PWM CH4 waveform to filters output the DC voltage via the RC filter circuit, the voltage is read by the ADC CH1, and the feedback voltage is gradually adjusted to a predetermined value using the PID controller. The code preset is SET = 1.5V for target voltage.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1217115659
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 66 guests