參數資料
型號: PIC16F84
廠商: Microchip Technology Inc.
英文描述: 18-pin Flash/EEPROM 8-Bit Microcontrollers
中文描述: 18引腳閃存/ EEPROM的8位微控制器
文件頁數: 19/124頁
文件大?。?/td> 1060K
代理商: PIC16F84
PIC16F8X
1998 Microchip Technology Inc.
DS30430C-page 19
4.5
Indirect Addressing; INDF and FSR
Registers
The INDF register is not a physical register. Address-
ing INDF actually addresses the register whose
address is contained in the FSR register (FSR is a
pointer). This is indirect addressing.
EXAMPLE 4-1:
Register file 05 contains the value 10h
Register file 06 contains the value 0Ah
Load the value 05 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 = 06)
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).
INDIRECT ADDRESSING
A simple program to clear RAM locations 20h-2Fh
using indirect addressing is shown in Example 4-2.
EXAMPLE 4-2:
HOW TO CLEAR RAM
USING INDIRECT
ADDRESSING
movlw 0x20 ;initialize pointer
movwf FSR ; to RAM
NEXT clrf INDF ;clear INDF register
incf FSR ;inc pointer
btfss FSR,4 ;all done
goto NEXT ;NO, clear next
CONTINUE
: ;YES, continue
An effective 9-bit address is obtained by concatenating
the 8-bit FSR register and the IRP bit (STATUS<7>), as
shown in Figure 4-1. However, IRP is not used in the
PIC16F8X.
FIGURE 4-1:
DIRECT/INDIRECT ADDRESSING
Direct Addressing
RP1 RP0
6
from opcode
0
IRP
7
(FSR)
0
Indirect Addressing
bank select
location select
bank select
location select
00
01
10
11
00h
7Fh
00h
0Bh
0Ch
2Fh
(1)
30h
(1)
7Fh
not used
Bank 0
Bank 1
Bank 2
Bank 3
Note 1:
PIC16F83 and PIC16CR83 devices.
PIC16F84 and PIC16CR84 devices
For memory map detail see Figure 4-1.
2:
3:
4Fh
(2)
50h
(2)
Addresses
map back
to Bank 0
Data
Memory
(3)
not used
相關PDF資料
PDF描述
PIC16F85 18/20 Pin, 8-Bit CMOS FLASH Microcontroller with Comparators and A/D Product Brief
PIC16F86 18/20 Pin, 8-Bit CMOS FLASH Microcontroller with Comparators and A/D Product Brief
PIC16F873A 28/40-pin Enhanced FLASH Microcontrollers
PIC16F874A 28/40-pin Enhanced FLASH Microcontrollers
PIC16F876A 28/40-pin Enhanced FLASH Microcontrollers
相關代理商/技術參數
參數描述
PIC16F84-04/P 功能描述:8位微控制器 -MCU 1.75KB 68 RAM 13 I/O 4MHz PDIP18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數據總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數據 RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16F84-04/P 制造商:Microchip Technology Inc 功能描述:IC 8-BIT FLASH MCU
PIC16F84-04/SO 功能描述:8位微控制器 -MCU 1.75KB 68 RAM 13 I/O 4MHz SOIC18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數據總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數據 RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16F84-04/SO 制造商:Microchip Technology Inc 功能描述:IC SM 8-BIT FLASH MCU
PIC16F84-04I/P 功能描述:8位微控制器 -MCU 1.75KB 68 RAM 13 I/O 4MHz Ind Temp PDIP18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數據總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數據 RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT