PSoC4: I2C Interrupt

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
ShVy_264716
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

Hello Everyone

   

Can anyone please help me to configure I2C interrupt? In the configuration block of I2C, there is no setting given to configure interrupt. As per my requirement, I need to interface Raspberry Pi as master with PSoC4 as slave I2C. I successfully wrote data from master to slave and read data from slave to master without using interrupt. Please find attached herewith my project of PSoC4 that does this. Now I want to develop the same functionality using interrupt programming. Any help would be highly appreciated.

   

 

   

Thanks and Regards

   

Shaunak

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Have a look into the generated file I2C_Slave_SCB_IRQ.c (Search for #START). There you will find a stub to insert your interrupt code and a hint how to manage your own code using _StartEx() function.

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

C Interrupts, attached.

   

 

   

Regards, Dana.

0 Likes