Datasheet 搜索 > 8位微控制器 > Microchip(微芯) > PIC16F505T-I/ST 数据手册 > PIC16F505T-I/ST 用户编程技术手册 3/22 页


¥ 2.7
PIC16F505T-I/ST 用户编程技术手册 - Microchip(微芯)
制造商:
Microchip(微芯)
分类:
8位微控制器
封装:
TSSOP-14
描述:
8月14日引脚, 8位闪存微控制器 8/14-Pin, 8-Bit Flash Microcontrollers
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
引脚图在P1P2Hot
电气规格在P18
导航目录
PIC16F505T-I/ST数据手册
Page:
of 22 Go
若手册格式错乱,请下载阅览PDF原文件

2010 Microchip Technology Inc. Preliminary DS41226G-page 3
PIC16F505
2.0 MEMORY MAPPING
2.1 User Program Memory Map
The user memory space extends from (0x000-0x3FF)
on the PIC16F505. In Program/Verify mode, the
program memory space extends from (0x000-0x7FF).
The first half, (0x000-0x3FF), is user program memory.
The second half, (0x400-0x7FF), is configuration
memory. The PC will increment from (0x000 to 0x3FF),
then to 0x400 (not to 0x000).
In the configuration memory space, 0x400-0x43F is
physically implemented. However, only locations
0x400 through 0x403 are available. Other locations are
reserved.
2.2 User ID Locations
A user may store identification information (ID) in four
user ID locations. The user ID locations are mapped in
[0x400:0x403]. It is recommended that the user use
only the four Least Significant bits (LSb) of each user
ID. The user ID locations read out normally, even after
code protection is enabled. The 12 bits may be pro-
grammed, but only the four LSbs are displayed by
MPLAB
®
IDE. The xxxx’s are “don’t care” bits and are
not read by MPLAB IDE. It is recommended that user
ID locations are written as ‘xxxx xxxx bbbb’ where
‘bbbb’ is user ID information.
2.3 Configuration Word
The Configuration Word is physically located at 0x7FF.
It is only available upon Program mode entry. Once an
Increment Address command is issued, the
Configuration Word is no longer accessible, regardless
of the address of the program counter.
FIGURE 2-1: PIC16F505 PROGRAM
MEMORY MAP
2.4 Oscillator Calibration Bits
The oscillator Calibration bits are stored at the Reset
vector as the operand of a MOVLW instruction.
Programming interfaces must allow users to program
the Calibration bits themselves for custom trimming of
the INTOSC. Capability for programming the
Calibration bits when programming the entire memory
array must also be maintained for backwards
compatibility.
2.5 Backup OSCCAL Value
The backup OSCCAL value at address 0x404 is a
factory reserved location where the OSCCAL value is
stored during testing of the INTOSC. This location is
not erased during a standard Bulk Erase, but is erased
if the PC is moved into configuration memory prior to
invoking a Bulk Erase.
If this value is erased, it is the user’s responsibility to
rewrite it back to this location for future use.
Note: By convention the Configuration Word is
stored at the logical address location of
0xFFF within the hex file generated for the
PIC16F505. This logical address location
may not reflect the actual physical address
for the part itself. It is the responsibility of
the programming software to retrieve the
Configuration Word from the logical
address within the hex file and translate
the address to the proper physical location
when programming.
Note: Default OSCCAL management given in
Figure 3-9 always copies the back-up
OSCCAL value to the program memory
location.
User Memory
Space
000h
1FFh
Reset Vector
On-chip User
Program
Memory (Page 0)
200h
3FFh
3FEh
User ID Locations
Reserved
Configuration Word
400h
403h
404h
7FEh
7FFh
43Fh
440h
Unimplemented
On-chip User
Program
Memory (Page 1)
Backup OSCCAL value
405h
Config Memory
Space
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件