Action
Overrides the SDA pin assignment from the Option Settings.
Syntax
CONFIG SDA = pin
Remarks
pin |
The port pin to which the I2C-SDA line is connected. |
When you use different pins in different projects, you can use this statement to override the Options Compiler setting for the SDA pin. This way you will remember which pin you used because it is in your code and you do not have to change the settings from the options.
See also
Example
CONFIG SDA = P3.7 'P3.7 is the SDA line