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 have same problem( as wrote bellow ), previously discussed in this forum. but this solution couldnt solve my problem. i2c communication works but when interrupt( from rtc) active, i2c communication failed. what should i do, any suggestion? im using ricoh r2025 rtc, i am trying algorithm at this link at page 43 www.ricoh.com/.../r2025x-e.pdf
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 Read-Only Author Michael Zirngibl Posted 20-Oct-2000 13:01 Toolset C166 RE: C161 interrupt/RTC question Michael Zirngibl 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.