-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
The EMC2301 can send an interrupt to the controller on a 'fan failure' condition, the fan failure conditions are:
DVFAIL- Drive Fail - This is more relevant when using FSC (Fan Speed Control) mode, where the EMC2301 attempts to reach a certain RPM rather than a duty cycle. A drive fail happens when the fan cannot reach the commanded RPM at 100% PWM.FNSPIN- Fan Spin - This failure condition is asserted whenever a fan driver cannot spin up.FNSTL- Fan Stall - This failure condition is asserted whenever a fan stalls.
At this moment in time, there is no handling of this interrupt other than a message being printed in the REPL. It would be prudent to store a variable when the failure interrupt is delivered, then present it to the user. By reading register 6-2 (0x24/emc2301_regs.FAN_STATUS), it is possible to identify the type of failure that has occurred.