s908ey16g2vfar Freescale Semiconductor, Inc, s908ey16g2vfar Datasheet - Page 290

no-image

s908ey16g2vfar

Manufacturer Part Number
s908ey16g2vfar
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Differences Between 908EY16A and 908EY16
B.4.2 Program
The existing 908EY16 routine uses the row programming method to program any range of addresses
(starting address in H:X and ending address in RAM at LADDR, data to be programmed is in RAM starting
after LADDR). This routine is interrupted every 6 bytes to service the COP.
The 908EY16A routine uses the same variables, so the call setup would be the same. In the 908EY16A,
the COPD bit is checked. If COP servicing is required, then a byte-by-byte algorithm is used to program
the range. If no COP servicing is required, then a combination of byte-by-byte and row programming is
used for a faster algorithm. (In fact, the fastest programming would occur if the start address is the start
of a row and the end address is the end of the same row. Then only the faster row programming method
would be used.) To this point, the routines are compatible. However, there is a range limitation on this
second algorithm. If a range is passed that crosses an xxFF to xx00 boundary, then it will fail. The
byte-by-byte algorithm does not have this limitation.
The maximum number of bytes required for the stack for all FLASH programming routines is now 13
bytes. In the 908EY16, the maximum number of stack locations was 12 bytes. The user should check to
verify that enough stack space is set aside to accommodate this one byte increase.
290
Page erase
Mass erase
Program
Routine
MC68HC908EY16A • MC68HC908EY8A Data Sheet, Rev. 1
I bit set on exit
Selected with CTRBYT
No restrictions on range
to be programmed
Table B-1. Programming Routine Comparison
908EY16
I bit restored to value at time of call
Selected with ADDR = FLBPR
If COPD = 1, range cannot include
xxFF/xx00 boundary
908EY16A
Freescale Semiconductor

Related parts for s908ey16g2vfar