English
Language : 

SAB88C166 Datasheet, PDF (19/58 Pages) Siemens Semiconductor Group – 16-Bit CMOS Single-Chip Microcontrollers with/without oscillator prescaler with 32 KByte Flash EPROM
SAB 88C166(W)
Flash Programming Example
This example describes the Flash programming algorithm. A source block of code and/or data
within the first 32 Kbytes of segment 0 is copied (programmed) to a target block within the Flash
memory, which is mapped to segment 1 in this case. The start and the end address of the source
block to be copied are specified by the parameters SRC_START or SRC_END respectively. The
target Flash memory block begins at location FLASH_START. This example uses 32-bit Flash
programming.
Figure 6
Memory Allocation for Flash Programming Example
Note: This example represents one possibility how to program the Flash memory. Other solutions
may differ in the way they provide the source data (eg. without external memory), but use the
same Flash programming algorithm.
The FCR has been defined with an EQU assembler directive. Accesses to bits of the FCR are made
via an auxiliary GPR, as the FCR itself is not bit-addressable.
The shown example uses the following assumptions:
q Pin VPP/EBC1 receives a proper VPP supply voltage.
q The SAB 88C166(W) runs at 20 MHz CPU clock (absolute time delays refer to it).
q The Flash memory is mapped to segment 1. All DPPs are set correctly.
Semiconductor Group
18