AN2504 Freescale Semiconductor / Motorola, AN2504 Datasheet - Page 5

no-image

AN2504

Manufacturer Part Number
AN2504
Description
On-Chip FLASH Programming API for CodeWarrior Software
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Coding Conventions
MOTOROLA
On-Chip FLASH Programming API for CodeWarrior Software
The virtual registers and their descriptions are listed in
Virtual register DATA is of variable length (from 1 to 64 bytes long), depending
on the range over which the function will actuate.
This application note follows the following coding conventions.
Macros
Functions
Local variables
Assembly
CTRLBYT
CPUSPD
LADDRH
LADDRL
DATA
labels
Freescale Semiconductor, Inc.
Structure
Register
Virtual
For More Information On This Product,
Name
Go to: www.freescale.com
Used in erasing procedures for indicating a
CPU speed passed as fop x 4
Last address of a range (high byte)
Last address of a range (low byte)
Buffer that stores the data to be programmed or
All macros are written in all
The first letter of each word of the
All local variables are in lower
All assembly labels are written in
UPPER CASE
function’s name is capitalized
case letters preceded by an
underscore
all capital letters preceded by an
underscore
single PAGE erase or MASS erase
receives the data read
Table 4. Coding Conventions
Table 3. Virtual Registers
Convention
Function
#Define DATA_END 0xCC
Byte ReadByte (void)
Byte _cancel_buttons.
_RECEIVE_BYTE:
Table
Example
3.
Coding Conventions
RAM + 0x08
RAM + 0x09
RAM + 0x0A
RAM + 0x0B
RAM + 0x0C
Address
AN2504/D
5

Related parts for AN2504