參數(shù)資料
型號: PCA9671DB,112
廠商: NXP Semiconductors
文件頁數(shù): 14/33頁
文件大?。?/td> 0K
描述: IC I/O EXPANDER I2C 16B 24SSOP
產(chǎn)品培訓模塊: LED Controllers
特色產(chǎn)品: NXP - I2C Interface
標準包裝: 59
接口: I²C
輸入/輸出數(shù): 16
中斷輸出:
頻率 - 時鐘: 1MHz
電源電壓: 2.3 V ~ 5.5 V
工作溫度: -40°C ~ 85°C
安裝類型: 表面貼裝
封裝/外殼: 24-SSOP(0.209",5.30mm 寬)
供應商設備封裝: 24-SSOP
包裝: 管件
包括: POR
其它名稱: 568-4190-5
935283552112
PCA9671DB
2011 Microchip Technology Inc.
Preliminary
DS41458A-page 21
PIC16(L)F1526/27
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.
3.1.1.2
Indirect Read with FSR
The program memory can be accessed as data by set-
ting bit 7 of the FSRxH register and reading the match-
ing INDFx register. The MOVIW instruction will place the
lower 8 bits of the addressed word in the W register.
Writes to the program memory cannot be performed via
the INDF registers. Instructions that access the pro-
gram memory via the FSR require one extra instruction
cycle to complete. Example 3-2 demonstrates access-
ing the program memory via an FSR.
The HIGH directive will set bit<7> if a label points to a
location in program memory.
EXAMPLE 3-2:
ACCESSING PROGRAM
MEMORY VIA FSR
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
constants
RETLW DATA0
;Index0 data
RETLW DATA1
;Index1 data
RETLW DATA2
RETLW DATA3
my_function
;… LOTS OF CODE…
MOVLW
LOW constants
MOVWF
FSR1L
MOVLW
HIGH constants
MOVWF
FSR1H
MOVIW 0[FSR1]
;THE PROGRAM MEMORY IS IN W
相關PDF資料
PDF描述
PCA9675DB,118 IC I/O EXPANDER I2C 16B 24SSOP
PCA9675D,112 IC I/O EXPANDER I2C 16B 24SOIC
PCA9673DB,118 IC I/O EXPANDER I2C 16B 24SSOP
PCA9671DB,118 IC I/O EXPANDER I2C 16B 24SSOP
PCA9675D,118 IC I/O EXPANDER I2C 16B 24SOIC
相關代理商/技術參數(shù)
參數(shù)描述
PCA9671DB-T 功能描述:接口-I/O擴展器 16-BIT I2C FM+ QB GPIO RST PU RoHS:否 制造商:NXP Semiconductors 邏輯系列: 輸入/輸出端數(shù)量: 最大工作頻率:100 kHz 工作電源電壓:1.65 V to 5.5 V 工作溫度范圍:- 40 C to + 85 C 安裝風格:SMD/SMT 封裝 / 箱體:HVQFN-16 封裝:Reel
PCA9671DK,118 功能描述:接口-I/O擴展器 16-BIT I2C FM+ QB RoHS:否 制造商:NXP Semiconductors 邏輯系列: 輸入/輸出端數(shù)量: 最大工作頻率:100 kHz 工作電源電壓:1.65 V to 5.5 V 工作溫度范圍:- 40 C to + 85 C 安裝風格:SMD/SMT 封裝 / 箱體:HVQFN-16 封裝:Reel
PCA9671DK-T 功能描述:接口-I/O擴展器 16-BIT I2C FM+ QB GPIO RST PU RoHS:否 制造商:NXP Semiconductors 邏輯系列: 輸入/輸出端數(shù)量: 最大工作頻率:100 kHz 工作電源電壓:1.65 V to 5.5 V 工作溫度范圍:- 40 C to + 85 C 安裝風格:SMD/SMT 封裝 / 箱體:HVQFN-16 封裝:Reel
PCA9671D-T 功能描述:接口-I/O擴展器 16-BIT I2C FM+ QB GPIO RST PU RoHS:否 制造商:NXP Semiconductors 邏輯系列: 輸入/輸出端數(shù)量: 最大工作頻率:100 kHz 工作電源電壓:1.65 V to 5.5 V 工作溫度范圍:- 40 C to + 85 C 安裝風格:SMD/SMT 封裝 / 箱體:HVQFN-16 封裝:Reel
PCA9671PW 功能描述:接口-I/O擴展器 16-BIT I2C FM+ QB GPIO RST PU RoHS:否 制造商:NXP Semiconductors 邏輯系列: 輸入/輸出端數(shù)量: 最大工作頻率:100 kHz 工作電源電壓:1.65 V to 5.5 V 工作溫度范圍:- 40 C to + 85 C 安裝風格:SMD/SMT 封裝 / 箱體:HVQFN-16 封裝:Reel