We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm doing an application containing some I2C code on a Infineon C161PI. When I put the I2C code into main, everything works alright. When I put it into a timer ISR, it works, too. But when I try to execute the I2C code (takes less than 1ms to execute) in the RTC ISR (called each second), the code doesn't work anymore. Any suggestions ? Michael
No I found the answer: The RTC was intialized and the ISR was called before the I2C was initialized. This caused the I2C to crash. After disabling the IEN before Project_Init manually, everything works alright.