參數(shù)資料
型號: PIC12F1501-I/MF
廠商: Microchip Technology
文件頁數(shù): 8/33頁
文件大?。?/td> 0K
描述: IC MCU 8BIT 1.75KB FLASH 8-DFN
標準包裝: 120
系列: PIC® 12F
核心處理器: PIC
芯體尺寸: 8-位
速度: 20MHz
外圍設(shè)備: 欠壓檢測/復位,POR,PWM,WDT
輸入/輸出數(shù): 5
程序存儲器容量: 1.75KB(1K x 14)
程序存儲器類型: 閃存
RAM 容量: 64 x 8
電壓 - 電源 (Vcc/Vdd): 2.3 V ~ 5.5 V
數(shù)據(jù)轉(zhuǎn)換器: A/D 4x10b
振蕩器型: 內(nèi)部
工作溫度: -40°C ~ 85°C
封裝/外殼: 8-VDFN 裸露焊盤
包裝: 管件
PIC12(L)F1501
DS41615A-page 16
Preliminary
2011 Microchip Technology Inc.
FIGURE 3-1:
PROGRAM MEMORY MAP
AND STACK FOR
PIC12(L)F1501
3.1.1
READING PROGRAM MEMORY AS
DATA
There are two methods of accessing constants in pro-
gram memory. The first method is to use tables of
RETLW instructions. The second method is to set an
FSR to point to the program memory.
3.1.1.1
RETLW Instruction
The RETLW instruction can be used to provide access
to tables of constants. The recommended way to create
such a table is shown in Example 3-1.
EXAMPLE 3-1:
RETLW INSTRUCTION
The BRW instruction makes this type of table very sim-
ple to implement. If your code must remain portable
with previous generations of microcontrollers, then the
BRW instruction is not available so the older table read
method must be used.
PC<14:0>
15
0000h
0004h
Stack Level 0
Stack Level 15
Reset Vector
Interrupt Vector
Stack Level 1
0005h
On-chip
Program
Memory
Page 0
03FFh
Wraps to Page 0
0400h
CALL, CALLW
RETURN, RETLW
Interrupt, RETFIE
Rollover to Page 0
7FFFh
constants
BRW
;Add Index in W to
;program counter to
;select data
RETLW DATA0
;Index0 data
RETLW DATA1
;Index1 data
RETLW DATA2
RETLW DATA3
my_function
;… LOTS OF CODE…
MOVLW
DATA_INDEX
call constants
;… THE CONSTANT IS IN W
相關(guān)PDF資料
PDF描述
PIC12F510-I/MC IC PIC MCU FLASH 1024X12 8DFN
PIC12F629T-I/MF IC MCU CMOS 8BIT 1K FLASH 8-DFN
PIC12LF1501-E/MS IC MCU 8BIT 1.75KB FLASH 8MSOP
PIC16F57-I/SS IC MCU FLASH 2KX12 28SSOP
PIC12F510-I/MS IC PIC MCU FLASH 1.5KB 8MSOP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC12F1501-I-MG 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:14-Pin Flash, 8-Bit Microcontrollers
PIC12F1501T-EMCQTP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash, 8-Bit Microcontrollers
PIC12F1501T-EMCSQTP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash, 8-Bit Microcontrollers
PIC12F1501T-EMFQTP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash, 8-Bit Microcontrollers
PIC12F1501T-EMFSQTP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash, 8-Bit Microcontrollers