160
MC96F8204
ABOV Semiconductor Co., Ltd.
The Checksum operation
procedure in User CRC/Checksum mode
1.
Select User CRC/Checksum Mode and Checksum
2.
Clear Flash CRC data register(FCDRH/FCDRL)
3.
Read data from the Flash ROM
4.
Write the data to FCDIN Register
5.
Read the Checksum result
Program Tip
–
User CRC/Checksum mode
unsigned char code *rom_addr=0x0000;
unsigned int i=0;
FCCR |= _1000_0000;
// Flash CRC User CRC/Checksum Mode
FCCR &= _0010_0000;
// Flash CRC Checksum
FCCR |= _0100_0000;
// Flash CRC data register clear
for(i=0x0000; i <= 0x3FFF; i++)
// 0000H~3FFFH
{
FCDIN = rom_addr[i];
WDTCR |= _0010_0000;
// Clear WDT counter
}
//**** Read Checksum result
Temp0 = FCDRH;
Temp1 = FCDRL;
Содержание MC96F8104M
Страница 13: ...13 MC96F8204 ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 20 Pin SOP Package...
Страница 14: ...14 MC96F8204 ABOV Semiconductor Co Ltd Figure 4 2 20 Pin TSSOP Package...
Страница 15: ...15 MC96F8204 ABOV Semiconductor Co Ltd Figure 4 3 16 Pin SOPN Package...
Страница 16: ...16 MC96F8204 ABOV Semiconductor Co Ltd Figure 4 4 10 Pin SSOP Package...
Страница 17: ...17 MC96F8204 ABOV Semiconductor Co Ltd Figure 4 5 8 Pin SOP Package...