Executing Code While Writing to EEPROM in PSoC® 3 and PSoC 5 - KBA83440
Anonymous
Not applicable
Feb 06, 2015
01:56 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Feb 06, 2015
01:56 AM
Version: **
Question: Can we execute code while writing to EEPROM in PSoC® 3 and PSoC® 5?
Answer:
PSoC 3 and PSoC 5 device continue to execute code while a write to EEPROM is in progress. The EEPROM Component provides two types of APIs for writing to EEPROM: blocking and non-blocking APIs.
- EEPROM_StartWrite(parameters) is a non-blocking API. This implies that after this API is called, the code execution is not held up by the EEPROM write operation. You can obtain the status of the write operation performed by this API using the API EEPROM_QueryWrite(parameters).
- EEPROM_Write(parameters) is a blocking API, which does not return a status until the write operation is completed. If this API is used, code execution cannot continue until the EEPROM is written. It returns a status code indicating whether the write operation is successful or not.
Refer to the EEPROM Component datasheet in PSoC Creator™ to know more about how to use these APIs.
Labels
Rate this article:
Contributors
-
This widget could not be displayed.Anonymous