| Electronic Components Datasheet Search |
|
HT45F4N Datasheet(PDF) 52 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F4N Datasheet(HTML) 52 Page - Holtek Semiconductor Inc |
|
52 / 170 page ![]() Rev. 1.30 5� De�e��e� 1�� �01� Rev. 1.30 53 De�e��e� 1�� �01� HT45F4N/HT45FH4N Power Bank Flash MCU HT45F4N/HT45FH4N Power Bank Flash MCU CTRL Register Bit 7 6 5 4 3 2 1 0 Na�e FSYSON — — — — LVRF LRF WRF R/W R/W — — — — R/W R/W R/W POR 0 — — — — × 0 0 Bit7 FSYSON:fSYSControlIDLEMode Describeelsewhere Bit6~3 Unimplemented,readas“0” Bit2 LVRF:LVRfunctionresetflag Describeelsewhere Bit1 LRF:LVRControlregistersoftwareresetflag Describeelsewhere Bit0 WRF:WDTControlregistersoftwareresetflag 0:Notoccur 1:Occurred ThisbitissethighbytheWDTControlregistersoftwareresetandclearedbythe applicationprogram.Notethatthisbitcanonlybeclearedtozerobytheapplication program. Watchdog Timer Operation TheWatchdogTimeroperatesbyprovidingadeviceresetwhenitstimeroverflows.Thismeans thatintheapplicationprogramandduringnormaloperationtheuserhastostrategicallyclearthe WatchdogTimerbeforeitoverflowstopreventtheWatchdogTimerfromexecutingareset.Thisis doneusingtheclearwatchdoginstructions.Iftheprogrammalfunctionsforwhateverreason,jumps toanunknownlocation,orentersanendlessloop,theseclearinstructionswillnotbeexecutedin thecorrectmanner,inwhichcasetheWatchdogTimerwilloverflowandresetthedevice.Thereare fivebits,WE4~WE0,intheWDTCregistertoofferenableandresetcontroloftheWatchdogTimer. WhentheWE4~WE0bitsvalueareequalto01010Bor10101B,theWDTfunctionisenabled. However,iftheWE4~WE0bitsarechangedtoanyothervaluesexcept01010Band10101B,which couldbecausedbyadverseenvironmentalconditionssuchasnoise,itwillresetthemicrocontroller after2~3LIRCclockcycles.Afterpoweronthesebitswillhaveavalueof01010B. WE4 ~ WE0 Bits WDT Function 01010B o� 10101B Ena�le Any othe� value Reset MCU Watchdog Timer Enable/Disable Control Undernormalprogramoperation,aWatchdogTimertime-outwillinitialiseadeviceresetandset thestatusbitTO.However,ifthesystemisintheSLEEPorIDLEMode,whenaWatchdogTimer time-outoccurs,theTObitinthestatusregisterwillbesetandonlytheProgramCounterandStack Pointerwillbereset.ThreemethodscanbeadoptedtoclearthecontentsoftheWatchdogTimer. ThefirstisaWDTreset,whichmeansacertainvalueiswrittenintotheWE4~WE0bitfiledexcept 01010Band10101B,thesecondisusingtheWatchdogTimersoftwareclearinstructionsandthe thirdisviaaHALTinstruction. ThereisonlyonemethodofusingsoftwareinstructiontocleartheWatchdogTimer.Thatistouse thesingle“CLRWDT”instructiontocleartheWDT. Themaximumtime-outperiodiswhenthe218divisionratioisselected.Asanexample,witha32 kHzLIRCoscillatorasitssourceclock,thiswillgiveamaximumwatchdogperiodofaround8 secondsforthe218divisionratio,andaminimumtimeoutof7.8msforthe28divisionration. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |