You are here

Executing code while writing to EEPROM in PSoC 3/5 | Cypress Semiconductor

Support & Community

Executing code while writing to EEPROM in PSoC 3/5

Last Updated: March 03, 2011

Can we execute code while writing to EEPROM in PSoC 3/5?


PSoC 3 and PSoC 5 device will continue to execute code while EEPROM is being written into. EEPROM component provides two types of API’s for writing to EEPROM viz., 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 EEPROM write operation. The status of write operation performed by this API can be obtained using the API EEPROM_QueryWrite(parameters).


EEPROM_Write(parameters) is a blocking API which will not return until the write operation is completed. If this API is used, code execution cannot continue till EEPROM has been 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 on how to use the above mentioned API’s.

Knowledge Base Tags: 

Provide feedback on this article

Browse KB By Product

Browse KB by Type