AN2504 Freescale Semiconductor / Motorola, AN2504 Datasheet - Page 14

no-image

AN2504

Manufacturer Part Number
AN2504
Description
On-Chip FLASH Programming API for CodeWarrior Software
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2504/D
Typical API Calls
14
On-Chip FLASH Programming API for CodeWarrior Software
The following software performs typical FLASH-programming API calls:
/*==================================================================*
/********************************************************************
//#include "jl3.h"
#include <MC68HC908JL3.h>
#include <hidef.h>
#include <stdtypes.h>
#include "flash_api.h"
/********************************************************************
#define MY_INFO_ADDRESS
#define MY_INFO_SIZE
#define MY_TRANSMISION_ADDRESS
#define MY_TRANSMISION_SIZE
#define FLASH_TEST_ADDRESS
#define DATA_START
#define DATA_END
/*******************************************************************
#pragma CONST_SEG MY_INFO
volatile const Byte TABLE1[8] = {'M','o','t','o','r','o','l','a'};
#pragma CONST_SEG MY_TRANSMISION
volatile const Byte TABLE2[29] = {
'T','r','a','n','s','m','i','t',' ','R','a','n','g','e',' ',
'w','a','s',' ','s','u','c','c','e','s','s','f','u','l' };
#pragma CONST_SEG DEFAULT
/********************************************************************
/* These ISR are written to show a possible work-around to
*
* Copyright (c) 2002, Motorola Inc.
* Motorola Application Note
*
* File name
* Author
* Department
*
* Description
*
*
*
* History
*
*==================================================================*/
********************************************************************/
********************************************************************/
*******************************************************************/
********************************************************************/
*/
Freescale Semiconductor, Inc.
avoid routine ReadByte from entering into an infinite loop.
INCLUDES
DEFINES
TABLES
ISR
For More Information On This Product,
Go to: www.freescale.com
: flash_test.c
: Mauricio Capistran-Garza
: Guadalajara - SPS
: This is a sample program that shows how
:
ROM-resident routines can be used through
the use of a simple C-language API
0xFB00
0xFB08
0xFB40
0x008C
0x00CC
// Include Peripheral declarations
29
8
MOTOROLA

Related parts for AN2504