| поискавой системы для электроныых деталей |
|
HT68F005 датащи(PDF) 42 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT68F005 датащи(HTML) 42 Page - Holtek Semiconductor Inc |
|
42 / 93 page ![]() Rev. 1.00 4� ��to�e� ��� �01� Rev. 1.00 43 ��to�e� ��� �01� HT68F005/HT68F006 Enhanced I/O Flash Type MCU HT68F005/HT68F006 Enhanced I/O Flash Type MCU Watchdog Timer Operation TheWatchdogTimeroperatesbyprovidingadeviceresetwhenitstimeroverflows.Thismeans thatintheapplicationprogramandduringnormaloperationtheuserhastostrategicallyclear theWatchdogTimerbeforeitoverflowstopreventtheWatchdogTimerfromexecutingareset. Thisisdoneusingtheclearwatchdoginstructions.Iftheprogrammalfunctionsforwhatever reason,jumpstoanunknownlocation,orentersanendlessloop,theseclearinstructionswillnot beexecutedinthecorrectmanner,inwhichcasetheWatchdogTimerwilloverflowandresetthe devices.TheWatchdogTimeroption,suchasalwaysenableorsoftwarecontrolisselectedusing configurationoption.WithregardtotheWatchdogTimerenable/disablefunction,therearealsofive bits,WE4~WE0,intheWDTCregistertoofferadditionalenable/disableandresetcontrolofthe WatchdogTimer. WDT Always Enabled IftheWDTconfigurationoptionhasselectedthattheWDTisalwaysenabled,theWE4~WE0 bitsstillhaveaneffectontheWDTfunction.WhentheWE4~WE0bitvalueisequalto01010B or10101B,theWDTfunctionisenabled.However,iftheWE4~WE0bitsarechangedtoany othervaluesexcept01010Band10101B,whichmaybecausedbyexternalinfluencessuchas environmentalnoise,itwillresetthemicrocontrollerafter2~3LIRCclockcycles. WDT Enable/Disabled using the WDT Control Register IftheWDTconfigurationoptionhasselectedthattheWDTisenabled/disabledusingtheWDT controlregister,theWE4~WE0valuescandeterminewhichmodetheWDToperatesin.TheWDT willbedisabledwhentheWE4~WE0bitsaresettoavalueof10101B.TheWDTfunctionwillbe enablediftheWE4~WE0bitvalueisequalto01010B.IftheWE4~WE0bitsaresettoanyother valuesotherthan01010Band10101B,itwillresetthedevicesafter2~3LIRCclockcycles.After poweronthesebitswillhavethevalueof01010B. WDT Configuration Option WE4~WE0 Bits WDT Function Always Ena�led 01010B o� 10101B Ena�le Any othe� value Reset MCU Cont�olled �y WDTC Registe� 10101B Disa�le 01010B Ena�le Any othe� value Reset MCU Watchdog Timer Enable/Disable Control Undernormalprogramoperation,aWatchdogTimertime-outwillinitialiseadeviceresetandset thestatusbitTO.However,ifthesystemisintheSLEEPorIDLEMode,whenaWatchdogTimer time-outoccurs,theTObitinthestatusregisterwillbesetandonlytheProgramCounterandStack Pointerwillbereset.ThreemethodscanbeadoptedtocleartheWatchdogTimercontents.Thefirst isaWDTreset,whichmeansavalueotherthan01010Bor10101BiswrittenintotheWE4~WE0 bitlocations,thesecondistousetheWatchdogTimersoftwareclearinstructionsandthethirdisvia aHALTinstruction.ThereisonlyonemethodofusingsoftwareinstructiontocleartheWatchdog Timerandthatistousethesingle“CLRWDT”instructiontocleartheWDT. Themaximumtimeoutperiodiswhenthe218divisionratioisselected.Asanexample,withthe 32kHzLIRCoscillatorasitssourceclock,thiswillgiveamaximumwatchdogperiodofaround8 secondsforthe218divisionratio,andaminimumtimeoutof7.8msforthe28divisionration. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |