| Electronic Components Datasheet Search |
|
AN247 Datasheet(PDF) 23 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
AN247 Datasheet(HTML) 23 Page - Microchip Technology |
|
23 / 32 page ![]() 2003 Microchip Technology Inc. DS00247A-page 23 AN247 ; ***************************************************************************** ; This is a jump routine to branch to the appropriate memory access function. ; The high byte of the 24-bit pointer is used to determine which memory to access. ; All program memories (including Config and User IDs) are directly mapped. ; EEDATA is remapped. _DataReg ; ********************************************************* _SetPointers movf _bootAddrU, W ; Copy upper pointer movwf TBLPTRU andlw 0xF0 ; Filter movwf WREG2 movf _bootAddrH, W ; Copy the high pointer movwf TBLPTRH movwf EEADRH movf _bootAddrL, W ; Copy the low pointer movwf TBLPTRL movwf EEADR btfss MODE_AUTO_INC ; Adjust the pointer if auto inc is enabled bra _SetPointersJp1 movf _bootCount, W ; add the count to the pointer addwf _bootAddrL, F clrf WREG addwfc _bootAddrH, F addwfc _bootAddrU, F _SetPointersJp1 _Decode movlw 0x30 ; Program memory < 0x300000 cpfslt WREG2 bra _DecodeJp1 #ifdef ALLOW_GET_CMD btfsc CAN_PG_BIT bra _PMRead #endif bra _PMEraseWrite _DecodeJp1 movf WREG2,W ; Config memory = 0x300000 xorlw 0x30 bnz _DecodeJp2 #ifdef ALLOW_GET_CMD btfsc CAN_PG_BIT bra _PMRead #endif bra _CFGWrite _DecodeJp2 movf WREG2,W ; EEPROM data = 0xF00000 xorlw 0xF0 bnz _CANMain #ifdef ALLOW_GET_CMD btfsc CAN_PG_BIT bra _EERead #endif bra _EEWrite ; ***************************************************************************** |
|
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 |