參數(shù)資料
型號: MTA81010-LPI/P
元件分類: 微控制器/微處理器
英文描述: 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDIP28
封裝: PLASTIC, DIP-28
文件頁數(shù): 9/76頁
文件大?。?/td> 745K
代理商: MTA81010-LPI/P
1995 Microchip Technology Inc.
DS39005D-page 17
MTA81010
3.2.5
INDIRECT DATA ADDRESSING, INDF AND
FSR REGISTERS
The INDF register is not a physical register and is used
in conjunction with the FSR register to perform indirect
addressing.
Indirect addressing is possible
by using the INDF
register. Any instruction using the INDF register
actually accesses data pointed to by the file select
register (FSR). Reading INDF itself (i.e., FSR = 0)
indirectly 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 location 20h-2Fh using
indirect addressing is shown in Example 3-3.
EXAMPLE 3-3:
INDIRECT ADDRESSING
movlw
0x10
; Initialize pointer
movwf
FSR
; to RAM
Next
clrf
INDF
; Clear loc
incf
FSR
; increment pntr
btfsc
FSR,4
; All done?
goto
Next
; No, clear next
.
; Location
.
3.2.5.1
FILE SELECT REGISTER (FSR)
The FSR is either a 5-bit (PIC16C54\CR54) wide
register. It is used in conjunction with the INDF register
to indirectly address the data memory area. The
FSR<4:0> bits are the pointer for data memory
addresses 00h to 1Fh. FSR<4:0> toggles between the
16 lower (ooh-0Fh) and 16 upper (10h-1Fh) register
files. When clear, FSR<4> points to the lower
16 register files and, when set, points to the upper
16 register files. FSR<3:0> provide the value to
address the specific register file within each 16 file
area.
When not performing indirect addressing, the FSR can
be used as a 5-bit (FSR<4:0>) wide general purpose
register. However, this is not recommended to help
ensure future upward code compatibility.
PIC16C54\CR54: Does not use banking. FSR<7:5>
are unimplemented and read as '1's.
FIGURE 3-11: DIRECT/INDIRECT ADDRESSING
Note1: For register map detail see Figure 4-2.
2: RA1 and RA0 are FSR<6> and FSR<5>, respectively.
00
FSR
6
bank
location select
0
5
from opcode
location select
bank select
RA1:RA0
Indirect Addressing
Direct Addressing
Data
Memory
Bank 0
1F
0F
10
0
相關(guān)PDF資料
PDF描述
MTA81010S-RCI/SO 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDSO28
MTA81010-XTI/P 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDIP28
MTA81010T-XT/SO 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDSO28
MTA81010S-XTI/SO 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDSO28
MTA81010-LPI/SO 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDSO28
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MTA8106DGVRA 功能描述:SW TOGGLE SPDT VERT RT ANG PC 6A RoHS:否 類別:開關(guān) >> 撥動開關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開關(guān)功能:開-開-開 觸點額定電壓:6A @ 125VAC 觸動器類型:扁平型 觸動器長度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝
MTA8106DVRA 功能描述:SWITCH TOGGLE SPDT VRA PC 6A RoHS:否 類別:開關(guān) >> 撥動開關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開關(guān)功能:開-開-開 觸點額定電壓:6A @ 125VAC 觸動器類型:扁平型 觸動器長度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝
MTA8106DVRA04 功能描述:SWITCH TOGGLE SPDT VRA PC 6A RoHS:是 類別:開關(guān) >> 撥動開關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開關(guān)功能:開-開-開 觸點額定電壓:6A @ 125VAC 觸動器類型:扁平型 觸動器長度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝
MTA8106EGRA 功能描述:SW TOGGLE SPDT RT ANG PC 6A RoHS:否 類別:開關(guān) >> 撥動開關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開關(guān)功能:開-開-開 觸點額定電壓:6A @ 125VAC 觸動器類型:扁平型 觸動器長度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝
MTA8106EGRA04 功能描述:SWITCH TOGGLE SPDT RT ANG PC 6A RoHS:是 類別:開關(guān) >> 撥動開關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開關(guān)功能:開-開-開 觸點額定電壓:6A @ 125VAC 觸動器類型:扁平型 觸動器長度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝