| Electronic Components Datasheet Search |
|
HT85F2240 Datasheet(PDF) 38 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT85F2240 Datasheet(HTML) 38 Page - Holtek Semiconductor Inc |
|
38 / 147 page ![]() Rev. 1.10 �8 of 147 ���� �1� �01� A/D Flash 8051 Core Low Pin Count MCU HT85F2230/HT85F2240 Program Memory Protection The flash program memory is partitioned into two memory blocks. One is the main memory block and the other is the ID block. The ID block size is 32 bytes and is used to setup the protected sectors. This memory protection function is used to protect the Program Memory from improper Program, Erase or Read operations. The flash program memory is divided into several sectors according to the memory size. Each sector has a capacity of 1K bytes. The memory protection function is implemented by register control. If a value, with the exception of 0FFH, is written into the corresponding control register, the corresponding sector program memory protection function will be enabled. This program memory sector will then be unable to be programmed, erased or read by corresponding instructions. In this way, the user can select which block of the flash memory is to be protected. Memory Protection Control Bytes The protection of program code memory is categorised to two types: Security Type 1 and Security Type 2. ■ Security Type 1 Take the HT85F2240 as an example, its inhibit bytes SECURITY1[0:3] are located at the address 0x00~0x03 of the ID block page 0. If a value, with the exception of 0FFH, has been written to SECURITY1[N], this sector can not be programmed, erased or read when in the ICP mode or when executing the OCDSINSTR instruction in the OCDS mode. With regard to the IAP program, in the OCDS mode, when using the OCDSINSTR instruction to execute the IAP program, any sector with a security mechanism can be protected from being programmed, erased or read. If the IAP program is executed when running the main program, all sectors with security or not, can be programmed, erased or read. With regard to the MOVC instruction, in the OCDS mode, when using the OCDSINSTR instruction to execute the MOVC instruction, any sector with security mechanism can not be read. When executing the MOVC instruction in the main program, all sectors with security or not, can be read. The following table illustrates the protection status in the OCDS/ICP/IAP/MOVC modes when the SECURITY1[0:3] bytes are written with a value other than 0FFH: SECURITY1[N] N=0~3 Program Erase Read Protect Sector # Remove Protection ICP X X N/A(1) N Erase A�� IAP OCDS(�) X(�) X X(4) N Erase A�� Main Program O(�) O O N Erase A�� M O V C OCDS(�) N/A(�) X(4) N Erase A�� Main Program N/A(�) O N Erase A�� Note: (1) “N/A” means no path to read ROM code. (�) “N/A” means witho�t this f�nction (�) “X” stands for inhibited; “O” stands for enab�ed. (4) If a read operation is inhibited, reading the Flash will return a fixed Flash code of 00H. (�) In the OCDS mode� on�� when exec�ting the OCDSINSTR instr�ction wi�� the sectors be protected. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |