sthetransistorbeonandthenanalarmisgivenbythebuzzer.G.DriveCircuitAstepmotorisusedasthedrivedevicetocontrolthetemperature.Thefour-phaseandeight-beatpulsedistributionmodeisusedtodrivemotorandthesimpledelayprogramisusedtohandlethetimeintervalbetweenthepulsestoobtaindifferentrotationalspeed.Therearetwooutputstatesforthestepmotor.One:whenthetemperatureisovertheuppervalue,themotorrotatesreversely(tolowthetemperature),whilewhenlowerthanthelowerlimitvalue,themotorrotatesnormally(toraisethetemperature);besidesnotequalsthepresetvalue.Two:whenthetemperatureisatsomewherebetweenthetwoendsandequalsthepresetvalue,themotorstops.Thesestepsareusedtoachievethetemperaturecontrol.Inaddition,themotorspeedcanalsobeadjustedbyrelativebuttons.AsshowninFig.8,thecodedataisinputthroughportsA11~A8(beP2.3~P2.0)oftheAT89