Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Executing Code While Writing to EEPROM in PSoC® 3 and PSoC 5 - KBA83440

Executing Code While Writing to EEPROM in PSoC® 3 and PSoC 5 - KBA83440

Anonymous
Not applicable
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.

0 Likes
314 Views
Contributors