Also see this links ...

http://www.microchipc.com/sourcecode...thermostat.zip

Alain