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

PIC18C452-I/L 参数 Datasheet PDF下载

PIC18C452-I/L图片预览
型号: PIC18C452-I/L
PDF下载: 下载PDF文件 查看货源
内容描述: 高性能微控制器,10位A / D [High-Performance Microcontrollers with 10-Bit A/D]
分类和应用: 微控制器
文件页数/大小: 296 页 / 4835 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18C452-I/L的Datasheet PDF文件第52页浏览型号PIC18C452-I/L的Datasheet PDF文件第53页浏览型号PIC18C452-I/L的Datasheet PDF文件第54页浏览型号PIC18C452-I/L的Datasheet PDF文件第55页浏览型号PIC18C452-I/L的Datasheet PDF文件第57页浏览型号PIC18C452-I/L的Datasheet PDF文件第58页浏览型号PIC18C452-I/L的Datasheet PDF文件第59页浏览型号PIC18C452-I/L的Datasheet PDF文件第60页  
PIC18CXX2  
When a Table Write occurs to an even program mem-  
ory address (TBLPTR<0> = 0), the contents of TABLAT  
are transferred to an internal holding register. This is  
performed as a short write and the program memory  
block is not actually programmed at this time. The hold-  
ing register is not accessible by the user.  
5.2  
Internal Program Memory Read/  
Writes  
5.2.1  
TABLE READ OVERVIEW (TBLRD)  
The TBLRDinstructions are used to read data from pro-  
gram memory to data memory.  
When a Table Write occurs to an odd program memory  
address (TBLPTR,)>=1), a long write is started. During  
the long write, the contents of TABLAT are written to the  
high byte of the program memory block and the con-  
tents of the holding register are transferred to the low  
byte of the program memory block.  
TBLPTR points to a byte address in program space.  
Executing TBLRDplaces the byte pointed to into TAB-  
LAT. In addition, TBLPTR can be modified automati-  
cally for the next Table Read operation.  
Table Reads from program memory are performed one  
byte at a time. The instruction will load TABLAT with the  
one byte from program memory pointed to by TBLPTR.  
Figure 5-3 shows the holding register and the program  
memory write blocks.  
5.2.2  
INTERNAL PROGRAM MEMORY WRITE  
BLOCK SIZE  
If a single byte is to be programmed, the low (even) byte  
of the destination program word should be read using  
TBLRD*, modified or changed, if required, and written  
back to the same address using TBLWT*+. The high  
(odd) byte should be read using TBLRD*, modified or  
changed if required, and written back to the same  
address using TBLWT. The write to an odd address will  
cause a long write to begin. This process ensures that  
existing data in either byte will not be changed unless  
desired.  
The internal program memory of PIC18CXXX devices  
is written in blocks. For PIC18CXX2 devices, the write  
block size is 2 bytes. Consequently, Table Write oper-  
ations to internal program memory are performed in  
pairs, one byte at a time.  
FIGURE 5-3: HOLDING REGISTER AND THE WRITE BLOCK  
Program Memory (x 2-bits)  
Block n  
Write Block  
MSB  
Holding Register  
Block n + 1  
Block n + 2  
The write to the MSB of the Write Block  
causes the entire block to be written to pro-  
gram memory. The program memory block  
that is written depends on the address that is  
written to in the MSB of the Write Block.  
DS39026B-page 56  
Preliminary  
7/99 Microchip Technology Inc.  
 复制成功!