<root>
<device name='18F13K50' product='PIC' family='18F' bits='8' >
    <clock max_speed='48000000' master_divider='4' default='19660800' />
    <memory >
        <flash bytes='8192' />
        <ram bytes='512' />
    </memory>
    <configuration address='0x300000' mult='1' >
        <format >
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
            <byte value='0xFF' />
        </format>
        <setting />
        <settings >
            <setting name='CPUDIV' offset='3' mask='3' bits='2' hint='CPU System Clock Selection bits' >
                <option name='CPU system clock divided by 4' value='3' />
                <option name='CPU system clock divided by 3' value='2' />
                <option name='CPU system clock divided by 2' value='1' />
                <option name='No CPU system clock divide' value='0' />
            </setting>
            <setting name='USBDIV' offset='5' mask='1' bits='1' hint='USB Clock Selection bit' >
                <option name='USB clock comes from the OSC1/OSC2 divided by 2' value='1' />
                <option name='USB clock comes directly from the OSC1/OSC2 Oscillator block, no divide' value='0' />
            </setting>
            <setting name='OSC' offset='8' mask='15' bits='4' hint='Oscillator' >
                <option name='111X EXT RC-CLKOUT on OSC2' value='14' />
                <option name='EC - Low' value='13' />
                <option name='EC-CLKOUT on OSC2 - Low' value='12' />
                <option name='EC - Medium' value='11' />
                <option name='EC-CLKOUT on OSC2 - Medium' value='10' />
                <option name='INT RC-CLKOUT on OSC2' value='9' />
                <option name='INT RC' value='8' />
                <option name='EXT RC' value='7' />
                <option name='0110 EXT RC-CLKOUT on OSC2' value='6' />
                <option name='EC - High' value='5' />
                <option name='EC-CLKOUT on OSC2 - High' value='4' />
                <option name='0011 EXT RC-CLKOUT on OSC2' value='3' />
                <option name='HS' value='2' />
                <option name='XT' value='1' />
                <option name='LP' value='0' />
            </setting>
            <setting name='PLLEN' offset='12' mask='1' bits='1' hint='4 X PLL Enable bit' >
                <option name='Oscillator multiplied by 4' value='1' />
                <option name='Oscillator used directly' value='0' />
            </setting>
            <setting name='PCLKEN' offset='13' mask='1' bits='1' hint='Primary Clock Enable bit' >
                <option name='Primary Clock enabled' value='1' />
                <option name='Primary Clock disabled' value='0' />
            </setting>
            <setting name='FCMEN' offset='14' mask='1' bits='1' hint='Fail-Safe Clock Monitor Enable' >
                <option name='Disabled' value='0' />
                <option name='Enabled' value='1' />
            </setting>
            <setting name='IESO' offset='15' mask='1' bits='1' hint='Internal External Switch Over Mode' >
                <option name='Disabled' value='0' />
                <option name='Enabled' value='1' />
            </setting>
            <setting name='nPWRTEN' offset='16' mask='1' bits='1' hint='Power Up Timer' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='BOREN' offset='17' mask='3' bits='2' hint='Brown Out Detect' >
                <option name='Enabled in hardware, SBOREN disabled' value='3' />
                <option name='Enabled while active,disabled in SLEEP,SBOREN disabled' value='2' />
                <option name='Controlled with SBOREN bit' value='1' />
                <option name='Disabled in hardware, SBOREN disabled' value='0' />
            </setting>
            <setting name='BORV' offset='19' mask='3' bits='2' hint='Brown Out Voltage' >
                <option name='1.9V' value='3' />
                <option name='2.2V' value='2' />
                <option name='2.7V' value='1' />
                <option name='3.0V' value='0' />
            </setting>
            <setting name='Reserved' offset='21' mask='1' bits='1' hint='Reserved' >
                <option name='Reserved' value='1' />
            </setting>
            <setting name='WDTEN' offset='24' mask='1' bits='1' hint='Watchdog Timer' >
                <option name='Enabled' value='1' />
                <option name='Disabled-Controlled by SWDTEN bit' value='0' />
            </setting>
            <setting name='WDTPS' offset='25' mask='15' bits='4' hint='Watchdog Postscaler' >
                <option name='1:32768' value='15' />
                <option name='1:16384' value='14' />
                <option name='1:8192' value='13' />
                <option name='1:4096' value='12' />
                <option name='1:2048' value='11' />
                <option name='1:1024' value='10' />
                <option name='1:512' value='9' />
                <option name='1:256' value='8' />
                <option name='1:128' value='7' />
                <option name='1:64' value='6' />
                <option name='1:32' value='5' />
                <option name='1:16' value='4' />
                <option name='1:8' value='3' />
                <option name='1:4' value='2' />
                <option name='1:2' value='1' />
                <option name='1:1' value='0' />
            </setting>
            <setting name='HFOFST' offset='43' mask='1' bits='1' hint='HFINTOSC Fast Start-up' >
                <option name='HFINTOSC starts clocking the CPU without waiting for the oscillator to stabilize' value='1' />
                <option name='The system clock is held off until the HFINTOSC is stable' value='0' />
            </setting>
            <setting name='MCLRE' offset='47' mask='1' bits='1' hint='Master Clear Enable' >
                <option name='MCLR Enabled,RA3 Disabled' value='1' />
                <option name='MCLR Disabled,RA3 Enabled' value='0' />
            </setting>
            <setting name='STVREN' offset='48' mask='1' bits='1' hint='Stack Overflow Reset' >
                <option name='Enabled' value='1' />
                <option name='Disabled' value='0' />
            </setting>
            <setting name='LVP' offset='50' mask='1' bits='1' hint='Low Voltage Program' >
                <option name='Enabled' value='1' />
                <option name='Disabled' value='0' />
            </setting>
            <setting name='BBSIZ' offset='51' mask='1' bits='1' hint='Boot BLock Size Select bit' >
                <option name='2 kW boot block size' value='1' />
                <option name='1 kW boot block size' value='0' />
            </setting>
            <setting name='XINST' offset='54' mask='1' bits='1' hint='Extended Instruction Set Enable bit' >
                <option name='Enabled' value='1' />
                <option name='Disabled' value='0' />
            </setting>
            <setting name='BACKBUG' offset='55' mask='1' bits='1' hint='Background Debug' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='CP_0' offset='64' mask='1' bits='1' hint='Code Protect 00800-00FFF' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='CP_1' offset='65' mask='1' bits='1' hint='Code Protect 01000-01FFF' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='CPB' offset='78' mask='1' bits='1' hint='Code Protect Boot' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='CPD' offset='79' mask='1' bits='1' hint='Data EEPROM Code Protect' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='WRT_0' offset='80' mask='1' bits='1' hint='Table Write Protect 00800-01FFF' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='WRT_1' offset='81' mask='1' bits='1' hint='Table Write Protect 02000-03FFF' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='WRTC' offset='93' mask='1' bits='1' hint='Config. Write Protect' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='WRTB' offset='94' mask='1' bits='1' hint='Table Write Protect Boot' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='WRTD' offset='95' mask='1' bits='1' hint='Data EEPROM Write Protect' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='EBTR_0' offset='96' mask='1' bits='1' hint='Table Read Protect 00800-01FFF' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='EBTR_1' offset='97' mask='1' bits='1' hint='Table Read Protect 02000-03FFF' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='EBTRB' offset='110' mask='1' bits='1' hint='Table Read Protect Boot' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
        </settings>
    </configuration>
    <pins sides='2' smd='0' >
        <pin name='VDD' />
        <pin name='RA5/OSC1' port='0' bit='5' />
        <pin name='RA4/OSC2' port='0' bit='4' adc='3' />
        <pin name='RA3/MCLR' port='0' bit='3' />
        <pin name='RC5/CCP1/T0CKI' port='2' bit='5' />
        <pin name='RC4' port='2' bit='4' />
        <pin name='RC3/AN7' port='2' bit='3' adc='7' />
        <pin name='RC6/AN8' port='2' bit='6' adc='8' />
        <pin name='RC7/AN9/SDO' port='2' bit='7' adc='9' />
        <pin name='RB7/TX' port='1' bit='7' />
        <pin name='RB6/SCK/SCL' port='1' bit='6' />
        <pin name='RB5/AN11/RX' port='1' bit='5' adc='11' />
        <pin name='RB4/AN10/SDI/SDA' port='1' bit='4' adc='10' />
        <pin name='RC2/AN6/INT2' port='2' bit='2' adc='6' />
        <pin name='RC1/AN5/INT1' port='2' bit='1' adc='5' />
        <pin name='RC0/AN4/INT0' port='2' bit='0' adc='4' />
        <pin name='VUSB' />
        <pin name='RA1/D-/PGC' port='0' bit='1' />
        <pin name='RA0/D+/PGD' port='0' bit='0' />
        <pin name='VSS' />
    </pins>
    <adc type='19' bits='10' >
        <speed >
            <option name='Fosc / 2' value='0' />
            <option name='Fosc / 8' value='1' />
            <option name='Fosc / 32' value='2' />
            <option name='FRC' value='3' />
            <option name='Fosc / 4' value='4' />
            <option name='Fosc / 16' value='5' />
            <option name='Fosc / 64' value='6' />
        </speed>
	<vref>
	    <option name='VDD' value='0' />
	    <option name='Vref+' value='1' />
	    <option name='FVR' value='2' />
        </vref>
    </adc>
    <eeprom type='3' bytes='256' />
    <spi >
        <miso port='1' pin='4' />
        <mosi port='2' pin='7' />
        <clk port='1' pin='6' />
        <ss port='2' pin='6' />
    </spi>
    <uart >
        <tx port='1' pin='7' />
        <rx port='1' pin='5' />
    </uart>
    <i2c master='1' >
        <sda port='1' pin='4' />
        <scl port='1' pin='6' />
    </i2c>
    <pwm>
    	<timer>
    	    <option name='Timer2' value='2' />
    	</timer>
        <prescaler >
            <option name='1' value='1' />
            <option name='4' value='4' />
            <option name='16' value='16' />
        </prescaler>
        <out port='2' pin='5' />
    </pwm>
    <usb type='3' />
    <interrupts >
        <interrupt ident='TMR0' regl='tmr0' regh='' type='timer8' name='Timer 0' handler='#ifndef MX_INTHANDLER_intcon_TMR0IF\n#define MX_INTHANDLER_intcon_TMR0IF\nif (ts_bit(intcon, TMR0IF) &amp;&amp; ts_bit(intcon, TMR0IE))\n{\n\tFCM_%n();\n\tcr_bit(intcon, TMR0IF);\n}\n#else\n#warning &quot;This interrupt has previously been enabled, so the macro &lt;%n&gt; may never get called.&quot;\n#endif\n' enable='st_bit(intcon, TMR0IE);\n' disable='cr_bit(intcon, TMR0IE);\n' >
            <timer overflow='256' extrange='0' />
            <options >
                <option name='Clock Source Select' >
                    <entry name='Transition on T0CKI pin' clkdiv='0' value='st_bit(t0con, T0CS);\n' />
                    <entry name='Internal clock (CLKO)' clkdiv='4' value='cr_bit(t0con, T0CS);\n' />
                </option>
                <option name='Source Edge Select' >
                    <entry name='high-to-low transition on TMR0 Clock' value='st_bit(t0con, T0SE);\n' />
                    <entry name='low-to-high transition on TMR0 Clock' value='cr_bit(t0con, T0SE);\n' />
                </option>
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='t0con = (t0con &amp; 0xF0) | 0x08;\n' />
                    <entry name='1:2' value='t0con = (t0con &amp; 0xF0) | 0x00;\n' />
                    <entry name='1:4' value='t0con = (t0con &amp; 0xF0) | 0x01;\n' />
                    <entry name='1:8' value='t0con = (t0con &amp; 0xF0) | 0x02;\n' />
                    <entry name='1:16' value='t0con = (t0con &amp; 0xF0) | 0x03;\n' />
                    <entry name='1:32' value='t0con = (t0con &amp; 0xF0) | 0x04;\n' />
                    <entry name='1:64' value='t0con = (t0con &amp; 0xF0) | 0x05;\n' />
                    <entry name='1:128' value='t0con = (t0con &amp; 0xF0) | 0x06;\n' />
                    <entry name='1:256' value='t0con = (t0con &amp; 0xF0) | 0x07;\n' />
                </prescale>
            </options>
        </interrupt>
        <interrupt ident='TMR1' regl='tmr1l' regh='tmr1h' type='timer16' name='Timer 1' handler='#ifndef MX_INTHANDLER_pir1_TMR1IF\n#define MX_INTHANDLER_pir1_TMR1IF\nif (ts_bit(pir1, TMR1IF) &amp;&amp; ts_bit(pie1, TMR1IE))\n{\n\tFCM_%n();\n\tcr_bit(pir1, TMR1IF);\n}\n#else\n#warning &quot;This interrupt has previously been enabled, so the macro &lt;%n&gt; may never get called.&quot;\n#endif\n' enable='st_bit(intcon, PEIE);\nst_bit(pie1, TMR1IE);\n' disable='cr_bit(pie1, TMR1IE);\n' >
            <timer overflow='65536' extrange='0' />
            <options >
                <option name='Clock Source Select' >
                    <entry name='Transition on T1CKI pin' clkdiv='0' value='cr_bit(t1con, T1OSCEN);\nst_bit(t1con, TMR1ON);\nst_bit(t1con, TMR1CS);\n' />
                    <entry name='Internal clock (Fosc/4)' clkdiv='4' value='cr_bit(t1con, T1OSCEN);\nst_bit(t1con, TMR1ON);\ncr_bit(t1con, TMR1CS);\n' />
                    <entry name='32.768KHz XTAL T1CKI/T1CKO' clkdiv='0' value='st_bit(t1con, T1OSCEN);\nst_bit(t1con, TMR1ON);\nst_bit(t1con, TMR1CS);\n' />
                </option>
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='t1con = t1con &amp; 0xCF;\n' />
                    <entry name='1:2' value='t1con = (t1con &amp; 0xCF) | 0x10;\n' />
                    <entry name='1:4' value='t1con = (t1con &amp; 0xCF) | 0x20;\n' />
                    <entry name='1:8' value='t1con = (t1con &amp; 0xCF) | 0x30;\n' />
                </prescale>
            </options>
        </interrupt>
        <interrupt ident='RXINT0' type='comms' name='UART RXINT0' handler='#ifndef MX_INTHANDLER_pir1_RCIF\n#define MX_INTHANDLER_pir1_RCIF\nif (ts_bit(pir1, RCIF) &amp;&amp; ts_bit(pie1, RCIE))\n{\n\tFCM_%n();\n\tcr_bit(pir1, RCIF);\n}\n#else\n#warning &quot;This interrupt has previously been enabled, so the macro &lt;%n&gt; may never get called.&quot;\n#endif' enable='st_bit(intcon, PEIE);\nst_bit(pie1, RCIE);\n' disable='cr_bit(pie1, RCIE);\n' />
        <interrupt ident='TMR2' regl='tmr2' regh='' type='timer8' name='Timer 2' handler='#ifndef MX_INTHANDLER_pir1_TMR2IF\n#define MX_INTHANDLER_pir1_TMR2IF\nif (ts_bit(pir1, TMR2IF) &amp;&amp; ts_bit(pie1, TMR2IE))\n{\n\tFCM_%n();\n\tcr_bit(pir1, TMR2IF);\n}\n#else\n#warning &quot;This interrupt has previously been enabled, so the macro &lt;%n&gt; may never get called.&quot;\n#endif' enable='st_bit(intcon, PEIE);\nst_bit(pie1, TMR2IE);\n' disable='cr_bit(pie1, TMR2IE);\n' >
            <timer overflow='256' extrange='0' />
            <options >
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='cr_bit(t2con, T2CKPS0);\ncr_bit(t2con, T2CKPS1);\nst_bit(t2con, TMR2ON);\n' />
                    <entry name='1:4' value='st_bit(t2con, T2CKPS0);\ncr_bit(t2con, T2CKPS1);\nst_bit(t2con, TMR2ON);\n' />
                    <entry name='1:16' value='cr_bit(t2con, T2CKPS0);\nst_bit(t2con, T2CKPS1);\nst_bit(t2con, TMR2ON);\n' />
                </prescale>
                <postscale name='Postscaler Rate' >
                    <entry name='1:1' value='t2con = t2con &amp; 0x07;\n' />
                    <entry name='1:2' value='t2con = (t2con &amp; 0x07) | 0x08;\n' />
                    <entry name='1:3' value='t2con = (t2con &amp; 0x07) | 0x10;\n' />
                    <entry name='1:4' value='t2con = (t2con &amp; 0x07) | 0x18;\n' />
                    <entry name='1:5' value='t2con = (t2con &amp; 0x07) | 0x20;\n' />
                    <entry name='1:6' value='t2con = (t2con &amp; 0x07) | 0x28;\n' />
                    <entry name='1:7' value='t2con = (t2con &amp; 0x07) | 0x30;\n' />
                    <entry name='1:8' value='t2con = (t2con &amp; 0x07) | 0x38;\n' />
                    <entry name='1:9' value='t2con = (t2con &amp; 0x07) | 0x40;\n' />
                    <entry name='1:10' value='t2con = (t2con &amp; 0x07) | 0x48;\n' />
                    <entry name='1:11' value='t2con = (t2con &amp; 0x07) | 0x50;\n' />
                    <entry name='1:12' value='t2con = (t2con &amp; 0x07) | 0x58;\n' />
                    <entry name='1:13' value='t2con = (t2con &amp; 0x07) | 0x60;\n' />
                    <entry name='1:14' value='t2con = (t2con &amp; 0x07) | 0x68;\n' />
                    <entry name='1:15' value='t2con = (t2con &amp; 0x07) | 0x70;\n' />
                    <entry name='1:16' value='t2con = (t2con &amp; 0x07) | 0x78;\n' />
                </postscale>
                <rollover name='Rollover Value' >
                    <entry name='256' min='1' max='256' value='pr2=%d-1;\n' />
                </rollover>
            </options>
        </interrupt>
        <interrupt ident='IOC0' type='multipin' name='IOC PORTA&amp;b' handler='#ifndef MX_INTHANDLER_intcon_RABIF\n#define MX_INTHANDLER_intcon_RABIF\nchar mxtmp;\nif (ts_bit(intcon, RABIF) &amp;&amp; ts_bit(intcon, RABIE))\n{\n\tFCM_%n();\n\tmxtmp=portb;\n\tcr_bit(intcon, RABIF);\n}\n#else\n#warning &quot;This interrupt has previously been enabled, so the macro &lt;%n&gt; may never get called.&quot;\n#endif\n' enable='ioca=%pA0v;\niocb=%pB0v;\nst_bit(intcon, RABIE);\n' disable='cr_bit(intcon, RABIE);\n' >
            <ioc config='0x0C' >
                <rising port='0' mask='0x3D' />
                <falling port='0' mask='0x3D' />
                <rising port='1' mask='0xF0' />
                <falling port='1' mask='0xF0' />
            </ioc>
        </interrupt>
        <interrupt ident='INT0' type='pin' name='INT0 Pin' handler='#ifndef MX_INTHANDLER_intcon_INT0IF\n#define MX_INTHANDLER_intcon_INT0IF\nif (ts_bit(intcon, INT0IF) &amp;&amp; ts_bit(intcon, INT0IE))\n{\n\tFCM_%n();\n\tcr_bit(intcon, INT0IF);\n}\n#else\n#warning &quot;This interrupt has previously been enabled, so the macro &lt;%n&gt; may never get called.&quot;\n#endif\n' enable='st_bit(intcon, INT0IE);\n' disable='cr_bit(intcon, INT0IE);\n' >
            <ioc config='3' >
                <rising port='2' mask='1' />
                <falling port='2' mask='1' />
            </ioc>
            <options >
                <edge name='Interrupt Edge Select' >
                    <entry name='Rising edge of INT' value='st_bit(intcon2, INTEDG0);\n' />
                    <entry name='Falling edge of INT' value='cr_bit(intcon2, INTEDG0);\n' />
                </edge>
            </options>
        </interrupt>
        <interrupt ident='INT1' type='pin' name='INT1 Pin' handler='#ifndef MX_INTHANDLER_intcon3_INT1IF\n#define MX_INTHANDLER_intcon3_INT1IF\nif (ts_bit(intcon3, INT1IF) &amp;&amp; ts_bit(intcon3, INT1IE))\n{\n\tFCM_%n();\n\tcr_bit(intcon3, INT1IF);\n}\n#else\n#warning &quot;This interrupt has previously been enabled, so the macro &lt;%n&gt; may never get called.&quot;\n#endif\n' enable='st_bit(intcon3, INT1IE);\n' disable='cr_bit(intcon3, INT1IE);\n' >
            <ioc config='3' >
                <rising port='2' mask='2' />
                <falling port='2' mask='2' />
            </ioc>
            <options >
                <edge name='Interrupt Edge Select' >
                    <entry name='Rising edge of INT' value='st_bit(intcon2, INTEDG1);\n' />
                    <entry name='Falling edge of INT' value='cr_bit(intcon2, INTEDG1);\n' />
                </edge>
            </options>
        </interrupt>
        <interrupt ident='INT2' type='pin' name='INT2 Pin' handler='#ifndef MX_INTHANDLER_intcon3_INT2IF\n#define MX_INTHANDLER_intcon3_INT2IF\nif (ts_bit(intcon3, INT2IF) &amp;&amp; ts_bit(intcon3, INT2IE))\n{\n\tFCM_%n();\n\tcr_bit(intcon3, INT2IF);\n}\n#else\n#warning &quot;This interrupt has previously been enabled, so the macro &lt;%n&gt; may never get called.&quot;\n#endif\n' enable='st_bit(intcon3, INT2IE);\n' disable='cr_bit(intcon3, INT2IE);\n' >
            <ioc config='3' >
                <rising port='2' mask='4' />
                <falling port='2' mask='4' />
            </ioc>
            <options >
                <edge name='Interrupt Edge Select' >
                    <entry name='Rising edge of INT' value='st_bit(intcon2, INTEDG2);\n' />
                    <entry name='Falling edge of INT' value='cr_bit(intcon2, INTEDG2);\n' />
                </edge>
            </options>
        </interrupt>
        <interrupt ident='TMR3' regl='tmr3l' regh='tmr3h' type='timer16' name='Timer 3' handler='#ifndef MX_INTHANDLER_pir2_TMR3IF\n#define MX_INTHANDLER_pir2_TMR3IF\nif (ts_bit(pir2, TMR3IF) &amp;&amp; ts_bit(pie2, TMR3IE))\n{\n\tFCM_%n();\n\tcr_bit(pir2, TMR3IF);\n}\n#else\n#warning &quot;This interrupt has previously been enabled, so the macro &lt;%n&gt; may never get called.&quot;\n#endif\n' enable='st_bit(intcon, PEIE);\nst_bit(pie2, TMR3IE);\n' disable='cr_bit(pie2, TMR3IE);\n' >
            <timer overflow='65536' extrange='0' />
            <options >
                <option name='Clock Source Select' >
                    <entry name='Transition on T3CKI pin' clkdiv='0' value='st_bit(t3con, TMR3ON);\nst_bit(t3con, TMR3CS);\n' />
                    <entry name='Internal clock (Fosc/4)' clkdiv='4' value='st_bit(t3con, TMR3ON);\ncr_bit(t3con, TMR3CS);\n' />
                </option>
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='t3con = t3con &amp; 0xCF;\n' />
                    <entry name='1:2' value='t3con = (t3con &amp; 0xCF) | 0x10;\n' />
                    <entry name='1:4' value='t3con = (t3con &amp; 0xCF) | 0x20;\n' />
                    <entry name='1:8' value='t3con = (t3con &amp; 0xCF) | 0x30;\n' />
                </prescale>
            </options>
        </interrupt>
    </interrupts>
</device>
<inline >
    <main >
        <start code='void main()\n{\n' />
        <end code='\tmainendloop: goto mainendloop;\n}\n\n' />
        <init code='ansel = 0x00;\nanselh = 0x00;\n' />
    </main>
    <interrupt >
        <enable code='st_bit(intcon, GIE);\n' />
        <start code='void MX_INTERRUPT_MACRO(void)\n{\n' />
        <end code='}\n\n' />
        <init code='\n\n' />
    </interrupt>
    <config >
        <body code='#ifdef _BOOSTC\n#pragma DATA $(address), 0x$(value:x)\n#endif\n#ifdef HI_TECH_C\n__CONFIG(0x$(value:x));\n#endif\n' />
    </config>
</inline>
<test >
    <icd >
        <clock port='0' pin='1' />
        <data port='0' pin='0' />
    </icd>
</test>
</root>
