Skip to content

EMC2301: Handle Fan Failures #3

@TheGuyDanish

Description

@TheGuyDanish

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions