[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
void Flash_wb(uchar *Data_ptr,uchar byte)
{
FCTL3 = FWKEY;
FCTL1 = FWKEY+WRT;
*Data_ptr=byte;
FCTL1 = FWKEY;
FCTL3 = FWKEY+LOCK;
}
и стирание всей страницы:
void Flash_clr(uint *Data_ptr )
{
FCTL3 = FWKEY;
FCTL1 = FWKEY+ERASE;
*Data_ptr=0;
FCTL1 = FWKEY;
FCTL3 = FWKEY+LOCK;
}
E-mail: info@telesys.ru