поискавой системы для электроныых деталей |
|
HT46R002 датащи(PDF) 26 Page - Holtek Semiconductor Inc |
|
HT46R002 датащи(HTML) 26 Page - Holtek Semiconductor Inc |
26 / 83 page Rev. 1.21 26 April 11, 2017 Rev. 1.21 27 April 11, 2017 HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU Watchdog Timer Operation TheWatchdogTimeroperatesbyprovidingadeviceresetwhenitstimeroverflows.Thismeans thatintheapplicationprogramandduringnormaloperationtheuserhastostrategicallyclearthe WatchdogTimerbeforeitoverflowstopreventtheWatchdogTimerfromexecutingareset.Thisis doneusingtheclearwatchdoginstruction.NotethatiftheWatchdogTimerfunctionisnotenabled, thenanyinstructionrelatedtotheWatchdogTimerwillresultinnooperation. SettingthevariousWatchdogTimeroptionsarecontrolledviatheinternalregistersWDTCand WDTS.EnablingtheWatchdogTimercanbecontrolledbytheWDTENbitsintheinternalWDTC registerintheDataMemory. TheWatchdogTimerwillbedisabledifbitsWDTEN5~WDTEN0intheWDTCregisterarewritten withthebinaryvalue101101BwhiletheWDTTimerwillbeenabledifthesebitsarewritten withthebinaryvalue000000B.Ifthesebitsarewrittenwiththeothervaluesexcept101101Band 000000B,theMCUwillbereset. TheWatchdogTimer clock can emanate from three different sources, selected by the WDTCLS1~WDTCLS0bitsintheWDTCregister.ThesesourcesarefSYS,fSYS/4orLIRC.Itis importanttonotethatwhenthesystementerstheSleepModetheinstructionclockisstopped, thereforeifithasselectedfSYSorfSYS/4astheWatchdogTimerclocksource,theWatchdogTimer willstop.Forsystemsthatoperateinnoisyenvironments,it’srecommendedtousetheLIRCas theclocksource.Thedivisionratiooftheprescalerisdeterminedbybits0,1and2oftheWDTS register,knownasWS0,WS1andWS2.IftheWatchdogTimerinternalclocksourceisselectedand withtheWS0,WS1andWS2bitsoftheWDTSregisterallsethigh,theprescalerdivisionratiowill be1:32768,whichwillgiveamaximumtime-outperiod. Undernormalprogramoperation,aWatchdogTimertime-outwillinitializeadeviceresetandset thestatusbitTO.However,ifthesystemisintheSleepMode,whenaWatchdogTimertime-out occurs,thedevicewillbewokenup,theTObitinthestatusregisterwillbesetandonlytheProgram CounterandStackPointerwillbereset.Fourmethodscanbeadoptedtoclearthecontentsofthe WatchdogTimer.ThefirstisaWDTsoftwarereset,whichmeansacertainvalueexcept101101B and000000BwrittenintotheWDTENbitfiled,thesecondisanexternalhardwarereset,which meansalowlevelontheexternalresetpin,thethirdisusingtheClearWatchdogTimersoftware instructionsandthefourthisviaa“HALT”instruction. ThereisonlyonemethodofusingsoftwareinstructiontocleartheWatchdogTimer.Thatistouse the“CLRWDT”instructiontocleartheWDT. “ CLR WDT”Instruction WDT Divider WDTEN bits Reset MCU fS 8-to-1 MUX CLR WS2~WS0 WDT Time-out (28/fS ~ 215/fS) LIRC M U X WDTCLS1, WDTCLS0 “ HALT”Instruction RES pin reset fSYS fSYS/4 8-stage Prescaler fS/8 Watchdog Timer |
Аналогичный номер детали - HT46R002 |
|
Аналогичное описание - HT46R002 |
|
|
ссылки URL |
Конфиденциальность |
ALLDATASHEETRU.COM |
Вашему бизинису помогли Аллдатащит? [ 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 |