Page 1 of 1

Writing config data in MIAC

Posted: Wed Sep 09, 2009 2:47 pm
by Hamish_L
I am using a MIAC to control a chiller and a pump, and both need to store some setting values adjusted by the user. I want these to be preserved through a power failure or reset. Do I have access to an area in the PIC EEPROM using Flowcode 3 ? Or do I need to install an external EEPROM ?

I probably need less than 20 bytes of data stored.

Re: Writing config data in MIAC

Posted: Wed Sep 09, 2009 3:35 pm
by Benj
Hello

Yes the MIAC has an 256 byte internal EEPROM which can be referenced using Flowcode 3.

To do this you simply have to add the EEPROM component to your Flowcode program and then use the component macro icons to call the EEPROM read or write functions.

You can also preset the EEPROM data if you wish by adding the following to the defines section of the supplementary code window.

//Initializes EEPROM with data: 0C 22 38 48 45 4C 4C 4F 00 FE 99
#pragma DATA _EEPROM, 12, 34, 56, "HELLO", 0xFE, 0b10011001

Re: Writing config data in MIAC

Posted: Thu Sep 10, 2009 6:38 am
by Hamish_L
Many thanks for the quick reply - works a charm ! :P

While I am here - what is best way to connect an RTC to a MIAC - or is that also hiding inside somewhere ?
Seems many industrial applications reference time ?