Posted: Thu Aug 29, 2002 10:23 am
I am working with BASIC Micro's ATOM and the LCD 2401. I want to communicate using I2C but am having trouble. The command structure with the ATOM for this is:
I2COUT DataPin,ClockPin,{ErrLabel,}Control,{Address,}[{Mods}Var,...VarN]
DataPin: SDA pin (0 in my case)
ClockPin: SCL pin (1 in my case)
ErrLabel: lave that the program will jump to if the I2CIN command fails or a device is not connected
Control: a variable or constant that specifies the I2C device's control byte. The control byte consists of 2 parts, the first 4 bits are the device type and the next 3 bits are the device ID. The last bit is for address formating (1 = 16bit and 0 = 8bit)
Address: optional variable or constant that specifies the starting address
Mods: are command modifiers (N/A here)
Var...VarN: Information to be sent.
Any help would be appreciated.
I2COUT DataPin,ClockPin,{ErrLabel,}Control,{Address,}[{Mods}Var,...VarN]
DataPin: SDA pin (0 in my case)
ClockPin: SCL pin (1 in my case)
ErrLabel: lave that the program will jump to if the I2CIN command fails or a device is not connected
Control: a variable or constant that specifies the I2C device's control byte. The control byte consists of 2 parts, the first 4 bits are the device type and the next 3 bits are the device ID. The last bit is for address formating (1 = 16bit and 0 = 8bit)
Address: optional variable or constant that specifies the starting address
Mods: are command modifiers (N/A here)
Var...VarN: Information to be sent.
Any help would be appreciated.