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

PIC24FJ32GA104T-I/PT 参数 Datasheet PDF下载

PIC24FJ32GA104T-I/PT图片预览
型号: PIC24FJ32GA104T-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 44分之28引脚, 16位通用闪存微控制器采用nanoWatt XLP技术 [28/44-Pin, 16-Bit General Purpose Flash Microcontrollers with nanoWatt XLP Technology]
分类和应用: 闪存微控制器
文件页数/大小: 308 页 / 2416 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC24FJ32GA104T-I/PT的Datasheet PDF文件第52页浏览型号PIC24FJ32GA104T-I/PT的Datasheet PDF文件第53页浏览型号PIC24FJ32GA104T-I/PT的Datasheet PDF文件第54页浏览型号PIC24FJ32GA104T-I/PT的Datasheet PDF文件第55页浏览型号PIC24FJ32GA104T-I/PT的Datasheet PDF文件第57页浏览型号PIC24FJ32GA104T-I/PT的Datasheet PDF文件第58页浏览型号PIC24FJ32GA104T-I/PT的Datasheet PDF文件第59页浏览型号PIC24FJ32GA104T-I/PT的Datasheet PDF文件第60页  
PIC24FJ64GA104 FAMILY  
EXAMPLE 5-4:  
LOADING THE WRITE BUFFERS (C LANGUAGE CODE)  
// C example using MPLAB C30  
#define NUM_INSTRUCTION_PER_ROW 64  
unsigned int offset;  
unsigned int i;  
unsigned long progAddr = 0xXXXXXX;  
unsigned int progData[2*NUM_INSTRUCTION_PER_ROW];  
// Address of row to write  
// Buffer of data to write  
//Set up NVMCON for row programming  
NVMCON = 0x4001;  
// Initialize NVMCON  
//Set up pointer to the first memory location to be written  
TBLPAG = progAddr>>16;  
offset = progAddr & 0xFFFF;  
// Initialize PM Page Boundary SFR  
// Initialize lower word of address  
//Perform TBLWT instructions to write necessary number of latches  
for(i=0; i < 2*NUM_INSTRUCTION_PER_ROW; i++)  
{
__builtin_tblwtl(offset, progData[i++]);  
__builtin_tblwth(offset, progData[i]);  
offset = offset + 2;  
// Write to address low word  
// Write to upper byte  
// Increment address  
}
EXAMPLE 5-5:  
INITIATING A PROGRAMMING SEQUENCE (ASSEMBLY LANGUAGE CODE)  
DISI  
#5  
; Block all interrupts with priority <7  
; for next 5 instructions  
MOV  
MOV  
MOV  
MOV  
BSET  
NOP  
NOP  
BTSC  
BRA  
#0x55, W0  
W0, NVMKEY  
#0xAA, W1  
W1, NVMKEY  
NVMCON, #WR  
; Write the 55 key  
;
; Write the AA key  
; Start the erase sequence  
;
;
NVMCON, #15  
$-2  
; and wait for it to be  
; completed  
EXAMPLE 5-6:  
INITIATING A PROGRAMMING SEQUENCE (C LANGUAGE CODE)  
// C example using MPLAB C30  
asm("DISI #5");  
// Block all interrupts with priority < 7  
// for next 5 instructions  
__builtin_write_NVM();  
// Perform unlock sequence and set WR  
DS39951C-page 56  
2010 Microchip Technology Inc.  
 复制成功!