參數(shù)資料
型號: PICADLL
英文描述: Single/Dual/Quad 220MHz, 1500V/µs Operational Amplifiers with Programmable Supply Current; Package: MSOP; No of Pins: 8; Temperature Range: -40°C to +85°C
中文描述: 開發(fā)的DLL的桌面
文件頁數(shù): 8/13頁
文件大?。?/td> 49K
代理商: PICADLL
Issue 1.4
18/06/98
Page 5
The acknowledge is set ready for the data transfer after the address and
hence in read mode (odd address being sent) if only one byte is to be read
the setnack parameter must equal 1. If more than one byte is to be read or if
in write mode (even address being sent) then setnack must equal 0.
The function waits for the address to be sent. Should a time-out occur during
the sending of an address then an error code 8001H is returned, otherwise
the status is returned.
2.7.3.
writebyte
Function specification
Int writebyte(int wrData)
Parameters are:
int wrData
This is the byte of data to be written.
Parameters returned
int ErrCode
.
If the software fails to open a handle to the driver 0x9000 is returned.
If the transfer time out occurs error code 8004H is returned otherwise the
status is returned.
Prerequisites
Adapter must be configured using
setup
, start and write address sent by
sendaddress
.
Functional description The function writes the data to the adapter and then waits for it to be sent.
Should a time-out occur during the sending of the data then error code 8004H
is returned, otherwise the status is returned.
Writebyte is compatible with both master write and slave write modes.
2.7.4.
readbyte
Function specification
Int readbyte(int setnack)
Parameters are:
int setnack
This controls whether the adapter transmits an acknowledge down the I2C
bus on reception of a byte. The last byte received during a transfer must not
be acknowledged, in all other cases acknowledge must be enabled. If
setnack = 0 then acknowledge is enabled, if setnack = 1 then acknowledge is
disabled. Therefore, if the LAST BUT ONE byte is to be read, setnack should
be set to =1; in all other cases it is to be set = 0 (in the case of reading 1 byte
only, the acknowledge will have been disabled by sendaddress and so should
now be enabled again after reading the data, hence setnack = 0 for reading a
single byte of data).
The first read from the adapter following a write to it will result in the data that
was written being returned. This data MUST be read and discarded before
real data can be read, DO NOT count this extra read when considering
whether or not to acknowledge.
Parameters returned
int I2CData
If the software fails to open a handle to the driver 0x9000 is returned.
The data read, if a time-out occurs the ErrCode 8005H is returned.
Prerequisites
Adapter must be configured using
setup
, start and read address sent by
sendaddress
.
Functional description If setnack is 1 the function writes 40H to the control register to establish the
correct acknowledge procedure.
The data is read from the adapter.
Readbyte is compatible with both master read and slave read modes.
相關(guān)PDF資料
PDF描述
PID2PCMCIA Telecommunication IC
CSP1034AH Telecommunication IC
DSP1643 Telecommunication IC
PID9q-604e 32-Bit RISC Microprocessor(32位精簡指令集微處理器)
PIEZO_SYSTEMS_PRODUCT_CATALOG 600mA, 500kHz Step-Down Switching Regulator in SOT-23; Package: SOT; No of Pins: 6; Temperature Range: -40°C to +125°C
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PICAMBOX 制造商:Nwazet 功能描述:PI CAMERA BOX
PICAMBOXBUNDLE 制造商:Nwazet 功能描述:PI CAMERA BOX BUNDLE WITH FISHEYE LENS
PICAMWALLMNT 制造商:Nwazet 功能描述:PI CAMERA WALL MOUNT
PICASO 功能描述:顯示開發(fā)工具 Embedded Serial Graphics Controller RoHS:否 制造商:4D Systems 產(chǎn)品:4Display Shields 工具用于評估:?OLED-160-G1, ?OLED-160-G2 接口類型:Serial 工作電源電壓:5 V
PIC-BEE 功能描述:子卡和OEM板 PIC-BEE XBEE RADIO INTERFACE RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit