| 전자부품 데이터시트 검색엔진 |
|
HT66F20 데이터시트(PDF) 70 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F20 데이터시트(HTML) 70 Page - Holtek Semiconductor Inc |
|
70 / 298 page ![]() Rev. 1.90 70 �e���a�� 18� �01� Rev. 1.90 71 �e���a�� 18� �01� HT66F20/HT66F30/HT66F40/HT66F50/HT66F60 HT66FU30/HT66FU40/HT66FU50/HT66FU60 Enhanced A/D Flash Type 8-Bit MCU with EEPROM HT66F20/HT66F30/HT66F40/HT66F50/HT66F60 HT66FU30/HT66FU40/HT66FU50/HT66FU60 Enhanced A/D Flash Type 8-Bit MCU with EEPROM Watchdog Timer Operation TheWatchdogTimeroperatesbyprovidingadeviceresetwhenitstimeroverflows.Thismeans thatintheapplicationprogramandduringnormaloperationtheuserhastostrategicallyclearthe WatchdogTimerbeforeitoverflowstopreventtheWatchdogTimerfromexecutingareset.Thisis doneusingtheclearwatchdoginstructions.Iftheprogrammalfunctionsforwhateverreason,jumps toanunkownlocation,orentersanendlessloop,theseclearinstructionswillnotbeexecutedinthe correctmanner,inwhichcasetheWatchdogTimerwilloverflowandresetthedevice.Someofthe WatchdogTimeroptions,suchasenable/disable,clocksourceselectionandclearinstructiontype areselectedusingconfigurationoptions.Inadditiontoaconfigurationoptiontoenable/disablethe WatchdogTimer,therearealsofourbits,WDTEN3~WDTEN0,intheWDTCregistertoofferan additionalenable/disablecontroloftheWatchdogTimer.TodisabletheWatchdogTimer,aswell astheconfigurationoptionbeingsettodisable,theWDTEN3~WDTEN0bitsmustalsobesetto aspecificvalueof"1010".AnyothervaluesforthesebitswillkeeptheWatchdogTimerenabled, irrespectiveoftheconfigurationenable/disablesetting.Afterpoweronthesebitswillhavethevalue of1010.IftheWatchdogTimerisuseditisrecommendedthattheyaresettoavalueof0101for maximumnoiseimmunity.NotethatiftheWatchdogTimerhasbeendisabled,thenanyinstruction relatingtoitsoperationwillresultinnooperation. WDT Configuration Option WDTEN3~WDTEN0 Bits WDT WDT Ena�le ×××× Ena�le WDT Disa�le Except 1010 Ena�le WDT Disa�le 1010 Disa�le Watchdog Timer Enable/Disable Control Undernormalprogramoperation,aWatchdogTimertime-outwillinitialiseadeviceresetandset thestatusbitTO.However,ifthesystemisintheSLEEPorIDLEMode,whenaWatchdogTimer time-outoccurs,theTObitinthestatusregisterwillbesetandonlytheProgramCounterandStack Pointerwillbereset.ThreemethodscanbeadoptedtoclearthecontentsoftheWatchdogTimer. Thefirstisanexternalhardwarereset,whichmeansalowlevelontheRESpin,thesecondisusing theWatchdogTimersoftwareclearinstructionsandthethirdisviaaHALTinstruction. TherearetwomethodsofusingsoftwareinstructionstocleartheWatchdogTimer,oneofwhichmust bechosenbyconfigurationoption.Thefirstoptionistousethesingle"CLRWDT"instructionwhile thesecondistousethetwocommands"CLRWDT1"and"CLRWDT2".Forthefirstoption,a simpleexecutionof"CLRWDT"willcleartheWDTwhileforthesecondoption,both"CLRWDT1" and"CLRWDT2"mustbothbeexecutedalternatelytosuccessfullycleartheWatchdogTimer. Notethatforthissecondoption,if"CLRWDT1"isusedtocleartheWatchdogTimer,successive executionsofthisinstructionwillhavenoeffect,onlytheexecutionofa"CLRWDT2"instruction willcleartheWatchdogTimer.Similarlyafterthe"CLRWDT2"instructionhasbeenexecuted,only asuccessive"CLRWDT1"instructioncancleartheWatchdogTimer. Themaximumtimeoutperiodiswhenthe215divisionratioisselected.Asanexample,witha 32.768kHzLXToscillatorasitssourceclock,thiswillgiveamaximumwatchdogperiodofaround 1secondforthe215divisionratio,andaminimumtimeoutof7.8msforthe28divisionration.Ifthe fSYS/4clockisusedastheWatchdogTimerclocksource,itshouldbenotedthatwhenthesystem enterstheSLEEPorIDLE0Mode,thentheinstructionclockisstoppedandtheWatchdogTimer mayloseitsprotectingpurposes.Forsystemsthatoperateinnoisyenvironments,usingthefSUB clocksourceisstronglyrecommended. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |