hi,
I can't do the example presented in 19.7.6 A Technique to Determine SCLKR, CLKPE, and
CLKPM, to clear or set censorship. MPC555 works at 10MHZ, and when set clock frequency more than 20 Mhz, the target goes to reset. so what are the values to be take for SCLKR, CLKPE, CLKPM ans PAWS to clear first Censor, then set it to no censor ship switch this procedure:
To clear CENSOR[0:1],
1. Write PROTECT[0:7] = 0x00 to enable the entire array for erasure.
2. Using section 19.7.6 A Technique to Determine SCLKR, CLKPE, and
CLKPM, write the pulse width timing control fields for an erase pulse,
BLOCK[0:7] = 0xFF, CSC = 1, PE = 1 and SES = 1 in the CMFCTL register.
3. Perform an erase interlock write.
4. Write EHV = 1 in the CMFCTL register. This will apply the erase voltages to the
entire CMF array and NVM bit 0 and the programming voltages to NVM bit 1
simultaneously.
5. Read the CMFCTL register until HVS = 0.
6. Write EHV = 0 in the CMFCTL register.
7. Read the entire CMF array and the shadow information words. If any bit equals
zero, go to step 4.
8. Read CENSOR[0:1]. If CENSOR[0:1] ≠ 0 go to step 4.
9. Write SES = 0 and CSC = 0.
trying to disable interrupt before erasing flash don't resolve the problem. have you more details please ?
thanks for help