Anonymous
Not applicable
Apr 17, 2009
12:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 17, 2009
12:16 AM
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.......
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.......
Labels
- Labels:
-
PSoC 1
2 Replies
Apr 17, 2009
12:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 17, 2009
12:40 AM
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
Anonymous
Not applicable
Jul 04, 2009
02:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 04, 2009
02:23 PM
Hi Subbu,
This might be too much late and you might have resolved your issue.
But as a standard firmware rule, interrupt routine should be as small as possible. So interrupt should not keep your CPU engage for most of the time and allow it to do other job.
Cheers,
Brijesh
This might be too much late and you might have resolved your issue.
But as a standard firmware rule, interrupt routine should be as small as possible. So interrupt should not keep your CPU engage for most of the time and allow it to do other job.
Cheers,
Brijesh