| поискавой системы для электроныых деталей |
|
P89C668 датащи(PDF) 71 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
P89C668 датащи(HTML) 71 Page - NXP Semiconductors |
|
71 / 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 71 IAP CALL PARAMETER PROGRAM STATUS BYTE Input Parameters: R0 = osc freq (integer) R1 = 06h R1 = 86h (WDT feed, Rx2, 66x only) DPH = 00h DPL = 00h – program status byte ACC = status byte Return Parameter ACC = 00 if pass; not 00 if fails Sample routine: ;***** Program Status Byte (SB) ***** ;***** DPTR indicates program status byte ***** ;***** ACC holds new value of Status Byte to program ***** WRSB: MOV AUXR1,#20H ;set the ENBOOT bit MOV R0,#11 ;FOSC MOV R1,#06H ;program status byte or boot vector MOV DPTR,#0000h ;specify status byte MOV A,NEW_SB ; CALL PGM_MTP ;execute the function RET PROGRAM BOOT VECTOR Input Parameters: R0 = osc freq (integer) R1 = 06h R1 = 86h (WDT feed, Rx2 & 66x only) DPH = 00h DPL = 01h – program boot vector ACC = boot vector Return Parameter ACC = 00 if pass; not 00 if fails Sample routine: ;***** Program Boot Vector (BV) ***** ;***** DPTR indicates program boot vector ***** ;***** ACC holds new value of boot vector to program ***** WRBV: MOV AUXR1,#20H ;set the ENBOOT bit MOV R0,#11 ;FOSC MOV R1,#06H ;program status byte or boot vector MOV DPTR,#0001h ;specify boot vector MOV A,NEW_SB ;new value for the boot vector CALL PGM_MTP ;execute the function RET READ DEVICE DATA Input Parameters: R1 = 03h R1 = 83h (WDT feed, Rx2 & 66x only) DPTR = address of byte to read Return Parameter ACC = value of byte read Sample routine: ;*****reads the Device Data (DData) ***** ;***** DData returned in ACC ***** ;***** DPTR holds address of byte to read ***** RDData: MOV AUXR1,#20H ;set the ENBOOT bit MOV R0,#11 ;FOSC MOV R1,#03H ;read data function MOV DPTR,Address ;specify address of byte to read CALL PGM_MTP ;execute the function RET |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |