CONFIG SDA

Top  Previous  Next

Action

Informs the compiler which pin is used as SDA pin for TWI/I2C communication.

 

 

Syntax

CONFIG SDA = pin

 

 

Remarks

Pin

The port pin to which the I2C-SDA line is connected.

 

When using software emulated TWI, the compiler need to know which pins are used for SDA and SCL.

 

 

See also

CONFIG SCL , CONFIG I2CDELAY

 

 

Example

CONFIG SDA = PORTB.7  'PORTB.7 is the SDA line