CY8C28xxx PSoC Programmable System-on-Chip TRM, Document No. 001-52594 Rev. *G
53
Supervisory ROM (SROM)
One of the uses of the TableRead function is to retrieve the
values needed to optimize Flash programming for tempera-
ture. More information about how to use these values is in
the section titled
“Clocking Strategy” on page 56
.
3.1.2.8
EraseAll Function
The EraseAll function performs a series of steps that
destroys the user data in the Flash banks and resets the
protection block in each Flash bank to all zeros (the unpro-
tected state). This function is only executed by an external
programmer. If EraseAll is executed from code, the M8C will
HALT without touching the Flash or protections. See
3.1.2.9
Checksum Function
The Checksum function calculates a 16-bit checksum over a
user specifiable number of blocks, within a single
starting at block zero. The BLOCKID parameter is
used to pass in the number of blocks to checksum. A
BLOCKID value of '1' calculates the checksum of only block
0, a BLOCKID of '2' calculates the checksum of block 0 and
block 1, and so on. A BLOCKID value of '0' calculates the
checksum of the entire flash bank. Note that if the BLOCKID
is greater than the number of blocks that the device has in a
flash bank, the function calculates the checksum for the
entire flash bank and repeats the process of checksum
again from block 0 in that flash bank. For example, if the
BLOCKID is equal to 150, the function calculates the
checksum for block 0 to block 127 and again for block 0 to
block 21.
The 16-bit checksum is returned in KEY1 and KEY2. The
parameter KEY1 holds the lower 8 bits of the checksum and
the parameter KEY2 holds the upper 8 bits of the checksum.
3.1.2.10
Calibrate0 Function
The Calibrate0 function transfers the calibration values
stored in a special area of the Flash to their appropriate reg-
isters. This function may be executed at any time to set all
calibration values back to their 5-V values. However, it is
unnecessary to call this function. This function is simply doc-
umented for completeness. 3.3-V calibration values are
accessed by way of the TableRead function, which is
described in the section titled
.
Table 3-11. Flash Tables with Assigned Values in Flash Bank 0
F8h
F9h
FAh
FBh
FCh
FDh
FEh
FFh
Table 0
Silicon ID
Table 1
Voltage
Reference Trim
for 3.3 V
reg[1,EA]
IMO Trim
for 3.3 V
reg[1,E8]
Room
Temperature
Calibration
for 3.3 V
Hot
Temperature
Calibration
for 3.3 V
Voltage
Reference Trim
for 5 V
reg[1,EA]
IMO Trim
for 5 V
reg[1,E8]
Room
Temperature
Calibration
for 5 V
Hot
Temperature
Calibration
for 5 V
Table 2
IMO Slow Trim
6 MHz
Vdd = 3.3 V
IMO Slow Trim
6 MHz
Vdd = 5.0 V
Table 3
M (cold)
B (cold)
Mult (cold)
M (hot)
B (hot)
Mult (hot)
00h
01h
Table 3-12. Checksum Parameters (07h)
Name
Address
Type
Description
KEY1
0,F8h
RAM
3Ah
KEY2
0,F9h
RAM
Stack Pointer value+3, when SSC is
executed.
BLOCKID
0,FAh
RAM
Number of Flash blocks to calculate
checksum on.
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 ...