| CONFIG | 
| Select one of the
        following topics to learn more about a specific config
        statement. CONFIG TIMER0, TIMER1 CONFIG TIMER2 (for 8052 compatible chips) CONFIG LCD CONFIG LCDBUS CONFIG LCDPIN CONFIG BAUD CONFIG 1WIRE CONFIG SDA CONFIG SCL CONFIG DEBOUNCE CONFIG WATCHDOG | 
| CONFIG TIMER0, TIMER1 | 
| Action Configure TIMER0 or TIMER1. Syntax CONFIG TIMERx = COUNTER/TIMER , GATE=INTERNAL/EXTERNAL , MODE=0/3 Remarks TIMERx
        TIMER0 or TIMER1. When the timer/counter is configured the timer/counter is stopped so you must start it afterwards with the START TIMERx statement. See the additional statements for other microprocessors that use the CONFIG statement. Example START 
        COUNTER0 
        'enable the counter to run 
 | 
| TIMER2 in 8032 and compatibles | 
| Some microprocessors
        have an additional timer on board : TIMER2. This section describes the 8032 compatible TIMER2 and is not compatible with th TIMER2 found in the 80C535 and others. TIMER2 is a 16-bit timer/counter which can operate as either an event timer or an event counter. TIMER2 has three main operating modes : capture, auto-reload(up or down counting) , and baud rate generator. Capture mode · 16-bit timer/counter which upon overflowing sets bit TF2, the TIMER2 overflow bit. This bit can be used to generate an interrupt. Counter
        mode : Timer
        mode: · As above but with the added future that a 1 to 0 transition on at external input T2EX causes the current values in the TIMER2 registers TL2 and TH2 to be captured into the capture registers RCAP2L and RCAP2H. Counter
        mode: Timer
        mode: In addition the transition at T2EX causes bit EXF2 in T2CON to be set and EXF2 like TF2 can generate an interrupt. The
        TIMER2 interrupt routine can interrogate TF2 and EXF2 to
        determine which event caused the interrupt. Auto
        reload mode TIMER2
        will default to counting up to &HFFFF and sets the
        TF2 overflow flag bit upon overflow. This causes the
        TIMER2 registers to be reloaded with the 16-bit value in
        RCAP2L and RCAP2H. Counter
        mode: Timer
        mode: If EXEN2=1 then a 16-bit reload can be triggered either by an overflow or by a 1 to 0 transition at input T2EX. This transition also sets the EXF2 bit. The TIMER2 interrupt, if enabled, can be generated when either TF2 or EXF2 are 1. Counter
        mode: Timer
        mode: Counter
        mode: Timer
        mode: 
 Counter
        mode: Timer
        mode: 
 Baud
        rate generator 
 TIMER1
        can be used for the transmission with an other baud rate. Note that TIMER1 must be setup from assembler this way. 
 Note that TIMER1 must be setup from assembler this way. Clock
        output CONFIG TIMER2=TIMER,MODE=5 The output frequency = (fOSC / 4) / (65536-CAPTURE) Use CAPTURE = value to set the capture register. How
        to determine what caused the interrupt Timer2_ISR: Print "External 
        transition" 
 | 
| CONFIG LCD | 
| Action Configure the LCD display. Syntax CONFIG LCD = LCDtype Remarks LCDtype
        The type of LCD display used. This can be : The
        40 * 4a LCD display is also a special one. It has two
        ENABLE lines. CONFIG LCDPIN = PIN , E1 = Pin, E2 = pin, etc. To
        select between E1 and E2 you need to set the B register. LCD
        with a constant will work and also with strings. To send data use the low level routine WRITE_LCD instead of LCD_CONTROL Most LCD routines will work with the 40*4a display but some will fail. In that case you need to use the low level ASM routines as shown above. Example 
 | 
| CONFIG LCDBUS | 
| Action Configures the LCD databus. Syntax CONFIG LCDBUS = constant Remarks constant
        4 for 4-bit operation, 8 for 8-bit mode (default) See also Example 
 | 
| CONFIG LCDPIN | 
| Action Override the LCD-options to store the settings in your program. Syntax CONFIG LCDPIN = PIN, DB4= P1.1,DB5=P1.2,DB6=P1.3,DB7=P1.4,E=P1.5,RS=P1.6 Remarks P1.1 etc. are just an example in the syntax. See also CONFIG LCD Example CONFIG LCDPIN = PIN ,DB4= P1.1,DB5=P1.2,DB6=P1.3,DB7=P1.4,E=P1.5,RS=P1.6 
 | 
| CONFIG BAUD | 
| Action Configure the uP to select the intern baud rate generator. This baud rate generator is only available in the 80515, 80517, 80535, 80537 and compatible chips. Syntax CONFIG BAUD = baud rate Remarks Baud
        rate Baud rate to use : 4800 or 9600 | 
| CONFIG 1WIRE | 
| Action Configure the pin to use for 1WIRE statements. Syntax CONFIG 1WIRE = pin Remarks pin
        The port pin to use such as P1.0 
 
 | 
| CONFIG SDA | 
| 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. Example 
 | 
| CONFIG SCL | 
| Action Overrides the SCL pin assignment from the Option Settings. Syntax CONFIG SCL = pin Remarks pin
        The port pin to which the I2C-SCL line is connected. Example 
 | 
| CONFIG DEBOUNCE | 
| Action Configures the delay time for the DEBOUNCE statement. Syntax CONFIG DEBOUNCE = time Remarks time
        A numeric constant which specifies the delay time in mS. See also Example 
 | 
| CONFIG WATCHDOG | 
| Action Configures the watchdog timer from the AT89C8252 Syntax CONFIG WATCHDOG = time Remarks time
        The interval constant in mS the watchdog timer will count
        to. See also Example '----------------------------------------------------- Next 
 | 
| CONFIG SPI | 
| Action Configures the SPI related statements. Syntax CONFIG SPI = SOFT, DIN = PIN, DOUT = PIN , CS = PIN, CLK = PIN ,DATA ORDER = DO, NOCS = Remarks DIN
        Data input. Pin is the pin number to use such as p1.0 See also Example 
 | 
| CONFIG I2CDELAY | 
| Action Configures the delay for the I2C clock. Syntax CONFIG I2CDELAY = value Remarks value
        A numeric constant. See also Example 
 | 
| CONFIG MICROWIRE | 
| Action Configures the microwire pins. Syntax Remarks CS Chip select 
 | 
| CONFIG SERVOS | 
| Action Configures the number of servos and their pins. Syntax Config SERVOS = number , SERVO1 = P1.1 , SERVO2 = P1.2 , SERVO3 = P1.4 , SERVO4 = P1.5 , RELOAD = value Remarks number
        The number of servos you want to use. After 20 mS the pulses 
        will be send again to the port pins. 
 | 
| CONFIG ADUC812 | 
| Action Configures the ADUC812 microprocessor. Syntax for ADC Syntax for DAC Remarks ADC mode
        POWERDOWN, NORMAL, PDNE, STANDBY. mode The DAC can be 
        in 8 bit mode or 12 bit mode. So the parameter may be 8 or 12. Both DACS 
        are set with this parameter. 
 | 
| CONFIG GETRC | 
| Action Configures the GETRC() charge time. Syntax Remarks time The time in milli 
        seconds to charge the capacitor 
 | 
| CONFIG PRINT | 
| Action Configures the PRINT statement. Syntax Config PRINT = pin Config PRINTMODE = mode Remarks pin
        The pin to use for the output control such as P3.0 See also |