<root>
<device name='12F615' product='PIC' family='12F' bits='8' >
    <clock max_speed='20000000' master_divider='4' default='19660800' />
    <memory >
        <flash bytes='1792' />
        <ram bytes='64' />
    </memory>
    <configuration address='0x2007' mult='2' >
	<format >
	  <word value='0x3FFF' />
        </format>
        <setting />
        <settings >
            <setting name='OSC' offset='0' mask='7' bits='3' hint='Oscillator' >
                <option name='External RC Clockout' value='7' />
                <option name='External RC No Clock' value='6' />
                <option name='Internal RC Clockout' value='5' />
                <option name='Internal RC No Clock' value='4' />
                <option name='EC' value='3' />
                <option name='HS' value='2' />
                <option name='XT' value='1' />
                <option name='LP' value='0' />
            </setting>
            <setting name='WDT' offset='3' mask='1' bits='1' hint='Watchdog Timer' >
                <option name='On' value='1' />
                <option name='Off' value='0' />
            </setting>
            <setting name='PUT' offset='4' mask='1' bits='1' hint='Power Up Timer' >
                <option name='Off' value='1' />
                <option name='On' value='0' />
            </setting>
            <setting name='MCLRE' offset='5' mask='1' bits='1' hint='Master Clear Enable' >
                <option name='External' value='1' />
                <option name='Internal' value='0' />
            </setting>
            <setting name='CP' offset='6' mask='1' bits='1' hint='Code Protect' >
                <option name='Off' value='1' />
                <option name='On' value='0' />
            </setting>
            <setting name='IOSCFS' offset='7' mask='1' bits='1' hint='Internal Oscillator Frequency Select' >
                <option name='8 MHz' value='1' />
                <option name='4 MHz' value='0' />
            </setting>
            <setting name='BODEN' offset='8' mask='3' bits='2' hint='Brown Out Detect' >
                <option name='BOD disabled' value='0' />
                <option name='BOD disabled' value='1' />
                <option name='BOD enabled in run, disabled in sleep' value='2' />
                <option name='BOD Enabled' value='3' />
            </setting>
        </settings>
    </configuration>
    <pins sides='2' smd='0' >
        <pin name='VDD' />
        <pin name='GP5/OSC1' port='0' bit='5' />
        <pin name='GP4/AN3/OSC2' port='0' bit='4' adc='3' />
        <pin name='GP3/MCLR' port='0' bit='3' />
        <pin name='GP2/AN2/INT' port='0' bit='2' adc='2' />
        <pin name='GP1/AN1' port='0' bit='1' adc='1' />
        <pin name='GP0/AN0' port='0' bit='0' adc='0' />
        <pin name='VSS' />
    </pins>
    <adc type='5' 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>
    </adc>
    <pwm >
        <prescaler >
            <option name='1' value='1' />
            <option name='4' value='4' />
            <option name='16' value='16' />
        </prescaler>
        <out port='0' pin='2' />
    </pwm>
    <interrupts >
        <interrupt ident='TMR0' regl='tmr0' regh='' type='timer8' name='Timer 0' handler='#ifndef MX_INTHANDLER_intcon_T0IF\n#define MX_INTHANDLER_intcon_T0IF\nif (ts_bit(intcon, T0IF) &amp;&amp; ts_bit(intcon, T0IE))\n{\n\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 1;\n\t#endif\t\n\tFCM_%n();\n\tcr_bit(intcon, T0IF);\n\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 0;\n\t#endif\t\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, T0IE);\n' disable='cr_bit(intcon, T0IE);\n' >
            <timer overflow='256' extrange='0' />
            <options >
                <option name='Clock Source Select' >
                    <entry name='Transition on T0CKI pin' clkdiv='0' value='st_bit(option_reg,T0CS);\n' />
                    <entry name='Internal clock (CLKO)' clkdiv='4' value='cr_bit(option_reg,T0CS);\n' />
                </option>
                <option name='Source Edge Select' >
                    <entry name='high-to-low transition on TMR0 Clock' value='st_bit(option_reg,T0SE);\n' />
                    <entry name='low-to-high transition on TMR0 Clock' value='cr_bit(option_reg,T0SE);\n' />
                </option>
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='option_reg = (option_reg &amp; 0xF0) | 0x08;\n' />
                    <entry name='1:2' value='option_reg = (option_reg &amp; 0xF0) | 0x00;\n' />
                    <entry name='1:4' value='option_reg = (option_reg &amp; 0xF0) | 0x01;\n' />
                    <entry name='1:8' value='option_reg = (option_reg &amp; 0xF0) | 0x02;\n' />
                    <entry name='1:16' value='option_reg = (option_reg &amp; 0xF0) | 0x03;\n' />
                    <entry name='1:32' value='option_reg = (option_reg &amp; 0xF0) | 0x04;\n' />
                    <entry name='1:64' value='option_reg = (option_reg &amp; 0xF0) | 0x05;\n' />
                    <entry name='1:128' value='option_reg = (option_reg &amp; 0xF0) | 0x06;\n' />
                    <entry name='1:256' value='option_reg = (option_reg &amp; 0xF0) | 0x07;\n' />
                </prescale>
            </options>
        </interrupt>
        <interrupt ident='INT0' type='pin' name='INT0 Pin' handler='#ifndef MX_INTHANDLER_intcon_INTF\n#define MX_INTHANDLER_intcon_INTF\nif (ts_bit(intcon, INTF) &amp;&amp; ts_bit(intcon, INTE))\n{\n\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 1;\n\t#endif\t\n\tFCM_%n();\n\tcr_bit(intcon, INTF);\n\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 0;\n\t#endif\t\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, INTE);\n' disable='cr_bit(intcon, INTE);\n' >
            <ioc config='3' >
                <rising port='1' mask='1' />
                <falling port='1' mask='1' />
            </ioc>
            <options >
                <edge name='Interrupt Edge Select' >
                    <entry name='Rising edge of INT' value='st_bit(option_reg,INTEDG);\n' />
                    <entry name='Falling edge of INT' value='cr_bit(option_reg,INTEDG);\n' />
                </edge>
            </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\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 1;\n\t#endif\t\n\tFCM_%n();\n\tcr_bit(pir1, TMR1IF);\n\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 0;\n\t#endif\t\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(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='st_bit(intcon,PEIE);\ncr_bit(t1con,T1OSCEN);\nst_bit(t1con,TMR1ON);\nst_bit(t1con,TMR1CS);\n' />
                    <entry name='Internal clock (Fosc/4)' clkdiv='4' value='st_bit(intcon,PEIE);\ncr_bit(t1con,T1OSCEN);\nst_bit(t1con,TMR1ON);\ncr_bit(t1con,TMR1CS);\n' />
                    <entry name='32.768KHz XTAL T1CKI/T1CKO' clkdiv='0' value='st_bit(intcon,PEIE);\nst_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; 0x0F;\n' />
                    <entry name='1:2' value='t1con = (t1con &amp; 0x0F) | 0x10;\n' />
                    <entry name='1:4' value='t1con = (t1con &amp; 0x0F) | 0x20;\n' />
                    <entry name='1:8' value='t1con = (t1con &amp; 0x0F) | 0x30;\n' />
                </prescale>
            </options>
        </interrupt>
        <interrupt ident='IOC0' type='multipin' name='IOC GPIO' handler='#ifndef MX_INTHANDLER_intcon_GPIF\n#define MX_INTHANDLER_intcon_GPIF\nchar mxtmp;\nif (ts_bit(intcon, GPIF) &amp;&amp; ts_bit(intcon, GPIE))\n{\n\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 1;\n\t#endif\t\n\tFCM_%n();\n\tmxtmp=gpio;\n\tcr_bit(intcon, GPIF);\n\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 0;\n\t#endif\t\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='ioc=%pA0v;\nst_bit(intcon, GPIE);\n' disable='cr_bit(intcon, GPIE);\n' >
            <ioc config='0x0C' >
                <rising port='0' mask='0x3F' />
                <falling port='0' mask='0x3F' />
            </ioc>
        </interrupt>
        <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\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 1;\n\t#endif\t\n\tFCM_%n();\n\tcr_bit(pir1, TMR2IF);\n\t#ifdef USE_FLOWCODE_ICD\n\t\textern char ICD_Interrupt_Enable = 0;\n\t#endif\t\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(pie1, TMR2IE);\n' disable='cr_bit(pie1, TMR2IE);\n' >
            <timer overflow='256' extrange='0' />
            <options >
                <prescale name='Prescaler Rate' >
                    <entry name='1:1' value='st_bit(intcon,PEIE);\ncr_bit(t2con,T2CKPS0);\ncr_bit(t2con,T2CKPS1);\nst_bit(t2con,TMR2ON);\n' />
                    <entry name='1:4' value='st_bit(intcon,PEIE);\nst_bit(t2con,T2CKPS0);\ncr_bit(t2con,T2CKPS1);\nst_bit(t2con,TMR2ON);\n' />
                    <entry name='1:16' value='st_bit(intcon,PEIE);\ncr_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>
    </interrupts>
</device>
<inline >
    <directives code="" />
    <main >
        <start code='\nvoid main()\n{\n' />
        <end code='\tmainendloop: goto mainendloop;\n}\n\n' />
        <init code='ansel = 0;\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='option_reg = 0xC0;\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\n' />
    </config>
</inline>
<test >
    <icd >
        <clock port='0' pin='1' />
        <data port='0' pin='0' />
    </icd>
</test>
</root>
