CONFIG SDA/de

From MCS Wiki AVR
< CONFIG SDA
Revision as of 20:13, 15 February 2013 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

= (**COPIED FROM ENGLISH PAGE**) === Action

Overrides the SDA pin assignment from the Option Compiler 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. In BASCOM-AVR the settings are also stored in the project.CFG file.

 

When using the Hardware TWI, you only need CONFIG SDA when you use the I2CINIT statement

 

 

See also

CONFIG SCL , CONFIG I2CDELAY , I2CINIT

 

 

Example


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

Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language