| Electronic Components Datasheet Search |
|
AN247 Datasheet(PDF) 17 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
AN247 Datasheet(HTML) 17 Page - Microchip Technology |
|
17 / 32 page ![]() 2003 Microchip Technology Inc. DS00247A-page 17 AN247 ;* Author Date Comment ;*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;* Ross Fosler 11/26/02 First full revision ;* ;*****************************************************************************/ ; ***************************************************************************** #include p18cxxx.inc #include canio.def ; ***************************************************************************** ; ***************************************************************************** #ifndef EEADRH #define EEADRH EEADR+1 #endif #define TRUE 1 #define FALSE 0 #define WREG1 PRODH ; Alternate working register #define WREG2 PRODL #define MODE_WRT_UNLCK _bootCtlBits,0 ; Unlock write and erase #define MODE_ERASE_ONLY_bootCtlBits,1 ; Erase without write #define MODE_AUTO_ERASE_bootCtlBits,2 ; Enable auto erase before write #define MODE_AUTO_INC _bootCtlBits,3 ; Enable auto inc the address #define MODE_ACK _bootCtlBits,4 ; Acknowledge mode #define ERR_VERIFY _bootErrStat,0 ; Failed to verify #define CMD_NOP 0x00 #define CMD_RESET 0x01 #define CMD_RST_CHKSM 0x02 #define CMD_CHK_RUN 0x03 ; ***************************************************************************** ; ***************************************************************************** _MEM_IO_DATA UDATA_ACS 0x00 ; ***************************************************************************** _bootCtlMem _bootAddrL RES 1 ; Address info _bootAddrH RES 1 _bootAddrU RES 1 _unused0 RES 1 ; (Reserved) _bootCtlBits RES 1 ; Boot Mode Control bits _bootSpcCmd RES 1 ; Special boot commands _bootChkL RES 1 ; Special boot command data _bootChkH RES 1 _bootCount RES 1 _bootChksmL RES 1 ; 16 bit checksum _bootChksmH RES 1 _bootErrStat RES 1 ; Error Status flags ; ***************************************************************************** |
|
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 |