<root>
<device name='24FV32KA301' product='PIC16' family='24F' bits='16' >
    <clock max_speed='32000000' master_divider='2' default='12000000' />
    <memory >
        <flash bytes='32768' />
        <ram bytes='2048' />
    </memory>
    <configuration address='0xF80000' mult='2' >
        <format >
            <word address='_FBS' value='0xFFFF' />
            <word address='_FGS' value='0xFFFF' />
            <word address='_FOSCSEL' value='0xFFFF' />
            <word address='_FOSC' value='0xFFBF' />
            <word address='_FWDT' value='0xFFFF' />
            <word address='_FPOR' value='0xFFFF' />
            <word address='_FICD' value='0xFFFF' />
            <word address='_FDS' value='0xFFFF' />
        </format>
        <setting />
        <settings >
            <setting name='BWRP' offset='0' mask='1' bits='1' hint='Boot Segment Write Protect' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='BSS' offset='1' mask='7' bits='3' hint='Boot segment Protect' >
                <option name='Disabled' value='7' />
                <option name='Standard Security Boot Protect 000200h - 000AFEh' value='6' />
                <option name='Standard Security Boot Protect 000200h - 0015FEh' value='5' />
                <option name='Standard Security Boot Protect 000200h - 002BFEh' value='4' />
                <option name='High Security Boot Protect 000200h - 000AFEh' value='2' />
                <option name='High Security Boot Protect 000200h - 0015FEh' value='1' />
                <option name='High Security Boot Protect 000200h - 002BFEh' value='0' />
            </setting>
            <setting name='GWRP' offset='16' mask='1' bits='1' hint='General Segment Write Protect' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='GCP' offset='17' mask='1' bits='1' hint='General Segment Code Protect' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='FNOSC' offset='32' mask='7' bits='3' hint='Oscillator Select' >
                <option name='8MHz FRC oscillator With Postscaler (FRCDIV)' value='7' />
                <option name='500kHz Low-Power FRC oscillator with Postscaler(LPFRCDIV)' value='6' />
                <option name='Low Power RC oscillator (LPRC)' value='5' />
                <option name='Secondary oscillator (SOSC)' value='4' />
                <option name='Primary oscillator with PLL Module (HS+PLL, EC+PLL)' value='3' />
                <option name='Primary Oscillator (XT, HS, EC)' value='2' />
                <option name='Fast RC Oscillator with Postscaler and PLL Module (FRCDIV+PLL)' value='1' />
                <option name='Fast RC Oscillator (FRC)' value='0' />
            </setting>
            <setting name='SOSCSRC' offset='37' mask='1' bits='1' hint='SOSC Source Type' >
                <option name='Analog Mode for use with crystal' value='1' />
                <option name='Digital Mode for use with external source' value='0' />
            </setting>
            <setting name='LPRCSEL' offset='38' mask='1' bits='1' hint='LPRC Oscillator Power and Accuracy' >
                <option name='High Power, High Accuracy Mode' value='1' />
                <option name='Low Power, Low Accuracy Mode' value='0' />
            </setting>
            <setting name='IESO' offset='39' mask='1' bits='1' hint='Internal External Switch Over bit' >
                <option name='Enabled' value='1' />
                <option name='Disabled' value='0' />
            </setting>
            <setting name='POSCMOD' offset='48' mask='3' bits='2' hint='Primary Oscillator Configuration bits' >
                <option name='Primary oscillator disabled' value='3' />
                <option name='HS oscillator mode selected' value='2' />
                <option name='XT oscillator mode selected' value='1' />
                <option name='External clock mode selected' value='0' />
            </setting>
            <setting name='OSCIOFNC' offset='50' mask='1' bits='1' hint='CLKO Enable Configuration bit' >
                <option name='Enabled' value='1' />
                <option name='Disabled' value='0' />
            </setting>
            <setting name='POSCFREQ' offset='51' mask='3' bits='2' hint='Primary Oscillator Frequency Range Configuration bits' >
                <option name='Primary oscillator/external clock input frequency greater than 8MHz' value='3' />
                <option name='Primary oscillator/external clock input frequency between 100kHz and 8MHz' value='2' />
                <option name='Primary oscillator/external clock input frequency less than 100kHz' value='1' />
            </setting>
            <setting name='SOSCSEL' offset='53' mask='1' bits='1' hint='SOSC Power Selection Configuration bits' >
                <option name='Secondary Oscillator configured for high-power operation' value='1' />
                <option name='Secondary Oscillator configured for low-power operation' value='0' />
            </setting>
            <setting name='FCKSM' offset='54' mask='3' bits='2' hint='Clock Switching and Monitor Selection' >
                <option name='Both Clock Switching and Fail-safe Clock Monitor are disabled' value='2' />
                <option name='Clock Switching is enabled, Fail-safe Clock Monitor is disabled' value='1' />
                <option name='Both Clock Switching and Fail-safe Clock Monitor are enabled' value='0' />
            </setting>
            <setting name='WDTPS' offset='64' mask='15' bits='4' hint='Watchdog Timer Postscale Select bits' >
                <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='FWPSA' offset='68' mask='1' bits='1' hint='WDT Prescaler bit' >
                <option name='WDT prescaler ratio of 1:128' value='1' />
                <option name='WDT prescaler ratio of 1:32' value='0' />
            </setting>
            <setting name='FWTEN0' offset='69' mask='5' bits='3' hint='Watchdog Timer Enable bits' >
                <option name='Disabled' value='0' />
                <option name='WDT enabled while device is active and disabled in Sleep, SWDTEN bit disabled' value='1' />
                <option name='WDT controlled with the SWDTEN bit setting' value='4' />
                <option name='Enabled' value='5' />
            </setting>
            <setting name='WINDIS' offset='70' mask='1' bits='1' hint='Windowed Watchdog Timer Disable bit' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='BOREN' offset='80' mask='3' bits='2' hint='Brown-out Reset Enable bits' >
                <option name='Brown-out Reset enabled in hardware, SBOREN bit disabled' value='3' />
                <option name='Brown-out Reset enabled only while device is active and disabled in SLEEP, SBOREN bit disabled' value='2' />
                <option name='Brown-out Rest controlled by SBOREN bit' value='1' />
                <option name='Brown-out Reset disabled in hardware, SBOREN bit disabled' value='0' />
            </setting>
            <setting name='LVRCFG' offset='82' mask='1' bits='1' hint='...' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='PWRTEN' offset='83' mask='1' bits='1' hint='Power-up Timer Enable bit' >
                <option name='Disabled' value='0' />
                <option name='Enabled' value='1' />
            </setting>
            <setting name='I2C1SEL' offset='84' mask='1' bits='1' hint='Alternate I2C1 Pin Mapping bit' >
                <option name='Use Default SCL1/SDA1 Pins For I2C1' value='1' />
                <option name='Use  Alternate SCL1/ASDA1 Pins For I2C1' value='0' />
            </setting>
            <setting name='BORV' offset='85' mask='3' bits='2' hint='Brown-out Reset Voltage bits' >
                <option name='Brown-out Reset set to lowest voltage (1.8V)' value='3' />
                <option name='Brown-out Reset set at 2.7V' value='2' />
                <option name='Brown-out Reset set to Highest Voltage (3.0V)' value='1' />
                <option name='Low-power Brown-Out Reset occurs around 2.0V' value='0' />
            </setting>
            <setting name='MCLRE' offset='87' mask='1' bits='1' hint='MCLR Pin Enable bit' >
                <option name='Enabled' value='1' />
                <option name='Disabled' value='0' />
            </setting>
            <setting name='ICS' offset='96' mask='3' bits='2' hint='ICD Pin Placement Select bits' >
                <option name='EMUC/EMUD share PGC1/PGD1' value='3' />
                <option name='EMUC/EMUD share PGC2/PGD2' value='2' />
                <option name='EMUC/EMUD share PGC3/PGD3' value='1' />
            </setting>
            <setting name='BKBUG' offset='103' mask='1' bits='1' hint='Background Debugger Enable bit' >
                <option name='Disabled' value='1' />
                <option name='Enabled' value='0' />
            </setting>
            <setting name='DSWDTPS' offset='112' mask='15' bits='4' hint='Deep Sleep Watchdog Timer Postscale Select bits' >
                <option name='1:2,147,483,648 (25.7 Days)' value='15' />
                <option name='1:536,870,912 (6.4 Days)' value='14' />
                <option name='1:134,217,728 (38.5 Hours)' value='13' />
                <option name='1:33,554,432 (9.6 Hours)' value='12' />
                <option name='1:8,388,608 (2.4 Hours)' value='11' />
                <option name='1:2,097,152 (36 Minutes)' value='10' />
                <option name='1:524,288 (9 Minutes)' value='9' />
                <option name='1:131,072 (135 Seconds)' value='8' />
                <option name='1:32,768 (34 Seconds)' value='7' />
                <option name='1:8192 (8.5 Seconds)' value='6' />
                <option name='1:2048 (2.1 Seconds)' value='5' />
                <option name='1:512 (528 ms)' value='4' />
                <option name='1:128 (132 ms)' value='3' />
                <option name='1:32 (33 ms)' value='2' />
                <option name='1:8 (8.3 ms)' value='1' />
                <option name='1:2 (2.1 ms)' value='0' />
            </setting>
            <setting name='DSWDTOSC' offset='116' mask='1' bits='1' hint='DSWDT Reference Clock Select bit' >
                <option name='DSWDT uses Low Power RC Oscillator (LPRC)' value='1' />
                <option name='DSWDT uses Secondary Oscillator (SOSC)' value='0' />
            </setting>
            <setting name='DSBOREN' offset='118' mask='1' bits='1' hint='Deep Sleep Zero-Power BOR Enable bit' >
                <option name='Enabled' value='1' />
                <option name='Disabled' value='0' />
            </setting>
            <setting name='DSWDTEN' offset='119' mask='1' bits='1' hint='Deep Sleep Watchdog Timer Enable bit' >
                <option name='Enabled' value='1' />
                <option name='Disabled' value='0' />
            </setting>
        </settings>
    </configuration>
    <pins sides='2' smd='1' >
        <pin name='MCLR / RA5' port='0' bit='5' />
        <pin name='AN0 / VREF+ / SCK2 / RA0' port='0' bit='0' adc='0' />
        <pin name='AN1 / SDO2 / RA1' port='0' bit='1' adc='1' />
        <pin name='AN2 / TX2 / SDI2 / OC2 / RB0' port='1' bit='0' adc='2' />
        <pin name='AN3 / RX2 / OC3 / RB1' port='1' bit='1' adc='3' />
        <pin name='AN4 / SDA2 / RX1 / RB2' port='1' bit='2' />
        <pin name='OSC1 / AN13 / RA2' port='0' bit='2' adc='4' />
        <pin name='OSC2 / AN14 / RA3' port='0' bit='3' adc='5' />
        <pin name='AN15 / RB4' port='1' bit='4' adc='15' />
        <pin name='RA4' port='0' bit='4' />
        <pin name='TX1 / INT0 / RB7' port='1' bit='7' />
        <pin name='SCL1 / RB8' port='1' bit='8' />
        <pin name='SDA1 / RB9' port='1' bit='9' />
        <pin name='VCAP' />
        <pin name='AN12 / SCK1 / SS2 / RB12' port='1' bit='12' adc='12' />
        <pin name='AN11 / SDO1 / RB13' port='1' bit='13' adc='11' />
        <pin name='AN10 / SDI1 / INT1 / RB14' port='1' bit='14' adc='10' />
        <pin name='AN9 / SCL2 / SS1 / RB15' port='1' bit='15' />
        <pin name='VSS' />
        <pin name='VDD' />
    </pins>
    <adc type='9' bits='12' >
        <speed >
            <option name='FRC' value='64' />
            <option name='Tcy' value='0' />
            <option name='Tcy * 2' value='1' />
            <option name='Tcy * 4' value='3' />
            <option name='Tcy * 8' value='7' />
            <option name='Tcy * 16' value='15' />
            <option name='Tcy * 32' value='31' />
            <option name='Tcy * 64' value='63' />
        </speed>
    </adc>
    <eeprom type='2' bytes='512' />
    <spi >
        <miso port='1' pin='14' />
        <mosi port='1' pin='13' />
        <clk port='1' pin='12' />
        <ss port='1' pin='15' />
    </spi>
    <spi >
        <miso port='1' pin='0' />
        <mosi port='0' pin='1' />
        <clk port='0' pin='0' />
        <ss port='1' pin='12' />
    </spi>
    <uart >
        <tx port='1' pin='7' />
        <rx port='1' pin='2' />
    </uart>
    <uart >
        <tx port='1' pin='0' />
        <rx port='1' pin='1' />
    </uart>
    <i2c master='1' >
        <sda port='1' pin='9' />
        <scl port='1' pin='8' />
    </i2c>
    <i2c master='1' >
        <sda port='1' pin='2' />
        <scl port='1' pin='15' />
    </i2c>
    <pwm regset='1' >
    	<timer>
    	    <option name='Timer1' value='1' />
    	    <option name='Timer2' value='2' />
    	    <option name='Timer3' value='3' />
    	    <option name='Timer4' value='4' />
    	    <option name='Timer5' value='5' />
    	</timer>
        <prescaler >
            <option name='1' value='0' />
            <option name='8' value='1' />
            <option name='64' value='2' />
            <option name='256' value='3' />
        </prescaler>
        <out port='0' pin='6' />
        <out port='1' pin='0' />
        <out port='1' pin='1' />
    </pwm>
    <interrupts >
        <interrupt ident='TMR1' reg='TMR1' type='timer16' name='Timer 1' handler='#ifndef MX_ISR_T1\n#define MX_ISR_T1\nvoid _ISR _T1Interrupt(void)\n{\n\tIFS0bits.T1IF = 0;\n\tFCM_%n();\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='IEC0bits.T1IE = 1;\n' disable='IEC0bits.T1IE = 0;\n' >
            <timer overflow='65536' extrange='0' />
            <options >
                <option name='Clock Source Select' >
                    <entry name='Internal (Fosc / 2)' clkdiv='2' value='T1CON = ((T1CON &amp; 0xfffd) | 0x8000);\n' />
                    <entry name='External' clkdiv='0' value='T1CON |= 0x8002;\n' />
                </option>
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='T1CON &amp;= 0xff0f;\n' />
                    <entry name='1:8' value='T1CON = ((T1CON &amp; 0xff0f) | 0x0010);\n' />
                    <entry name='1:64' value='T1CON = ((T1CON &amp; 0xff0f) | 0x0020);\n' />
                    <entry name='1:256' value='T1CON = ((T1CON &amp; 0xff0f) | 0x0030);\n' />
                </prescale>
                <rollover name='Rollover Value' >
                    <entry name='65536' min='1' max='65536' value='PR1=%d-1;\n' />
                </rollover>
            </options>
        </interrupt>
        <interrupt ident='TMR2' reg='TMR2' type='timer16' name='Timer 2' handler='#ifndef MX_ISR_T2\n#define MX_ISR_T2\nvoid _ISR _T2Interrupt(void)\n{\n\tIFS0bits.T2IF = 0;\n\tFCM_%n();\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='IEC0bits.T2IE = 1;\n' disable='IEC0bits.T2IE = 0;\n' >
            <timer overflow='65536' extrange='0' />
            <options >
                <option name='Clock Source Select' >
                    <entry name='Internal (Fosc / 2)' clkdiv='2' value='T2CON = ((T2CON &amp; 0xfffd) | 0x8000);\n' />
                    <entry name='External' clkdiv='0' value='T2CON |= 0x8002;\n' />
                </option>
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='T2CON &amp;= 0xff0f;\n' />
                    <entry name='1:8' value='T2CON = ((T2CON &amp; 0xff0f) | 0x0010);\n' />
                    <entry name='1:64' value='T2CON = ((T2CON &amp; 0xff0f) | 0x0020);\n' />
                    <entry name='1:256' value='T2CON = ((T2CON &amp; 0xff0f) | 0x0030);\n' />
                </prescale>
                <rollover name='Rollover Value' >
                    <entry name='65536' min='1' max='65536' value='PR2=%d-1;\n' />
                </rollover>
            </options>
        </interrupt>
        <interrupt ident='TMR3' reg='TMR3' type='timer16' name='Timer 3' handler='#ifndef MX_ISR_T3\n#define MX_ISR_T3\nvoid _ISR _T3Interrupt(void)\n{\n\tIFS0bits.T3IF = 0;\n\tFCM_%n();\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='IEC0bits.T3IE = 1;\n' disable='IEC0bits.T3IE = 0;\n' >
            <timer overflow='65536' extrange='0' />
            <options >
                <option name='Clock Source Select' >
                    <entry name='Internal (Fosc / 2)' clkdiv='2' value='T3CON = ((T3CON &amp; 0xfffd) | 0x8000);\n' />
                    <entry name='External' clkdiv='0' value='T3CON |= 0x8002;\n' />
                </option>
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='T3CON &amp;= 0xff0f;\n' />
                    <entry name='1:8' value='T3CON = ((T3CON &amp; 0xff0f) | 0x0010);\n' />
                    <entry name='1:64' value='T3CON = ((T3CON &amp; 0xff0f) | 0x0020);\n' />
                    <entry name='1:256' value='T3CON = ((T3CON &amp; 0xff0f) | 0x0030);\n' />
                </prescale>
                <rollover name='Rollover Value' >
                    <entry name='65536' min='1' max='65536' value='PR3=%d-1;\n' />
                </rollover>
            </options>
        </interrupt>
        <interrupt ident='TMR4' reg='TMR4' type='timer16' name='Timer 4' handler='#ifndef MX_ISR_T4\n#define MX_ISR_T4\nvoid _ISR _T4Interrupt(void)\n{\n\tIFS1bits.T4IF = 0;\n\tFCM_%n();\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='IEC1bits.T4IE = 1;\n' disable='IEC1bits.T4IE = 0;\n' >
            <timer overflow='65536' extrange='0' />
            <options >
                <option name='Clock Source Select' >
                    <entry name='Internal (Fosc / 2)' clkdiv='2' value='T4CON = ((T4CON &amp; 0xfffd) | 0x8000);\n' />
                    <entry name='External' clkdiv='0' value='T4CON |= 0x8002;\n' />
                </option>
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='T4CON &amp;= 0xff0f;\n' />
                    <entry name='1:8' value='T4CON = ((T4CON &amp; 0xff0f) | 0x0010);\n' />
                    <entry name='1:64' value='T4CON = ((T4CON &amp; 0xff0f) | 0x0020);\n' />
                    <entry name='1:256' value='T4CON = ((T4CON &amp; 0xff0f) | 0x0030);\n' />
                </prescale>
                <rollover name='Rollover Value' >
                    <entry name='65536' min='1' max='65536' value='PR4=%d-1;\n' />
                </rollover>
            </options>
        </interrupt>
        <interrupt ident='TMR5' reg='TMR5' type='timer16' name='Timer 5' handler='#ifndef MX_ISR_T5\n#define MX_ISR_T5\nvoid _ISR _T5Interrupt(void)\n{\n\tIFS1bits.T5IF = 0;\n\tFCM_%n();\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='IEC1bits.T5IE = 1;\n' disable='IEC1bits.T5IE = 0;\n' >
            <timer overflow='65536' extrange='0' />
            <options >
                <option name='Clock Source Select' >
                    <entry name='Internal (Fosc / 2)' clkdiv='2' value='T5CON = ((T5CON &amp; 0xfffd) | 0x8000);\n' />
                    <entry name='External' clkdiv='0' value='T5CON |= 0x8002;\n' />
                </option>
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='T5CON &amp;= 0xff0f;\n' />
                    <entry name='1:8' value='T5CON = ((T5CON &amp; 0xff0f) | 0x0010);\n' />
                    <entry name='1:64' value='T5CON = ((T5CON &amp; 0xff0f) | 0x0020);\n' />
                    <entry name='1:256' value='T5CON = ((T5CON &amp; 0xff0f) | 0x0030);\n' />
                </prescale>
                <rollover name='Rollover Value' >
                    <entry name='65536' min='1' max='65536' value='PR5=%d-1;\n' />
                </rollover>
            </options>
        </interrupt>
        <interrupt ident='INT0' type='pin' name='INT0/RB7' handler='#ifndef MX_ISR_I0\n#define MX_ISR_I0\nvoid _ISR _INT0Interrupt(void)\n{\n\tIFS0bits.INT0IF = 0;\n\tFCM_%n();\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='IEC0bits.INT0IE = 1;' disable='IEC0bits.INT0IE = 0;' >
            <ioc config='3' >
                <rising port='1' mask='0x80' />
                <falling port='1' mask='0x80' />
            </ioc>
            <options >
                <edge name='Interrupt Edge Select' >
                    <entry name='Rising edge of INT' value='INTCON2bits.INT0EP = 0;\n' />
                    <entry name='Falling edge of INT' value='INTCON2bits.INT0EP = 1;\n' />
                </edge>
            </options>
        </interrupt>
        <interrupt ident='INT1' type='pin' name='INT1/RB14' handler='#ifndef MX_ISR_I1\n#define MX_ISR_I1\nvoid _ISR _INT1Interrupt(void)\n{\n\tIFS1bits.INT1IF = 0;\n\tFCM_%n();\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='IEC1bits.INT1IE = 1;' disable='IEC1bits.INT1IE = 0;' >
            <ioc config='3' >
                <rising port='1' mask='0x4000' />
                <falling port='1' mask='0x4000' />
            </ioc>
            <options >
                <edge name='Interrupt Edge Select' >
                    <entry name='Rising edge of INT' value='INTCON2bits.INT1EP = 0;\n' />
                    <entry name='Falling edge of INT' value='INTCON2bits.INT1EP = 1;\n' />
                </edge>
            </options>
        </interrupt>
        <interrupt ident='INT2' type='pin' name='INT2/RA6' handler='#ifndef MX_ISR_I2\n#define MX_ISR_I2\nvoid _ISR _INT2Interrupt(void)\n{\n\tIFS1bits.INT2IF = 0;\n\tFCM_%n();\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='IEC1bits.INT2IE = 1;' disable='IEC1bits.INT2IE = 0;' >
            <ioc config='3' >
                <rising port='0' mask='0x40' />
                <falling port='0' mask='0x40' />
            </ioc>
            <options >
                <edge name='Interrupt Edge Select' >
                    <entry name='Rising edge of INT' value='INTCON2bits.INT2EP = 0;\n' />
                    <entry name='Falling edge of INT' value='INTCON2bits.INT2EP = 1;\n' />
                </edge>
            </options>
        </interrupt>
        <interrupt ident='IOC0' type='multipin' name='IOC PORT' handler='#ifndef MX_ISR_CN\n#define MX_ISR_CN\nvoid _ISR _CNInterrupt(void)\n{\n\tIFS1bits.CNIF = 0;\n\tFCM_%n();\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='CNEN1 = %pA0v | (%pA1v << 8);\nCNEN2 = %pB0v | (%pB1v << 8);\nIEC1bits.CNIE = 1;\n' disable='IEC1bits.CNIE = 0;\n' >
            <map >
                <pin port='0' bit='4' ident='0' />
                <pin port='1' bit='4' ident='1' />
                <pin port='0' bit='0' ident='2' />
                <pin port='0' bit='1' ident='3' />
                <pin port='1' bit='0' ident='4' />
                <pin port='1' bit='1' ident='5' />
                <pin port='1' bit='2' ident='6' />
                <pin port='1' bit='15' ident='11' />
                <pin port='1' bit='14' ident='12' />
                <pin port='1' bit='13' ident='13' />
                <pin port='1' bit='12' ident='14' />
                <pin port='1' bit='9' ident='21' />
                <pin port='1' bit='8' ident='22' />
                <pin port='1' bit='7' ident='23' />
                <pin port='0' bit='3' ident='29' />
                <pin port='0' bit='2' ident='30' />
            </map>
            <ioc config='0x0C' >
                <rising port='0' mask='0x001F' />
                <rising port='1' mask='0xF397' />
                <falling port='0' mask='0x001F' />
                <falling port='1' mask='0xF397' />
            </ioc>
        </interrupt>
        <interrupt ident='RXINT0' type='comms' name='UART RXINT 1' handler='#ifndef MX_ISR_RX1\n#define MX_ISR_RX1\nvoid _ISR _U1RXInterrupt(void)\n{\n\tIFS0bits.U1RXIF = 0;\n\tFCM_%n();\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='IEC0bits.U1RXIE = 1;\n' disable='IEC0bits.U1RXIE = 0;\n' />
        <interrupt ident='RXINT1' type='comms' name='UART RXINT 2' handler='#ifndef MX_ISR_RX2\n#define MX_ISR_RX2\nvoid _ISR _U2RXInterrupt(void)\n{\n\tIFS1bits.U2RXIF = 0;\n\tFCM_%n();\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='IEC1bits.U2RXIE = 1;\n' disable='IEC1bits.U2RXIE = 0;\n' />
    </interrupts>
</device>
<inline >
    <defines code='#define MX_CLKS_PER_INST 2\n' />
    <directives code='#include &quot;../support/24F/h/p24Fxxxx.h&quot;\n#include &lt;stdlib.h&gt;\n#include &lt;math.h&gt;\n\n' />
    <main >
        <start code='int main()\n{\n' />
        <end code='\tmainendloop: goto mainendloop;\n\treturn 0;\n}\n\n' />
        <init code='//Revert to digital IO\nANSA=0;\nANSB=0;\n\n' />
    </main>
    <interrupt >
        <enable code='' />
        <start code='' />
        <end code='' />
        <init code='' />
    </interrupt>
    <config >
        <start code='//Configuration Start\n' />
        <body code='$(address)($(value));\n' />
        <end code='//Configuration End\n\n' />
    </config>
</inline>
<test >
    <icd >
        <clock port='1' pin='6' />
        <data port='1' pin='7' />
    </icd>
</test>
</root>
