- 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
|