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.

How can I control the 4-wires fan in a closed loop with UCD3138 device?

Other Parts Discussed in Thread: UCD3138

How can I control the 4-wires fan in a closed loop with UCD3138 device?  Namely, I need to measure the speed of the fan and control the duty cycle according to the temperature change. In other words, I want to use PWM0 or PWM1 to generate 25KHz, ADC1 to read the thermistor change and read the speed out of fan.