參數(shù)資料
型號: CY7C60223
廠商: Cypress Semiconductor Corp.
英文描述: Wireless enCoRe II Microcontroller(無線enCoRe II微控制器)
中文描述: 的Wireless enCoRe II微控制器(無線enCoRe II還微控制器)
文件頁數(shù): 17/62頁
文件大?。?/td> 1276K
代理商: CY7C60223
CY7C601xx
CY7C602xx
Document 38-16016 Rev. *C
Page 17 of 62
The configuration of the WriteBlock function is straightforward.
The BLOCKID of the Flash block, where the data is stored,
must be determined and stored at SRAM address FAh.
The SRAM address of the first of the 64 bytes to be stored in
Flash must be indicated using the POINTER variable in the
parameter block (SRAM address FBh). Finally, the CLOCK
and DELAY value must be set correctly. The CLOCK value
determines the length of the write pulse that will be used to
store the data in the Flash. The CLOCK and DELAY values are
dependent on the CPU speed and must be set correctly. Refer
to “Clocking” Section for additional information.
EraseBlock Function
The EraseBlock function is used to erase a block of 64
contiguous bytes in Flash. The first thing the EraseBlock
function does is to check the protection bits and determine if
the desired BLOCKID is writable. If write protection is turned
on, the EraseBlock function will exit setting the accumulator
and KEY2 back to 00h. KEY1 will have a value of 01h,
indicating a write failure. The EraseBlock function is only
useful as the first step in programming. Erasing a block will not
cause data in a block to be one hundred percent unreadable.
If the objective is to obliterate data in a block, the best method
is to perform an EraseBlock followed by a WriteBlock of all
zeros.
To set up the parameter block for the EraseBlock function,
correct key values must be stored in KEY1 and KEY2. The
block number to be erased must be stored in the BLOCKID
variable and the CLOCK and DELAY values must be set based
on the current CPU speed.
ProtectBlock Function
The enCoRe II LV devices offer Flash protection on a block-
by-block basis.
Table 26
lists the protection modes available.
In the table, ER and EW are used to indicate the ability to
perform external reads and writes. For internal writes, IW is
used. Internal reading is always permitted by way of the
ROMX instruction. The ability to read by way of the SROM
ReadBlock function is indicated by SR. The protection level is
stored in two bits according to
Table 26
. These bits are bit
packed into the 64 bytes of the protection block. Therefore,
each protection block byte stores the protection level for four
Flash blocks. The bits are packed into a byte, with the lowest
numbered block’s protection level stored in the lowest
numbered bits
Table 26
.
The first address of the protection block contains the
protection level for blocks 0 through 3; the second address is
for blocks 4 through 7. The 64th byte will store the protection
level for blocks 252 through 255.
The level of protection is only decreased by an EraseAll, which
places zeros in all locations of the protection block. To set the
level of protection, the ProtectBlock function is used. This
function takes data from SRAM, starting at address 80h, and
ORs it with the current values in the protection block. The
result of the OR operation is then stored in the protection
block. The EraseBlock function does not change the
protection level for a block. Because the SRAM location for the
protection data is fixed and there is only one protection block
per Flash macro, the ProtectBlock function expects very few
variables in the parameter block to be set prior to calling the
function. The parameter block values that must be set, besides
the keys, are the CLOCK and DELAY values.
Table 24.WriteBlock Parameters
Name
KEY1
KEY2
Address
0,F8h
0,F9h
Description
3Ah
Stack Pointer value, when SSC is
executing
8KB Flash block number (00h–7Fh)
4KB Flash block number (00h–3Fh)
3KB Flash block number (00h–2Fh)
First 64 addresses in SRAM where
the data to be stored in Flash is
located prior to calling WriteBlock
Clock Divider used to set the write
Pulse width
For a CPU speed of 12 MHz set to 56h
BLOCK ID
0,FAh
POINTER
0,FBh
CLOCK
0,FCh
DELAY
0,FEh
Table 25.EraseBlock Parameters
Name
KEY1
KEY2
Address
0,F8h
0,F9h
Description
3Ah
Stack Pointer value, when SSC is
executed
Flash block number (00h–7Fh)
Clock Divider used to set the erase
pulse width
For a CPU speed of 12 MHz set to
56h
BLOCKID
CLOCK
0,FAh
0,FCh
DELAY
0,FEh
Table 26.Protection Modes
Mode
00b
01b
10b
Settings
SR ER EW IW Unprotected
SR ER EW IW Read protect
SR ER EW IW Disable external
write
SR ER EW IW Disable internal
write
Description
Marketing
Unprotected
Factory upgrade
Field upgrade
11b
Full protection
7
Block n+3
6
5
Block n+2
4
3
Block n+1
2
1
0
Block n
相關PDF資料
PDF描述
CY7C60333 enCoRe III Low Voltage(enCoRe III低電壓)
CY7C60323 enCoRe III Low Voltage(enCoRe III低電壓)
CY7C63001C Universal Serial Bus Microcontroller(通用串行總線微控制器)
CY7C63231-PC enCoRe USB Low-speed USB Peripheral Controller
CY7C63231A-SC enCoRe USB Low-speed USB Peripheral Controller
相關代理商/技術參數(shù)
參數(shù)描述
CY7C60223-3X14C 制造商:Cypress Semiconductor 功能描述:CY7C60223-3X14C - Bulk 制造商:Cypress Semiconductor 功能描述:USB
CY7C60223-3XWC 制造商:Cypress Semiconductor 功能描述:USB - Bulk 制造商:Cypress Semiconductor 功能描述:Bulk / RF Companion Microcontrollers
CY7C60223-PXC 功能描述:IC MCU 8K WIRELESS 24-DIP RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:enCoRe™ II CY7C602xx 標準包裝:60 系列:PSOC® 3 CY8C38xx 核心處理器:8051 芯體尺寸:8-位 速度:67MHz 連通性:EBI/EMI,I²C,LIN,SPI,UART/USART 外圍設備:電容感應,DMA,LCD,POR,PWM,WDT 輸入/輸出數(shù):25 程序存儲器容量:64KB(64K x 8) 程序存儲器類型:閃存 EEPROM 大小:2K x 8 RAM 容量:8K x 8 電壓 - 電源 (Vcc/Vdd):1.71 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 2x20b,D/A 4x8b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 85°C 封裝/外殼:48-VFQFN 裸露焊盤 包裝:托盤
CY7C60223-QXC 功能描述:8位微控制器 -MCU Wireless enCoRe II 8K Flash 256 RAM COM RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
CY7C60223-SXC 功能描述:8位微控制器 -MCU Wireless enCoRe II 8K Flash 256 RAM COM RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT