Register range can edit or not

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Register range can edit or not

跳至解决方案
927 次查看
Neo_zhang
Contributor II

MC9S12DT256CPVE  0x0-0x3ff range is register, can it be written to all FF? Does this matter when I copy One chip  to  another?

标记 (1)
0 项奖励
回复
1 解答
903 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

The registers are RAM memory which loses content after power off. Each reset sets the registers to reset values described for each register in the data sheet. Some of the register are write once only which means that after the first write they are not re-writable till next reset. Also there are register which are loaded during reset automatically by a value stored in special fields of the flash memoroy (like register FPROT, FSEC, COPCTL,…)

When you copy content of one MCU to another the content of the register has no meaning because, as I wrote above, the content is either defined after reset (reset value of the register) or loaded from the special field (setup registers for security, protection, COP, ….)

 

Best regards,

Ladislav

在原帖中查看解决方案

1 回复
904 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

The registers are RAM memory which loses content after power off. Each reset sets the registers to reset values described for each register in the data sheet. Some of the register are write once only which means that after the first write they are not re-writable till next reset. Also there are register which are loaded during reset automatically by a value stored in special fields of the flash memoroy (like register FPROT, FSEC, COPCTL,…)

When you copy content of one MCU to another the content of the register has no meaning because, as I wrote above, the content is either defined after reset (reset value of the register) or loaded from the special field (setup registers for security, protection, COP, ….)

 

Best regards,

Ladislav