CONFIG RC5

Top  Previous  Next

Action

Overrides the RC5 pin assignment from the Option Compiler Settings.

 

 

Syntax

CONFIG RC5 = pin [,TIMER=2]

 

 

Remarks

Pin

The port pin to which the RC5 receiver is connected.

TIMER

Must be 2. The micro must have a timer2 when you want to use this option. This additional parameter will cause that TIMER2 will be used instead of the default TIMER0.

 

When you use different pins in different projects, you can use this statement to override the Options Compiler setting for the RC5 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.

 

 

See also

GETRC5

 

 

Example

CONFIG RC5 = PIND.5  'PORTD.5 is the RC5 input line