English
Language : 

MC9S08DV60 Datasheet, PDF (61/414 Pages) Freescale Semiconductor, Inc – HCS08 Microcontrollers
Chapter 4 Memory
4.5.10 Flash Registers and Control Bits
The Flash module has seven 8-bit registers in the high-page register space and three locations in the
nonvolatile register space in Flash memory. Two of those locations are copied into two corresponding
high-page control registers at reset. There is also an 8-byte comparison key in Flash memory. Refer to
Table 4-3 and Table 4-5 for the absolute address assignments for all Flash registers. This section refers to
registers and control bits only by their names. A Freescale Semiconductor-provided equate or header file
normally is used to translate these names into the appropriate absolute addresses.
4.5.10.1 Flash Clock Divider Register (FCDIV)
Bit 7 of this register is a read-only flag. Bits 6:0 may be read at any time but can be written only one time.
Before any erase or programming operations are possible, write to this register to set the frequency of the
clock for the nonvolatile memory system within acceptable limits.
7
6
5
4
3
2
1
0
R DIVLD
PRDIV8
DIV
W
Reset
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 4-5. Flash Clock Divider Register (FCDIV)
Table 4-7. FCDIV Register Field Descriptions
Field
7
DIVLD
6
PRDIV8
5:0
DIV
Description
Divisor Loaded Status Flag — When set, this read-only status flag indicates that the FCDIV register has been
written since reset. Reset clears this bit and the first write to this register causes this bit to become set regardless
of the data written.
0 FCDIV has not been written since reset; erase and program operations disabled for Flash.
1 FCDIV has been written since reset; erase and program operations enabled for Flash.
Prescale (Divide) Flash Clock by 8 (This bit is write once.)
0 Clock input to the Flash clock divider is the bus rate clock.
1 Clock input to the Flash clock divider is the bus rate clock divided by 8.
Divisor for Flash Clock Divider — These bits are write once. The Flash clock divider divides the bus rate clock
(or the bus rate clock divided by 8 if PRDIV8 = 1) by the value in the 6-bit DIV field plus one. The resulting
frequency of the internal Flash clock must fall within the range of 200 kHz to 150 kHz for proper Flash operations.
Program/Erase timing pulses are one cycle of this internal Flash clock which corresponds to a range of 5 μs to
6.7 μs. The automated programming logic uses an integer number of these pulses to complete an erase or
program operation. See Equation 4-1 and Equation 4-2.
if PRDIV8 = 0 — fFCLK = fBus ÷ (DIV + 1)
if PRDIV8 = 1 — fFCLK = fBus ÷ (8 × (DIV + 1))
Table 4-8 shows the appropriate values for PRDIV8 and DIV for selected bus frequencies.
Eqn. 4-1
Eqn. 4-2
MC9S08DV60 Series Data Sheet, Rev 3
Freescale Semiconductor
61