<root>
<file schema='102' />
<macros >
<macro >
<flowline name='NVMWrite' description='' >
<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
<param name='AddressHi' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
<param name='AddressLo' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
<param name='Data' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
<command class_type='native' title='C Code' ccode='NVMADRL = FCL_ADDRESSLO;   // Writes The Addres Lo Byte
NVMADRH = FCL_ADDRESSHI;   // Writes The Addres Hi Byte
NVMDATL = FCL_DATA;        // Write The Data Lo Byte
NVMCON1bits.NVMREGS=1; // Unlock EEPROM
INTCONbits.GIE = 0;    // Disable All Interrupts
NVMCON1bits.WREN = 1;  // Enable Write Operation
NVMCON2 = 0x55;        // Part Of Writing Mechanism..
NVMCON2 = 0xAA;        // Part Of Writing Mechanism..
NVMCON1bits.WR = 1;    // Initiate Write
while(NVMCON1bits.WR);   // Wait for EE write to complete..
INTCONbits.GIE = 1;    // Enable All Active Interrupts
NVMCON1bits.WREN = 0;  // Disable Write Operation' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
</flowline>
</macro>
</macros>
<variables />
</root>
