AN2504 Freescale Semiconductor / Motorola, AN2504 Datasheet - Page 18

no-image

AN2504

Manufacturer Part Number
AN2504
Description
On-Chip FLASH Programming API for CodeWarrior Software
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2504/D
18
On-Chip FLASH Programming API for CodeWarrior Software
#ifndef __MCU_CONSTANTS_H__
#define __MCU_CONSTANTS_H__
#include <MC68HC908JL3.h>
/* API Configuration */
#define MASSBIT
#ifndef FLCR
#endif
#ifdef MC68HC908GR8
//
#endif
#ifdef MC68HC908KX8
//
Freescale Semiconductor, Inc.
#define FLCR
/* Communication Port Constants */
#define COMMPORT
#define COMMPORT_DIR
#define COMMPORT_ADDR
/* FLASH Constants */
#define FLASH_START
#define PAGE_SIZE
/* RAM Constants */
#define RAMSTART
#define CTRLBYT
#define CPUSPD
#define LADDRH
#define LADDRL
#define DATA(X)
/* ROM-resident Routines Constants */
#define GETBYTE()
#define RDVRRNG()
#define ERARNGE()
#define PRGRNGE()
#define DELNUS()
#define GET_BIT()
#define PUT_BYTE()
/* Communication Port Constants */
#define COMMPORT
#define COMMPORT_DIR
#define COMMPORT_ADDR
/* FLASH Constants */
#define FLASH_START
#define PAGE_SIZE
/* RAM Constants */
#define RAMSTART
#define CTRLBYT
#define CPUSPD
#define LADDRH
#define LADDRL
#define DATA(X)
For More Information On This Product,
// MC68HC908GR8
Go to: www.freescale.com
0x06
0xFE08 // FLASH CONTROL REGISTER
PTA
DDRA
0x00
0xEC00
32
0x40
(*(volatile unsigned char*)(0x48))
(*(volatile unsigned char*)(0x49))
(*(volatile unsigned char*)(0x4A))
(*(volatile unsigned char*)(0x4B))
(*(volatile unsigned char*)(0x4C + X))
{__asm jsr 0x1C00;}
{__asm jsr 0x1C03;}
{__asm jsr 0x1D06;}
{__asm jsr 0x1C09;}
{__asm jsr 0x1D0C;}
{__asm jsr 0xFED2;}
{__asm jsr 0xFEAE;}
PTA
DDRA
0x00
0xEC00
32
0x40
(*(volatile unsigned char*)(0x48))
(*(volatile unsigned char*)(0x49))
(*(volatile unsigned char*)(0x4A))
(*(volatile unsigned char*)(0x4B))
(*(volatile unsigned char*)(0x4C + X))
// CTRLBYT MASS ERASE BIT = 6
MOTOROLA

Related parts for AN2504