Hi,
I am planning to use the I2C interrupt of I2C1 for detecting a Host device connection.
The interrupt is getting low when a host device is connected but the line is not getting high when the Host is disconnected
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am planning to use the I2C interrupt of I2C1 for detecting a Host device connection.
The interrupt is getting low when a host device is connected but the line is not getting high when the Host is disconnected
Hi Baghiya,
You need to clear the interrupt by writing the registers shown below. You can find the details in Host interface technical reference manual.
Thanks
Prajith
Hi Prajith,
So, the interrupt wont get revoked (low to high) when the event is gone???
Hi Prajith,
Sometimes, the Interrupt pin is low even in Power on condition.
The only Interrupt mask set if the USB Host present in Port 2.
But it is low even when Port 2 has no connection
I can reproduce the same in EVK too
Hi Bhaghiya,
Interrupt after power up usually happens if the Ready for patch or patch loaded interrupt is enabled.
You can go to debug mode and find all the active interrupts. If you are seeing any of them enabled, you need to clear it.
Please let me know if you need further help on this.
Hi prajith,
I have checked in debug mode too
None of them is enabled.
Yet the line is driven low.
Hi Prajith,
I am using DH only,
Also, please mention what do you mean by clear the interrupt (whether it is in the PD side or processor side)?
Hi,
Processor has to clear the interrupt event by writing IntClear1 or IntClear2 (0x18/ 0x19). You can find the details in TRM.
Thanks
Prajith