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.