Hello ,
I have a demo board of UCD3138OL64EVM-031 Rev.A , and want to generate a 20KHz PWM, the duty of PWM can be control by variable resister R16, to control the 4-lines’s fan. Does anyone can support a sample code for PWM and ADC utility ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello ,
I have a demo board of UCD3138OL64EVM-031 Rev.A , and want to generate a 20KHz PWM, the duty of PWM can be control by variable resister R16, to control the 4-lines’s fan. Does anyone can support a sample code for PWM and ADC utility ?
Hung-Jin,
Have you taken a look at the UCD3138 Training labs? Going through these labs should provide you with the answers you are looking for. I believe what you are asking is done in Lab 7. Please let me know if you need any more help on this. Thanks!
Regards,
Brandon Vonk
Dear Brandon,
The output of lab7 is "DPWM0A", but I need the output pin is "PWM0" or "PWM1".
Exactly saying, I will use 40 pins of UCD3138 for my project. So, I will use the pin 8 of "UCD3138QFN".
Could you please give me a explicit sample code ? (Including multi-function using, reading from R16 or R17 by ADCXX )
Regards,
Hung-Jin