Datasheet 搜索 > 微控制器 > Microchip(微芯) > PIC12F508-I/P 数据手册 > PIC12F508-I/P 用户编程技术手册 2/20 页


¥ 3.3
PIC12F508-I/P 用户编程技术手册 - Microchip(微芯)
制造商:
Microchip(微芯)
分类:
微控制器
封装:
DIP-8
描述:
MICROCHIP PIC12F508-I/P 微控制器, 8位, 闪存, AEC-Q100, PIC12F5xx, 4 MHz, 768 Byte, 25 Byte, 8 引脚, DIP
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
引脚图在P1Hot
电气规格在P17
导航目录
PIC12F508-I/P数据手册
Page:
of 20 Go
若手册格式错乱,请下载阅览PDF原文件

PIC12F508/509
DS41227E-page 2 Preliminary © 2007 Microchip Technology Inc.
2.0 MEMORY MAPPING
2.1 User Program Memory Map
The user memory space extends from (0x000-0x1FF)
on the PIC12F508 and (0x000-0x3FF) on the
PIC12F509. In Program/Verify mode, the program
memory space extends from (0x000-0x3FF) for the
PIC12F508 and (0x000-0x7FF) for the PIC12F509.
The first half, (0x000-0x1FF) and (0x000-0x3FF),
respectively, is user program memory. The second half,
(0x200-0x3FF) and (0x400-0x7FF), respectively, is
configuration memory. The PC will increment from
(0x000-0x1FF) and (0x000-0x3FF), respectively, then
to 0x200 and 0x400, respectively (not to 0x000).
In the configuration memory space, 0x200-0x23F for
the PIC12F508 and 0x400-0x43F for the PIC12F509
are physically implemented. However, only locations
0x200-0x203 and 0x400-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
[0x200:0x203] and [0x400:0x403], respectively. It is
recommended that the user use only the four Least
Significant bits (LSb) of each user ID location and
program the upper 8 bits as ‘1’s. The user ID locations
read out normally, even after code protection is
enabled. It is recommended that user ID location is
written as ‘1111 1111 bbbb’ where ‘bbbb’ is user
ID information.
2.3 Configuration Word
The Configuration Word is physically located at 0x3FF
and 0x7FF, respectively. 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: PIC12F508 PROGRAM
MEMORY MAP
FIGURE 2-2: PIC12F509 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. Program-
ming 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, 0x204/0x404, is a factory
location where the OSCCAL value is stored during test-
ing 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 responsi-
bility 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
PIC12F508/509. This logical address
location may not reflect the actual physical
address for the part itself. It is the respon-
sibility of the programming software to
retrieve the Configuration Word from the
logical address within the hex file and
granulate the address to the proper
physical location when programming.
User Memory
Space
000h
1FFh
Reset Vector
0FFh
100h
On-chip User
Program Memory
User ID Locations
Reserved
Configuration Word
200h
203h
204h
3FEh
3FFh
23Fh
240h
Unimplemented
1FEh
Backup OSCCAL value
205h
Config Memory
Space
User Memory
Space
000h
1FFh
Reset Vector
On-chip User
Program
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 文件