mc908jl16 Freescale Semiconductor, Inc, mc908jl16 Datasheet - Page 194

no-image

mc908jl16

Manufacturer Part Number
mc908jl16
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc908jl16CDWE
Manufacturer:
Freescale
Quantity:
2 865
Part Number:
mc908jl16CDWE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc908jl16CFA
Manufacturer:
JAE
Quantity:
332
Part Number:
mc908jl16CFJE
Manufacturer:
Freescale Semiconductor
Quantity:
1 806
Part Number:
mc908jl16CFJE
Manufacturer:
FREESCALE
Quantity:
2 654
Part Number:
mc908jl16CFJE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc908jl16CFJE
Manufacturer:
FREESCALE
Quantity:
2 654
Part Number:
mc908jl16CFJE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc908jl16CFJER
Manufacturer:
Freescale Semiconductor
Quantity:
29 890
Part Number:
mc908jl16CFJER
Manufacturer:
Freescale
Quantity:
198
Part Number:
mc908jl16CFJER
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc908jl16CPE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc908jl16CSPE
Manufacturer:
FREESCALE
Quantity:
20 000
Development Support
The control and data bytes are described below.
16.3.9.1 PRGRNGE
PRGRNGE is used to program a range of FLASH locations with data loaded into the data array.
The start location of the FLASH to be programmed is specified by the address ADDRH:ADDRL and the
number of bytes to be programmed is specified by DATASIZE. The maximum number of bytes that can
be programmed in one routine call is 128 bytes (max. DATASIZE is 128).
ADDRH:ADDRL do not need to be at a page boundary, the routine handles any boundary misalignment
during programming. User software must ensure that the selected range is first erase. User software is
also responsible for verifying programmed locations.
The coding example below is to program 32 bytes of data starting at FLASH location $EF00, with a bus
speed of 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
194
Bus speed — This one byte indicates the operating bus speed of the MCU. The value of this byte
should be the nearest integer of the bus speed (in MHz) times 4, and should not be set to less than
4 (i.e. minimum bus speed is 1MHz).
Data size — This one byte indicates the number of bytes in the data array that are to be
manipulated. The maximum data array size is 128. Routines EE_WRITE and EE_READ are
restricted to manipulate a data array between 2 to 15 bytes. Whereas routines ERARNGE and
MON_ERARNGE do not manipulate a data array, thus, this data size byte has no meaning.
Start address — These two bytes, high byte followed by low byte, indicate the start address of the
FLASH memory to be manipulated.
Data array — This data array contains data that are to be manipulated. Data in this array are
programmed to FLASH memory by the programming routines: PRGRNGE, MON_PRGRNGE,
EE_WRITE. For the read routines: LDRNGE, MON_LDRNGE, and EE_READ, data is read from
FLASH and stored in this array.
ORG
:
DS.B
DS.B
DS.W
DS.B
RAM
1
1
1
32
Routine Description
Data Block Format
Calling Address
Routine Name
Table 16-11. PRGRNGE Routine
MC68HC908JL16 Data Sheet, Rev. 1.1
; Indicates 4x bus frequency
; Data size to be programmed
; FLASH start address
; Reserved data array
Stack Used
PRGRNGE
Program a range of locations
$FC06
11 bytes
Bus speed (BUS_SPD)
Data size (DATASIZE)
Start address high (ADDRH)
Start address (ADDRL)
Data 1 (DATA1)
Data N (DATAN)
:
Freescale Semiconductor

Related parts for mc908jl16