void Seg_Erase(void){
_DINT();
WDTCTL = WDTPW + WDTHOLD;
char *flase_erase;
flase_erase = (char *)0x8000; //指向要檫写的段地址
while(FCTL3&BUSY);
FCTL3 = FWKEY; //清除LOCK
FCTL1 = FWKEY +ERASE; //段檫除
*flase_erase = 0; //空写将0写为1
FCTL3 = FWKEY + LOCK; //LOCK置1
_EINT();
}
请问在进行FLASH段擦除的时候,调用这个函数是只擦除一个字节? |