cancel
Showing results for 
Search instead for 
Did you mean: 

STUSB4500L How to clear interrupts

MLang.7
Associate III

I am currently writing a driver for the STUSB4500L which has the ALERT pin (active low) connected to the MCU. An interrupt is triggered on a falling edge, and I then read the ALERT_STATUS_1 register. But somehow, the interrupt is not cleared. I then masked alles interrupts but the PORT_STATUS_AL bit in the ALERT_STATUS_1_MASK register. When reading the port status registers PORT_STATUS_0 and PORT_STATUS_1 the interrupt seems to be cleared (success!).

I then unmasked the TYPEC_MONITORING_STATUS_AL interrupt flag, but reading both TYPEC_MONITORING_STATUS_0 and TYPEC_MONITORING_STATUS_1 registers didn't clear the interrupt flag (no success).

So, how can I clear the interrupts? Currently, I am reading the above mentioned registers with individual reads, might that be a problem?

0 REPLIES 0