Recommended Flash Register Write Method - KBA219031 | Cypress Semiconductor
Support & Community
Recommended Flash Register Write Method - KBA219031
Last Updated: March 16, 2017
Is there any recommended method or process for writing Flash register?
Each register may contain multiple fields. To get best forward /backward compatibility, keep the following points in mind when writing flash registers.
- Do NOT change RFU (Reserved for Future Use) bits. Always leave them at their default value.
- Change only the fields that you want to change. It is recommended to use following process:
- Read the register value.
- Use AND/OR operations to CLEAR/SET the bits you want to change.
- Write the changed value back to register.