| Electronic Components Datasheet Search |
|
HT45F65 Datasheet(PDF) 196 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F65 Datasheet(HTML) 196 Page - Holtek Semiconductor Inc |
|
196 / 231 page ![]() Rev. 1.60 196 �ove��e� ��� �01� Rev. 1.60 197 �ove��e� ��� �01� HT45F65/HT45F66/HT45F67 Glucose Meter 8-Bit Flash MCU UART Setup and Control Fordatatransfer,theUARTfunctionutilizesanon-return-to-zero,morecommonlyknownasNRZ, format.Thisiscomposedofonestartbit,eightorninedatabitsandoneortwostopbits.Parity issupportedbytheUARThardwareandcanbesetuptobeeven,oddornoparity.Forthemost commondataformat,8databitsalongwithnoparityandonestopbit,denotedas8,N,1,isused asthedefaultsetting,whichisthesettingatpower-on.Thenumberofdatabitsandstopbits,along withtheparity,aresetupbyprogrammingthecorrespondingBNO,PRT,PRENandSTOPSbitsin theUCR1register.Thebaudrateusedtotransmitandreceivedataissetupusingtheinternal8-bit baudrategenerator,whilethedataistransmittedandreceivedLSBfirst.Althoughthetransmitter andreceiveroftheUARTarefunctionallyindependent,theybothusethesamedataformatandbaud rate.Inallcasesstopbitswillbeusedfordatatransmission. Enabling/Disabling the UART Interface Thebasicon/offfunctionoftheinternalUARTfunctioniscontrolledusingtheUARTENbitinthe UCR1register.IftheUARTEN,TXENandRXENbitsareset,thenthesetwoUARTpinswillact asnormalTXoutputpinandRXinputpinrespectively.IfnodataisbeingtransmittedontheTX pin,thenitwilldefaulttoalogichighvalue. ClearingtheUARTENbitwilldisabletheTXandRXpinsandthesetwopinswillbeusedasan I/Oorotherpin-sharedfunctionalpin.WhentheUARTfunctionisdisabled,thebufferwillbe resettoanemptycondition,atthesametimediscardinganyremainingresidualdata.Disablingthe UARTwillalsoresettheenablecontrol,theerrorandstatusflagswithbitsTXEN,RXEN,TXBRK, RXIF,OERR,FERR,PERRandNFbeingclearedwhilebitsTIDLE,TXIFandRIDLEwillbe set.TheremainingcontrolbitsintheUCR1,UCR2andBRGregisterswillremainunaffected. IftheUARTENbitintheUCR1registerisclearedwhiletheUARTisactive,thenallpending transmissionsandreceptionswillbeimmediatelysuspendedandtheUARTwillberesettoa conditionasdefinedabove.IftheUARTisthensubsequentlyre-enabled,itwillrestartagaininthe sameconfiguration. Data, Parity and Stop Bit Selection Theformatofthedatatobetransferrediscomposedofvariousfactorssuchasdatabitlength, parityon/off,paritytype,addressbitsandthenumberofstopbits.Thesefactorsaredeterminedby thesetupofvariousbitswithintheUCR1register.TheBNObitcontrolsthenumberofdatabits whichcanbesettoeither8or9.ThePRTbitcontrolsthechoiceifoddorevenparity.ThePREN bitcontrolstheparityon/offfunction.TheSTOPSbitdecideswhetheroneortwostopbitsareto beused.Thefollowingtableshowsvariousformatsfordatatransmission.Theaddressdetectmode controlbitidentifiestheframeasanaddresscharacter.Thenumberofstopbits,whichcanbeeither oneortwo,isindependentofthedatalength. Start Bit Data Bits Address Bits Parity Bits Stop Bit Example of 8-bit Data Formats 1 8 0 0 1 1 7 0 1 1 1 7 1 1 1 Example of 8-bit Data Formats 1 9 0 0 1 1 8 0 1 1 1 8 1 0 1 Trams,otter Receiver Data Format |
|
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 |