| Electronic Components Datasheet Search |
|
HT45F4630 Datasheet(PDF) 89 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F4630 Datasheet(HTML) 89 Page - Holtek Semiconductor Inc |
|
89 / 153 page ![]() Rev. 1.00 88 ���i� 1�� �01� Rev. 1.00 89 ���i� 1�� �01� HT45F4630 DC Motor Driver ASSP MCU HT45F4630 DC Motor Driver ASSP MCU Summary of A/D Conversion Steps ThefollowingsummarisestheindividualstepsthatshouldbeexecutedinordertoimplementanA/D conversionprocess. • Step1 SelecttherequiredA/DconversionclockbycorrectlyprogrammingbitsSACKS2~SACKS0in theSADC1register. • Step2 EnabletheA/DbysettingtheENADCbitintheSADC0registertoone. • Step3 SelectwhichsignalistobeconnectedtotheinternalA/Dconverterbycorrectlyconfiguringthe SACS3~SACS0bits Selecttheexternalchannelinput,AN1,AN3,AN4,AN6orAN7,tobeconverted,gotoStep4. Selecttheinternalanalogsignal,AN0,AN5ortheBandgapreferencevoltage,tobeconverted, gotoStep5. • Step4 ThecorrespondingpinsshouldbeconfiguredasA/Dinputfunctionbyconfiguringtherelevant pin-sharedfunctioncontrolbits.Afterthisstep,gotoStep6. • Step5 SelectA/DconverteroutputdataformatbysettingtheADRFSbitintheSADC0register. • Step6 SelectthereferencevoltagesourcebyconfiguringtheSAVRS1~SAVRS0bitsintheSADC1 register. • Step7 IfA/Dconversioninterruptisused,theinterruptcontrolregistersmustbecorrectlyconfigured toensuretheA/Dinterruptfunctionisactive.Themasterinterruptcontrolbit,EMI,andtheA/D conversioninterruptcontrolbit,ADE,mustbothbesethighinadvance. • Step8 TheA/DconversionprocedurecannowbeinitializedbysettingtheSTARTbitintheSADC0 registerfromlowtohighandthenlowagain. • Step9 Tocheckwhentheanalogtodigitalconversionprocessiscomplete,theEOCBbitintheSADC0 registercanbepolled.Theconversionprocessiscompletewhenthisbitgoeslow.Whenthis occurstheA/DdataregistersSADOLandSADOHcanbereadtoobtaintheconversionvalue. Asanalternativemethod,iftheinterruptsareenabledandthestackisnotfull,theprogramcan waitforanA/Dinterrupttooccur. Note:Whencheckingfortheendoftheconversionprocess,ifthemethodofpollingtheEOCBbit intheSADC0registerisused,theinterruptenablestepabovecanbeomitted. |
|
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 |