CONFIG SCL/de

Aus MCS Wiki AVR
< CONFIG SCL(Weitergeleitet von CONFIG SCL)
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

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

Overrides the SCL pin assignment from the Option Compiler Settings.

 

 

Syntax

CONFIG SCL = pin

 

 

Remarks

Pin

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

 

When you use different pins in different projects, you can use this statement to override the Options Compiler setting for the SCL 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. Of course BASCOM-AVR also stores the settings in a project.CFG file.

 

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

 

 

See also

CONFIG SDA , CONFIG I2CDELAY , I2CINIT

 

 

Example


CONFIG SCL = PORTB.5 'PORTB.5 is the SCL line

Languages   English Deutsch  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache