Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

HT45FM2C Datasheet(PDF) 92 Page - Holtek Semiconductor Inc

Part # HT45FM2C
Description  Brushless DC Motor Flash Type 8-Bit MCU
PDF  171 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT45FM2C Datasheet(HTML) 92 Page - Holtek Semiconductor Inc

Back Button HT45FM2C Datasheet HTML 88Page - Holtek Semiconductor Inc HT45FM2C Datasheet HTML 89Page - Holtek Semiconductor Inc HT45FM2C Datasheet HTML 90Page - Holtek Semiconductor Inc HT45FM2C Datasheet HTML 91Page - Holtek Semiconductor Inc HT45FM2C Datasheet HTML 92Page - Holtek Semiconductor Inc HT45FM2C Datasheet HTML 93Page - Holtek Semiconductor Inc HT45FM2C Datasheet HTML 94Page - Holtek Semiconductor Inc HT45FM2C Datasheet HTML 95Page - Holtek Semiconductor Inc HT45FM2C Datasheet HTML 96Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 92 / 171 page
background image
Rev. 1.10
9�
�a� �0� �01�
Rev. 1.10
9�
�a� �0� �01�
HT45FM2C
Brushless DC Motor Flash Type 8-Bit MCU
HT45FM2C
Brushless DC Motor Flash Type 8-Bit MCU
Preliminar�
A/D Operation
TherearetwowaystoinitiateanA/DConverterconversioncycle,selectedusingtheADSTSbit.
ThefirstoftheseistousetheADSTRbitintheADCR0registerusedtostartandresettheA/D
converter.Whenthemicrocontrollerprogramsetsthisbitfromlowtohighandthenlowagain,
ananalogtodigitalconversioncyclewillbeinitiated.WhentheADSTRbitisbroughtfromlow
tohighbutnotlowagain,theEOCBbitintheADCR0registerwillbesethighandtheanalogto
digitalconverterwillbereset.
ThesecondmethodofinitiatingaconversionistouesethePWMinterruptsignal.Thiscanbe
sourcedfromeitherthePWMperiodordutyinterruptsignal,selectedusingthePWISbit.The
DLSTRbitcanactivateadelayfunctionwhichinsertsadelaytimebetweentheincomingPWM
interruptsignalandtheactualstartoftheA/Dconversionprocess,withtheactualtimebeingsetup
usingtheADDLregister.Theactualdelaytimeiscalculatedbytheregistercontentmultipliedbythe
systemclockperiod.ThedelaybetweenthePWMinterruptandthestartoftheA/Dconversionis
toreducethepossibilityoferroneousanalogsamplesbeingtakenduringthetimeoflargetransient
currentswitchingbythemotordrivetransistors.NotethatiftheDLSTRbitselectsnodelaythe
ADDLregistermustbeclearedtozeroandvice-versaifthedelayisselected,thenanon-zerovalue
mustbeprogrammedintotheADDLregister.
TheEOCBbitintheADCR0registerisusedtoindicatewhentheanalogtodigitalconversion
processiscomplete.Thisbitwillbeautomaticallysettozerobythemicrocontrolleraftera
conversioncyclehasended.Inaddition,thecorrespondingA/Dinterruptrequestflagwillbeset
intheinterruptcontrolregister,andiftheinterruptsareenabled,anappropriateinternalinterrupt
signalwillbegenerated.ThisA/Dinternalinterruptsignalwilldirecttheprogramflowtothe
associatedA/Dinternalinterruptaddressforprocessing.IftheA/Dinternalinterruptisdisabled,
themicrocontrollercanbeusedtopolltheEOCBbitintheADCR0registertocheckwhetherithas
beenclearedasanalternativemethodofdetectingtheendofanA/Dconversioncycle.
TheclocksourcefortheA/Dconverter,whichoriginatesfromthesystemclockfSYS,canbechosen
tobeeitherfSYSorasubdividedversionoffSYS.Thedivisionratiovalueisdeterminedbythe
ADCK2~ADCK0bitsintheADCR1register.AlthoughtheA/Dclocksourceisdeterminedby
thesystemclocky,fSYS,andbybitsADCK2~ADCK0,therearesomelimitationsonthemaximum
A/Dclocksourcespeedthatcanbeselected.AstheminimumvalueofpermissibleA/Dclock
period,tADCK,is0.5μs,caremustbetakenforsystemclockfrequenciesequaltoorgreaterthan
4MHz.Forexample,ifthesystemclockoperatesatafrequencyof4MHz,theADCK2~ADCK0bits
shouldnotbesetto“000”.DoingsowillgiveA/DclockperiodsthatarelessthantheminimumA/D
clockperiodwhichmayresultininaccurateA/Dconversionvalues.Refertothefollowingtablefor
examples,wherevaluesmarkedwithanasterisk*showwhere,dependinguponthedevice,special
caremustbetaken,asthevaluesmaybelessthanthespecifiedminimumA/DClockPeriod.
fSYS
A/D Clock Period (tADCK)
ADCK2,
ADCK1,
ADCK0
=000
(fSYS)
ADCK2,
ADCK1,
ADCK0
=001
(fSYS/2)
ADCK2,
ADCK1,
ADCK0
=010
(fSYS/4)
ADCK2,
ADCK1,
ADCK0
=011
(fSYS/8)
ADCK2,
ADCK1,
ADCK0
=100
(fSYS/16)
ADCK2,
ADCK1,
ADCK0
=101
(fSYS/32)
ADCK2,
ADCK1,
ADCK0
=110
(fSYS/64)
ADCK2,
ADCK1,
ADCK0
=111
5�Hz
�00ns*
400ns*
800ns
1.6μs
3.2μs
6.4μs
12.8μs
Undefined
10�Hz
100ns*
�00ns*
400ns*
800ns
1.6μs
3.2μs
6.4μs
Undefined
�0�Hz
50ns*
100ns*
�00ns*
400ns*
800ns
1.6μs
3.2μs
Undefined
A/D Clock Period Examples
Controllingthepoweron/offfunctionoftheA/Dconvertercircuitryisimplementedusingthe
ADOFFbitintheADCR0register.ThisbitmustbezerotopowerontheA/Dconverter.Evenifno
pinsareselectedforuseasA/DinputsbyclearingthePCR7~PCR0bitsintheANCSR0registerand
PCR8intheANCSR1register,iftheADOFFbitiszerothensomepowerwillstillbeconsumed.
InpowerconsciousapplicationsitisthereforerecommendedthattheADOFFissethightoreduce
powerconsumptionwhentheA/Dconverterfunctionisnotbeingused.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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