| Electronic Components Datasheet Search |
|
P89C668 Datasheet(PDF) 70 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
P89C668 Datasheet(HTML) 70 Page - NXP Semiconductors |
|
70 / 89 page ![]() Philips Semiconductors Product data P89C660/P89C662/P89C664/ P89C668 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM 2002 Oct 28 70 IAP CALL PARAMETER ERASE BOOT VECTOR & STATUS BYTE Input Parameters: R0 = osc freq (integer) R1 = 04h R1 = 84h (WDT feed, Rx2 & 66x only) DPH = 00h DPL = don’t care Return Parameter none Sample routine: ;***** Erase Boot Vector (BV) & Status Byte (SB) ***** ;***** Note: This command erases BOTH the SB & BV ERSBBV; MOV AUXR1,#20H ;set the ENBOOT bit MOV R0, #11 ;FOSC MOV R1,#04H ;erase status byte & boot vector MOV DPH,#00h ;we don’t care about DPL CALL PGM_MTP ;execute the function RET PROGRAM SECURITY BIT Input Parameters: R0 = osc freq (integer) R1 = 05h R1 = 85h (WDT feed, Rx2 & 66x only) DPH = 00h DPL = 00h – security bit # 1 (inhibit writing to Flash) 01h – security bit # 2 (inhibit Flash verify) 02h – security bit # 3 (disable external memory) Return Parameter none Sample routines: ;***** Program Security Bit1 ***** ;***** DPTR indicates security bit to program ***** WRSB1: MOV AUXR1,#20H ;set the ENBOOT bit MOV R0,#11 ;FOSC MOV R1,#05H ;program security bit function MOV DPTR,#0000h ;specify security bit 1 CALL PGM_MTP ;execute the function RET ;***** Program Security Bit2 ***** ;***** DPTR indicates security bit to program ***** WRSB2: MOV AUXR1,#20H ;set the ENBOOT bit MOV R0,#11 ;FOSC MOV R1,#05H ;program security bit function MOV DPTR,#0001h ;specify security bit 2 CALL PGM_MTP ;execute the function RET ;***** Program Security Bit3 ***** ;***** DPTR indicates security bit to program ***** WRSB3: MOV AUXR1,#20H ;set the ENBOOT bit MOV R0,#11 ;FOSC MOV R1,#05H ;program security bit function MOV DPTR,#0002h ;specify security bit 3 CALL PGM_MTP ;execute the function RET |
|
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 |