MC68HC908AP8CB Freescale Semiconductor, MC68HC908AP8CB Datasheet - Page 133

no-image

MC68HC908AP8CB

Manufacturer Part Number
MC68HC908AP8CB
Description
IC MCU 8K FLASH 8MHZ 42SDIP
Manufacturer
Freescale Semiconductor
Series
HC08r
Datasheet

Specifications of MC68HC908AP8CB

Core Processor
HC08
Core Size
8-Bit
Speed
8MHz
Connectivity
I²C, IRSCI, SCI, SPI
Peripherals
LED, LVD, POR, PWM
Number Of I /o
32
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
42-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
The coding example below uses the $EE00–$EFFF page for data storage. The data array size is 15
bytes, and the bus speed is 4.9152 MHz. The coding assumes the data block is already loaded in RAM,
with the address pointer, FILE_PTR, pointing to the first byte of the data block.
FILE_PTR:
BUS_SPD
DATASIZE
START_ADDR
DATAARRAY
EE_WRITE
FLASH_START
INITIALISATION:
MAIN:
Freescale Semiconductor
:
MOV
MOV
LDHX
STHX
RTS
BSR
:
:
LHDX
JSR
The EE_WRITE routine is unable to check for incorrect data blocks, such
as the FLASH page boundary address and data size. It is the responsibility
of the user to ensure the starting address indicated in the data block is at
the FLASH page boundary and the data size is 7 to 15. If the FLASH page
is already programmed with a data array with a different size, the
EE_WRITE call will be ignored.
ORG
DS.B
DS.B
DS.W
DS.B
EQU
EQU
ORG
#20,
#15,
#FLASH_START
START_ADDR
INITIALISATION
#FILE_PTR
EE_WRITE
Figure 8-10. EE_WRITE FLASH Memory Usage
RAM
1
1
1
15
$FF36
$EE00
FLASH
BUS_SPD
DATASIZE
PAGE BOUNDARY
PAGE BOUNDARY
ONE PAGE = 512 BYTES
MC68HC908AP Family Data Sheet, Rev. 4
; Indicates 4x bus frequency
; Data size to be programmed
; FLASH starting address
; Reserved data array
NOTE
CONTROL: 9 BYTES
F L A S H
DATA ARRAY
DATA ARRAY
DATA ARRAY
ROM-Resident Routines
133

Related parts for MC68HC908AP8CB