2 Replies Latest reply on Dec 5, 2011 5:43 AM by pmad

    While writing EEPROM the interrupts are disturbed...

    subramanian.m
              Hi,   
      In my project,i use EEPROM.I have no problem in writing and reading data from EEPROM,but while writing EEPROM the interrupts are disturbed. My project needs continuous interrupt service. How can i rectify this problem.......   
        • 1. Re: While writing EEPROM the interrupts are disturbed...
          graa
                  Unfortunately, this is not possible. An EEPROM write uses the SSC instruction to access the Flash write functions. When SSC instruction is executed, the global interrupts automatically get disabled. When you write an EEPROM block, it takes around 20ms to write to the Flash block. Will this 20mS latency be a problem in your application?   
          • 2. Re: While writing EEPROM the interrupts are disturbed...
            pmad

            Subbu,

            Would you please elaborate the statement that "the Interrupts are disturbed". Also, if you are using I2CHW module and I2CHW_fSendStart() and I2CHW_SendStop() API, then these APIs disable the I2C interrupt, so it needs to be enabled again and pending interrupts of I2C has to be cleared.

            If you don't want this to happen then you can wait for some time to complete the write or read transaction. This can be done by a normal for loop.

            Also, there is an example project on CY website which might be helpful to you. Here is the link for that project:     http://www.cypress.com/?rID=34661.

            Regards
            Pushek