Calibre UK ICA93LV user manual Slavelastbyte

Page 21

 

Getbytes can only be used in master read mode.

slavelastbyte

 

Function specification

void slavelastbyte( )

Parameters returned

none.

Prerequisites

Adapter must be configured using setup. This function would normally

 

only be called following the end of a transmission in slave write mode –

 

when the adapter is being read as a slave, by another master, not when

 

writing to a slave using the adapter.

Functional description

This function is used when the adapter is a slave being read by a master

 

elsewhere on the bus – the adapter is in slave write mode. The function

 

must be called immediately after the master indicates the last byte has

 

been read (by not acknowledging that byte) this function is required to

 

clear the I2C data lines so that the master can send a stop signal.

Revision 1.7

Page 20 of 27

09/12/1999

 

Image 21
Contents ICA93LV ContentsPacking List IntroductionConfiguring the Adapter Setting the Adapter Base AddressWait State Generator Bus Termination and Protection Installing the AdapterNormal/Long Distance Mode Connecting the Adapter to your System Connector PinoutVariable Voltage Bus Power Supply Bus Capacitance Limitations/Cable ChoiceIntroduction to the Utilities Getting Started Resetting the AdapterLibrary/Programs TurboBASIC Library/ProgramsUsing the Utilities Routines 1. I2C Setup/Initialisation Routine2. I2C Status Checking Routine 3. I2C Address and Start Sending Routine 4. I2C Read Data Byte from Slave Routine Send an I2C Stop Routine Write Data Byte to Slave Routine7. I2C Restart and Address Sending Routine TurboBASIC Routines 1. I2C Setup/Initialisation Routines2. I2C Status Checking Routine 3. I2C Address and Start Sending Routine Write Data Byte to Slave Routine 7. I2C Restart and Address Sending Routine Visual Basic 3.0 function SetupSendaddress Sendaddress SendstopRestart Sendbytes GetstatusGetbytes Slavelastbyte Further Information Real-Time Bus Monitor BUS ErrorBit 7 MSB The PIN Bit Appendix a I2C Communications Adapter Status CodesBit 6 Not Used Bit 5 The STS BitAppendix B I2C Communications Adapter Control Codes DOS Software Questions Question Do you have software to talk to my........?Hkeylocalmachine System