AN1827 Freescale Semiconductor / Motorola, AN1827 Datasheet - Page 59
AN1827
Manufacturer Part Number
AN1827
Description
Programming and Erasing FLASH Memory on the MC68HC908AS60
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN1827.pdf
(60 pages)
- Current page: 59 of 60
- Download datasheet (400Kb)
} while ((status!=8) && (attempt<flsPULSES));
Prog990:
}
/**********************************************************************************/
/****
/**********************************************************************************/
/* This routine determines whether flcr1 or flcr2 should be written to
/* based on the FLASH address specified by FLASH_addr.
/*
/* Initializations required:
/*
/* Values returned:
/*
/**********************************************************************************/
void writeFLCR (unsigned char A)
{
FLCR990:
AN1827
MOTOROLA
EnableInterrupts;
return (8-status);
None
if (FLASH_addr >= &FLASH1)
else
return;
set FLASH_addr
for (byte=0; byte<8; byte++)
if (status != 8) {
if (status == 8)
FLCR1 = FLCR1 ^ A;
FLCR2 = FLCR2 ^ A;
if (*(FLASH_addr+byte) == data[byte]) status++;
writeFLCR (MARGIN);
attempt++;
writeFLCR (MARGIN);
Write to a FLASH Control Register
Freescale Semiconductor, Inc.
}
For More Information On This Product,
Go to: www.freescale.com
/* -- Program Success --
/* Step 13 and 14 - Check to see if
/*
/*
/*
/*
/*
/* -- Program Failure --
/* Step 15 - Clear the MARGIN bit
/* Step 16 - Increment attempt
/* counter
/* Clear the MARGIN bit
/* Step 17 - If attempt is less than
/*
/* Clear the interrupt mask bit
/* If programming was unsuccessful in */
/*
/*
/* FLASH-1=$8000, FLASH-2=$0450
/*If FLASH_addr is in FLASH-1 array
/* write to FLCR1 Register
/* else write to FLCR2 Register
proceed with the bracketed
flsPULSES, go back to step 2
in the FLASH page. If not,
if statement.
returned
the correct data was programmed
expressions. If so, skip to next */
flsPULSES, a non-zero value is
Application Note
C Source Code
*****/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
59
Related parts for AN1827
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola