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

cross mob

Recommended Flash Register Write Method - KBA219031

Recommended Flash Register Write Method - KBA219031

Anonymous
Not applicable

Version: **

Translation - Japanese: Flashレジスタへの推奨書き込み方法 - KBA219031 - Community Translated (JA)

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.  
    3. Use AND/OR operations to CLEAR/SET the bits you want to change.
    4.  
    5. Write the changed value back to register.
0 Likes
385 Views
Contributors