8. Figure VI: Schematic Diagram MCS12G128 – Microcontroller
Thisis schematicdiagramof the MCS12G128 of memorymappingcontrollermostof the associated
operationof the HVAC are store onthe FLASHmemory.All of the variouscode functionsforthe LCD,
LED’s, ATD,and otherperipheral devicesretrieveinformationforfunctionality.
9. 3. Description of Project Operation/User'sManual
The HVAC controllerusesThermistor (temperaturesensor)asthe inputdevicestodetectexternal
temperature.The A/Dconvertertakesthe analogsignal intodigitalinformationtodisplaythe actual
temperature onthe LCD display.The LED’sare usedtoindicate witherthe HVACcontrolleris onor off
13. 7. Hardware Theory of Operation:
The way that the temperature informationis receivedbythe processorreadingthe thermistor
connectedtothe 8-bit ATD converter.The thermistoroutputvoltagewill relative tothe temperature at
10mV/ degree Celsius.The outputdoesn’tneedtobe amplified.Buttoperformance isbasedonthe
outputrange.The signal fromthe thermistorisreadbythe processornextthrew 10-bitATD converter
at a rate of 0.1 Hz for every10 seconds.Afterwardsthe systembeginsreading,storingthe current
temperature,andcalculatinginthe temperature sum.Thenonce the temperaturehadbeenreadbythe
ATD converterthe digital value isconvertedtoa similarvalue of temperature inCelsius.The similar
value isthendisplayinASCIIformatona textstring.The temperature isthencomparedtothe
temperature onsetandthenthe LEDS become activated.
18. 9. Software Theory of Operation:
The functionwill reada10-bit binaryintegerthat representthe ambienttemperature indegreeCelsius
fromthe processor(Atmel Mega16 channel 0 on the ATD converter.Each single bitrepresent -
0.17.708889 degreesCelsius.Nextthe routineconvertseachbinarybitof informationandwill save the
three- digitintegerthatwill be saved.LastlycValueswith0bytesrepresentingthe one hundreddigital
of digits.Byte onestens,andbytes.All binarybitsare translatedtoASCII