參數資料
型號: PIC18LF45J50-I/PT
廠商: Microchip Technology
文件頁數: 6/32頁
文件大?。?/td> 0K
描述: IC PIC MCU FLASH 32K 2V 44-TQFP
產品培訓模塊: XLP Deep Sleep Mode
8-bit PIC® Microcontroller Portfolio
標準包裝: 160
系列: PIC® XLP™ 18F
核心處理器: PIC
芯體尺寸: 8-位
速度: 48MHz
連通性: I²C,SPI,UART/USART,USB
外圍設備: 欠壓檢測/復位,DMA,POR,PWM,WDT
輸入/輸出數: 34
程序存儲器容量: 32KB(16K x 16)
程序存儲器類型: 閃存
RAM 容量: 3.8K x 8
電壓 - 電源 (Vcc/Vdd): 2 V ~ 3.6 V
數據轉換器: A/D 13x10b
振蕩器型: 內部
工作溫度: -40°C ~ 85°C
封裝/外殼: 44-TQFP
包裝: 托盤
產品目錄頁面: 657 (CN2011-ZH PDF)
PIC18F2XJXX/4XJXX FAMILY
DS39687E-page 14
2009 Microchip Technology Inc.
3.2.1
MODIFYING CODE MEMORY
The previous programming example assumed that the
device had been Bulk Erased prior to programming. It
may be the case, however, that the user wishes to
modify only a section of an already programmed device.
The appropriate number of bytes required for the erase
buffer must be read out of code memory (as described
tion Word”) and buffered. Modifications can be made
on this buffer. Then, the block of code memory that was
read out must be erased and rewritten with the
modified data. The code sequence is shown in
The WREN bit must be set if the WR bit in EECON1 is
used to initiate a write sequence.
3.2.2
CONFIGURATION WORD
PROGRAMMING
Since the Flash Configuration Words are stored in
program memory, they are programmed as if they were
program data. Refer to Section 3.2 “Code Memory
Memory” for methods and examples on programming
or modifying program memory. See also Section 5.0
“Configuration Word” for additional information on
the Configuration Words.
TABLE 3-4:
MODIFYING CODE MEMORY
4-Bit
Command
Data Payload
Core Instruction
Step 1: Set the Table Pointer for the block to be erased.
0000
0E <Addr[21:16]>
6E F8
0E <Addr[8:15]>
6E F7
0E <Addr[7:0]>
6E F6
MOVLW
<Addr[21:16]>
MOVWF
TBLPTRU
MOVLW
<Addr[8:15]>
MOVWF
TBLPTRH
MOVLW
<Addr[7:0]>
MOVWF
TBLPTRL
Step 2: Read and modify code memory (see Section 4.1 “Read Code Memory”).
Step 3: Enable memory writes and set up an erase.
0000
84 A6
88 A6
BSF
EECON1, WREN
BSF
EECON1, FREE
Step 4: Initiate erase.
0000
82 A6
00 00
BSF
EECON1, WR
NOP - hold PGC high for time P10.
Step 5: Load write buffer. The correct bytes will be selected based on the Table Pointer.
0000
1101
.
1111
0000
0E <Addr[21:16]>
6E F8
0E <Addr[8:15]>
6E F7
0E <Addr[7:0]>
6E F6
<MSB><LSB>
.
<MSB><LSB>
00 00
MOVLW
<Addr[21:16]>
MOVWF
TBLPTRU
MOVLW
<Addr[8:15]>
MOVWF
TBLPTRH
MOVLW
<Addr[7:0]>
MOVWF
TBLPTRL
Write 2 bytes and post-increment address by 2.
Repeat write operation 30 more times to fill the write buffer
Write 2 bytes and start programming.
NOP - hold PGC high for time P9.
Step 6: Repeat Step 5 for a total of 16 times (if rewriting the entire 1024 bytes of the erase page size).
Step 7: To continue modifying data, repeat Steps 1 through 5, where the Address Pointer is incremented by 1024 bytes at each
iteration of the loop.
Step 8: Disable writes.
0000
94 A6
BCF
EECON1, WREN
相關PDF資料
PDF描述
PIC18LF1230-I/P IC PIC MCU FLASH 2KX16 18DIP
PIC18F45J50-I/PT IC PIC MCU FLASH 32K 2V 44-TQFP
PIC24FJ64GA004-I/PT IC PIC MCU FLASH 64KB 44TQFP
PIC16C711-20/SO IC MCU OTP 1KX14 A/D 18SOIC
PIC18F44J50-I/ML IC PIC MCU FLASH 16K 2V 44-QFN
相關代理商/技術參數
參數描述
PIC18LF45J50T-I/ML 功能描述:8位微控制器 -MCU Full Spd USB 32KB 4KBRAM nanoWatt RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數據總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數據 RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC18LF45J50T-I/PT 功能描述:8位微控制器 -MCU Full Spd USB 32KB 4KBRAM nanoWatt RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數據總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數據 RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC18LF45K22-E/ML 功能描述:8位微控制器 -MCU 32KB Flash 1536b RAM 8b FamilynanoWat XLP RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數據總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數據 RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC18LF45K22-E/MV 功能描述:8位微控制器 -MCU 32KB 1536b RAM 8bit familynanoWatt XLP RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數據總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數據 RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC18LF45K22-E/P 功能描述:8位微控制器 -MCU 32KB Flash 1536b RAM 8b FamilynanoWat XLP RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數據總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數據 RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT