The user's manual states on how to set FMR01 bit of FMR0 register. Why?
Latest Updated:03/08/2012
Question:
The user's manual states about how to set the FMR01 bit of the FMR0 register, "To set this bit to "1", write "0" and then "1" in succession". Why?
Answer:
This prevents easy rewrite. To set this bit to "1", set "0" once immediately before the instructions to set "1" and then set "1". The instructions should be as follows:
bclr bit_symbol
bset bit_symbol
Make sure no interrupts or DMA transfers are generated between these two instructions.
Suitable Products
M32C/88 |
M32C/87 |
M32C/85 |
M32C/84 |
M32C/83 |
M32C/80 |
M16C/62A |
M16C/62A(M16C/62T) |
M16C/62M |
M16C/62N |
M16C/62N(M3062GF8NFP, M3062GF8NGP) |
M16C/62P |
M16C/63 |
M16C/64A |
M16C/64C |
M16C/65 |
M16C/65C |
M16C/6C |
M16C/6N4, M16C/6N5 |
M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN |
M16C/5L, M16C/56 |
M16C/5LD, M16C/56D |
M16C/5M, M16C/57 |
M16C/30P |
M16C/29 |
M16C/28 |
M16C/26A |
M16C/1N |