Open crawfxrd opened 2 months ago
The problem right now is that PWM_DUTY
is used in the fan tables (__code
), so it must be a fixed value (which obviously means it can't read from the register).
At the very least, a comment should be added that the 0xFF is the fixed value for CTR0
, and that any change to CTR in pwm_init()
must be updated here.
Use Cycle Time Register to determine the PWM value that should be used for
DCRi
.255 (0xFF) here should be
CTR0
.