56
CY8C28xxx PSoC Programmable System-on-Chip TRM, Document No. 001-52594 Rev. *G
Supervisory ROM (SROM)
3.3
Clocking Strategy
Successful programming and erase operations, on the
Flash, require you to set the CLOCK and DELAY parame-
ters correctly. To determine the proper value for the DELAY
parameter only, you must consider CPU speed. Use three
factors to determine the proper value for CLOCK: operating
temperature, CPU speed, and characteristics of the individ-
ual device. Equations and additional information on calculat-
ing the DELAY and CLOCK values follow.
3.3.1
DELAY Parameter
To determine the proper value for the DELAY parameter, you
must consider CPU speed during a Flash operation.
Equation 1 displays the equation for calculating DELAY
based on a CPU speed value. In this equation the units for
CPU are hertz (Hz).
Equation 1
Equation 2 shows the calculation of the DELAY value for a
CPU speed of 12 MHz. The numerical result of this calcula-
tion should be rounded to the nearest whole number. In the
case of a 12 MHz CPU speed, the correct value for DELAY
is 86 (0x56).
Equation 2
3.3.2
CLOCK Parameter
The CLOCK parameter must be calculated using different
equations for erase and write operations. The erase value
for CLOCK must be calculated first. In Equation 3, the erase
CLOCK value is indicated by a subscript E after the word
CLOCK. In Equation 5, the write CLOCK value is indicated
by a subscript W after the word CLOCK.
Before either CLOCK value can be calculated, the values for
M, B, and Mult must be determined. These are device spe-
cific values that are stored in the Flash Table 3 and are
accessed by way of the TableRead SROM function (see the
“TableRead Function” on page 52
). If the operating tempera-
ture is at or below 0°C, use the cold values. For operating
temperatures at or above 0°C, use the hot values. See
Equations for calculating the correct value of CLOCK for
write operations are first introduced with the assumption that
the CPU speed is 12 MHz. The equation for calculating the
CLOCK value for an erase Flash operation is shown in
Equation 3. In this equation the T has units of °C.
Equation 3
Using the correct values for B, M, and T, in the Equation 3, is
required to achieve the endurance specifications of the
Flash. However, for device programmers where this calcula-
tion is difficult to perform, the equation is simplified by set-
ting T to 0°C and using the hot value for B and M. This
simplification is acceptable only if the total number of erase
write cycles are kept to less than 10 and the operation is
performed near room temperature. When T is set to ‘0’,
Equation 3 simplifies to.
Equation 4
When a value for the erase CLOCK value is determined, the
write CLOCK value can be calculated. The equation to cal-
culate the CLOCK value for a write is.
Equation 5
In this equation, the correct value for Mult must be deter-
mined, based upon temperature, in the same way that the B
and M values were determined for Equation 3.
DELAY
100
10
6
–
CPU
80
–
13
----------------------------------------------------------
3
MHz
CPU
12
MHz
=
DELAY
100
10
6
–
12
10
6
80
–
13
---------------------------------------------------------------
=
CLOCK
E
B
2
M T
256
----------------
–
=
CLOCK
E
B
=
CLOCK
W
CLOCK
E
Mult
64
----------------------------------------
=
Summary of Contents for CY8C28 series
Page 65: ...64 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G RAM Paging ...
Page 125: ...124 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 311: ...310 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G IDAC_CR0 1 FDh ...
Page 317: ...316 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 393: ...392 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 477: ...476 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Digital Clocks ...
Page 561: ...560 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...