欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC16LF1947-E/MR 参数 Datasheet PDF下载

PIC16LF1947-E/MR图片预览
型号: PIC16LF1947-E/MR
PDF下载: 下载PDF文件 查看货源
内容描述: [64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt XLP Technology]
分类和应用: 微控制器
文件页数/大小: 440 页 / 4740 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第112页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第113页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第114页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第115页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第117页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第118页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第119页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第120页  
PIC16F/LF1946/47  
EXAMPLE 11-4:  
ERASING ONE ROW OF PROGRAM MEMORY  
; This row erase routine assumes the following:  
; 1. A valid address within the erase block is loaded in ADDRH:ADDRL  
; 2. ADDRH and ADDRL are located in shared data memory 0x70 - 0x7F  
BCF  
INTCON,GIE  
EEADRL  
ADDRL,W  
EEADRL  
ADDRH,W  
; Disable ints so required sequences will execute properly  
; Load lower 8 bits of erase address boundary  
; Load upper 6 bits of erase address boundary  
BANKSEL  
MOVF  
MOVWF  
MOVF  
MOVWF  
BSF  
BCF  
BSF  
BSF  
EEADRH  
EECON1,EEPGD  
EECON1,CFGS  
EECON1,FREE  
EECON1,WREN  
; Point to program memory  
; Not configuration space  
; Specify an erase operation  
; Enable writes  
MOVLW  
MOVWF  
MOVLW  
MOVWF  
BSF  
55h  
EECON2  
0AAh  
EECON2  
EECON1,WR  
; Start of required sequence to initiate erase  
; Write 55h  
;
; Write AAh  
; Set WR bit to begin erase  
; Any instructions here are ignored as processor  
; halts to begin erase sequence  
; Processor will stop here and wait for erase complete.  
NOP  
NOP  
; after erase processor continues with 3rd instruction  
BCF  
BSF  
EECON1,WREN  
INTCON,GIE  
; Disable writes  
; Enable interrupts  
DS41414A-page 114  
Preliminary  
2010 Microchip Technology Inc.  
 复制成功!