| Electronic Components Datasheet Search |
|
PIC24FJ128GL302 Datasheet(PDF) 74 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC24FJ128GL302 Datasheet(HTML) 74 Page - Microchip Technology |
|
74 / 424 page ![]() PIC24FJ128GL306 FAMILY DS30010198B-page 74 2019-2020 Microchip Technology Inc. 6.5 Flash OTP by ICSP™ Write Inhibit ICSP Write Inhibit is an access restriction feature, that when activated, restricts all of Flash memory. Once acti- vated, ICSP Write Inhibit permanently prevents ICSP Flash programming and erase operations, and cannot be deactivated. This feature is intended to prevent alter- ation of Flash memory contents, with behavior similar to One-Time-Programmable (OTP) devices. RTSP, including erase and programming operations, is not restricted when ICSP Write Inhibit is activated; however, code to perform these actions must be pro- grammed into the device before ICSP Write Inhibit is activated. This allows for a bootloader-type application to alter Flash contents with ICSP Write Inhibit activated. Entry into ICSP and Enhanced ICSP modes is not affected by ICSP Write Inhibit. In these modes, it will con- tinue to be possible to read configuration memory space and any user memory space regions which are not code protected. With ICSP writes inhibited, an attempt to set WR (NVMCON[15]) = 1 will maintain WR = 0, and instead, set WRERR (NVMCON[13]) = 1. All Enhanced ICSP erase and programming commands will have no effect with self-checked programming commands return- ing a FAIL response opcode (PASS if the destination already exactly matched the requested programming data). Once ICSP Write Inhibit is activated, it is not possible for a device executing in Debug mode to erase/write Flash, nor can a debug tool switch the device to Production mode. ICSP Write Inhibit should therefore, only be activated on devices programmed for production. 6.5.1 ACTIVATING FLASH OTP BY ICSP WRITE INHIBIT ICSP Write Inhibit is activated by executing a pair of NVMCON double-word programming commands to save two 16-bit activation values in the configuration memory space. The target NVM addresses and values required for activation are shown in Table 6-4. Once both addresses contain their activation values, ICSP Write Inhibit will take permanent effect on the next device Reset. Only the lower 16 data bits stored at the activation addresses are evaluated; the upper eight bits and second 24-bit word, written by the double-word pro- gramming (NVMOP[3:0]), should be written as ‘0’s. The addresses can be programmed in any order and also during separate ICSP/Enhanced ICSP/RTSP sessions, but any attempt to program an incorrect 16-bit value or use a row programming operation to program the values will be aborted without altering the existing data. TABLE 6-4: ICSP™ WRITE INHIBIT ACTIVATION ADDRESSES AND DATA 6.6 JTAG Operation The PIC24F family supports JTAG boundary scan. Boundary scan can improve the manufacturing process by verifying pin to PCB connectivity. 6.7 Enhanced In-Circuit Serial Programming Enhanced In-Circuit Serial Programming uses an on- board bootloader, known as the Program Executive (PE), to manage the programming process. Using an SPI data frame format, the Program Executive can erase, program and verify program memory. For more information on Enhanced ICSP, refer to the “PIC24FJ128GL306 Family Flash Programming Specification” (www.microchip.com/ DS30010189). Note: It is not possible to deactivate ICSP Write Inhibit. Configuration Memory Address ICSP Write Inhibit Activation Value Write Lock 1 0x801024 0x006D63 Write Lock 2 0x801028 0x006870 |
|
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 |