You are here

Recommended Flash Register Write Method - KBA219031 | Cypress Semiconductor

Support & Community

Recommended Flash Register Write Method - KBA219031

Last Updated: March 16, 2017
Version: 
**
Question: 

Is there any recommended method or process for writing Flash register? 

Answer: 

Each register may contain multiple fields. To get best forward /backward compatibility, keep the following points in mind when writing flash registers.

  1. Do NOT change RFU (Reserved for Future Use) bits. Always leave them at their default value. 
  2. Change only the fields that you want to change. It is recommended to use following process: 
    1. Read the register value. 
    2. Use AND/OR operations to CLEAR/SET the bits you want to change.
    3. Write the changed value back to register.
Knowledge Base Tags: 

Provide feedback on this article

Browse KB By Product

Browse KB by Type