| Electronic Components Datasheet Search |
|
AN247 Datasheet(PDF) 22 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
AN247 Datasheet(HTML) 22 Page - Microchip Technology |
|
22 / 32 page ![]() AN247 DS00247A-page 22 2003 Microchip Technology Inc. ; ********************************************************* ; This is the reset command. xorlw CMD_RESET ; RESET Command btfsc STATUS, Z reset ; ********************************************************* ; This is the Selfcheck reset command. This routine ; resets the internal check registers, i.e. checksum and ; self verify. movf _bootSpcCmd, W ; RESET_CHKSM Command xorlw CMD_RST_CHKSM bnz _SpecialCmdJp1 clrf _bootChksmH ; Reset chksum clrf _bootChksmL bcf ERR_VERIFY ; Clear the error verify flag ; ********************************************************* ; This is the Test and Run command. The checksum is ; verified, and the self-write verification bit is checked. ; If both pass, then the boot flag is cleared. _SpecialCmdJp1 movf _bootSpcCmd, W ; RUN_CHKSM Command xorlw CMD_CHK_RUN bnz _SpecialCmdJp2 movf _bootChkL, W ; Add the control byte addwf _bootChksmL, F bnz _SpecialCmdJp2 movf _bootChkH, W addwfc _bootChksmH, F bnz _SpecialCmdJp2 btfsc ERR_VERIFY ; Look for verify errors bra _SpecialCmdJp2 setf EEADR ; Point to last location of EEDATA setf EEADRH clrf EEDATA ; and clear the data movlw b'00000100' ; Setup for EEData rcall _StartWrite _SpecialCmdJp2 #ifdef ALLOW_GET_CMD bra _CANSendAck ; or send an acknowledge #else bra _CANMain #endif ; ***************************************************************************** |
|
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 |