DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16F87T/ML View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16F87T/ML Datasheet PDF : 230 Pages
First Prev 31 32 33 34 35 36 37 38 39 40 Next Last
PIC16F87/88
EXAMPLE 3-4: ERASING A FLASH PROGRAM MEMORY ROW
BANKSEL
MOVF
MOVWF
MOVF
MOVWF
ERASE_ROW
BANKSEL
BSF
BSF
BSF
;
BCF
MOVLW
MOVWF
MOVLW
MOVWF
BSF
NOP
NOP
BCF
BCF
BSF
EEADRH
ADDRH, W
EEADRH
ADDRL, W
EEADR
EECON1
EECON1, EEPGD
EECON1, WREN
EECON1, FREE
INTCON, GIE
55h
EECON2
AAh
EECON2
EECON1, WR
EECON1, FREE
EECON1, WREN
INTCON, GIE
; Select Bank of EEADRH
;
; MS Byte of Program Address to Erase
;
; LS Byte of Program Address to Erase
; Select Bank of EECON1
; Point to PROGRAM memory
; Enable Write to memory
; Enable Row Erase operation
; Disable interrupts (if using)
;
; Write 55h
;
; Write AAh
; Start Erase (CPU stall)
; Any instructions here are ignored as processor
; halts to begin Erase sequence
; processor will stop here and wait for Erase complete
; after Erase processor continues with 3rd instruction
; Disable Row Erase operation
; Disable writes
; Enable interrupts (if using)
2002-2013 Microchip Technology Inc.
DS30487D-page 31

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]