參數(shù)資料
型號: PIC16F54-I/P
廠商: Microchip Technology
文件頁數(shù): 15/88頁
文件大?。?/td> 0K
描述: IC MCU FLASH 512X12 18DIP
產(chǎn)品培訓模塊: Asynchronous Stimulus
8-bit PIC® Microcontroller Portfolio
標準包裝: 25
系列: PIC® 16F
核心處理器: PIC
芯體尺寸: 8-位
速度: 20MHz
外圍設備: POR,WDT
輸入/輸出數(shù): 12
程序存儲器容量: 768B(512 x 12)
程序存儲器類型: 閃存
RAM 容量: 25 x 8
電壓 - 電源 (Vcc/Vdd): 2 V ~ 5.5 V
振蕩器型: 外部
工作溫度: -40°C ~ 85°C
封裝/外殼: 18-DIP(0.300",7.62mm)
包裝: 管件
產(chǎn)品目錄頁面: 638 (CN2011-ZH PDF)
配用: DVA16XP180-ND - ADAPTER DEVICE FOR MPLAB-ICE
AC164001-ND - MODULE SKT PROMATEII 18/28DIP
PIC16F5X
DS41213D-page 20
2007 Microchip Technology Inc.
3.6
Stack
The PIC16F54 device has a 9-bit wide, two-level hard-
ware PUSH/POP stack. The PIC16F57 and PIC16F59
devices have an 11-bit wide, two-level hardware
PUSH/POP stack.
A CALL instruction will PUSH the current value of stack 1
into stack 2 and then PUSH the current program counter
value, incremented by one, into stack level 1. If more than
two sequential CALL’s are executed, only the most recent
two return addresses are stored.
A RETLW instruction will POP the contents of stack level
1 into the program counter and then copy stack level 2
contents into level 1. If more than two sequential
RETLW
’s are executed, the stack will be filled with the
address previously stored in level 2.
For the RETLW instruction, the PC is loaded with the
Top-of-Stack (TOS) contents. All of the devices cov-
ered in this data sheet have a two-level stack. The
stack has the same bit width as the device PC, there-
fore, paging is not an issue when returning from a sub-
routine.
3.7
Indirect Data Addressing; INDF
and FSR Registers
The INDF register is not a physical register. Addressing
INDF actually addresses the register whose address is
contained in the FSR Register (FSR is a pointer). This
is indirect addressing.
EXAMPLE 3-1:
INDIRECT ADDRESSING
Register file 08 contains the value 10h
Register file 09 contains the value 0Ah
Load the value 08 into the FSR register
A read of the INDF register will return the value
of 10h
Increment the value of the FSR register by one
(FSR = 09h)
A read of the INDF register now will return the
value of 0Ah.
Reading INDF itself indirectly (FSR = 0) will produce
00h. Writing to the INDF register indirectly results in a
no-operation (although Status bits may be affected).
A simple program to clear RAM locations 10h-1Fh
using indirect addressing is shown in Example 3-2.
EXAMPLE 3-2:
HOW TO CLEAR RAM
USING INDIRECT
ADDRESSING
The FSR is either a 5-bit (PIC16F54), 7-bit (PIC16F57)
or 8-bit (PIC16F59) wide register. It is used in conjunc-
tion with the INDF register to indirectly address the data
memory area.
The FSR<4:0> bits are used to select data memory
addresses 00h to 1Fh.
Note:
The W register will be loaded with the
literal value specified in the instruction.
This
is
particularly
useful
for
the
implementation of data look-up tables
within the program memory.
PIC16F54: This does not use banking. FSR<7:5> bits
are unimplemented and read as ‘1’s.
PIC16F57: FSR<7> bit is unimplemented and read as
‘1’. FSR<6:5> are the bank select bits and are used to
select the bank to be addressed (00 = Bank 0,
01
= Bank 1, 10 = Bank 2, 11 = Bank 3).
PIC16F59: FSR<7:5> are the bank select bits and are
used to select the bank to be addressed
(000 = Bank 0, 001 = Bank 1, 010 = Bank 2,
011
= Bank 3, 100 = Bank 4, 101 = Bank 5,
110
= Bank 6, 111 = Bank 7).
Note:
A CLRF FSR instruction may not result in
an FSR value of 00h if there are
unimplemented bits present in the FSR.
MOVLW
H'10'
;initialize pointer
MOVWF
FSR
;to RAM
NEXT
CLRF
INDF
;clear INDF Register
INCF
FSR,F
;inc pointer
BTFSC
FSR,4
;all done?
GOTO
NEXT
;NO, clear next
CONTINUE
:
;YES, continue
相關PDF資料
PDF描述
PIC10LF322-I/MC IC MCU 8BIT 896B FLASH 8DFN
PIC10F322-I/MC IC MCU 8BIT 896B FLASH 8DFN
PIC12F509-I/SN IC MCU FLASH 1KX12 8SOIC
PIC12F508-I/MS IC PIC MCU FLASH 512X12 8MSOP
046214027000800+ CONN FPC VERTICAL 0.5 MM 27POS
相關代理商/技術參數(shù)
參數(shù)描述
PIC16F54T-E/SO 功能描述:8位微控制器 -MCU .77KB 25 RAM 12 I/O Ext Temp SOIC18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16F54T-E/SS 功能描述:8位微控制器 -MCU .77KB 25 RAM 12 I/O Ext Temp SSOP20 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16F54T-I/ML 制造商:Microchip Technology Inc 功能描述:28 PIN, .77KB STD FLASH, 25 RA - Tape and Reel
PIC16F54T-I/SO 功能描述:8位微控制器 -MCU .77KB 25 RAM 12 I/O Ind Temp SOIC18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16F54T-I/SO034 制造商:Microchip Technology Inc 功能描述: