The CONFIG statement is used to configure the various hardware devices.
DIRECTIVE |
RE-USABLE |
NO |
|
YES |
|
NO |
|
NO |
|
NO |
|
NO |
|
YES |
|
YES |
|
CONFIG COM2 also COM3, COM4 |
YES |
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
YES |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
YES |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
NO |
|
YES |
|
NO |
|
YES |
|
YES |
|
YES |
|
NO |
|
YES |
|
NO |
|
NO |
|
YES |
Some CONFIG directives are intended to be used once. Others can be used multiple times. For example you can specify that a port must be set to input after you have specified that it is used as an input.
You cannot change the LCD pins during run time. In that case the last specification will be used or an error message will be displayed.