| Electronic Components Datasheet Search |
|
HT66F4530 Datasheet(PDF) 159 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F4530 Datasheet(HTML) 159 Page - Holtek Semiconductor Inc |
|
159 / 224 page ![]() Rev. 1.00 158 De�e��e� �1� �01� Rev. 1.00 159 De�e��e� �1� �01� HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers UART Transmitter Datawordlengthsofeither8or9bitscanbeselectedbyprogrammingtheBNObitintheUCR1 register.WhenBNObitisset,thewordlengthwillbesetto9bits.Inthiscasethe9thbit,which istheMSB,needstobestoredintheTX8bitintheUCR1register.Atthetransmittercorelies theTransmitterShiftRegister,morecommonlyknownastheTSR,whosedataisobtainedfrom thetransmitdataregister,whichisknownastheTXR_RXRregister.Thedatatobetransmitted isloadedintothisTXR_RXRregisterbytheapplicationprogram.TheTSRregisterisnotwritten towithnewdatauntilthestopbitfromtheprevioustransmissionhasbeensentout.Assoonas thisstopbithasbeentransmitted,theTSRcanthenbeloadedwithnewdatafromtheTXR_RXR register,ifitisavailable.ItshouldbenotedthattheTSRregister,unlikemanyotherregisters,isnot directlymappedintotheDataMemoryareaandassuchisnotavailabletotheapplicationprogram fordirectread/writeoperations.Anactualtransmissionofdatawillnormallybeenabledwhenthe TXENbitisset,butthedatawillnotbetransmitteduntiltheTXR_RXRregisterhasbeenloaded withdataandthebaudrategeneratorhasdefinedashiftclocksource.However,thetransmission canalsobeinitiatedbyfirstloadingdataintotheTXR_RXRregister,afterwhichtheTXENbitcan beset.Whenatransmissionofdatabegins,theTSRisnormallyempty,inwhichcaseatransferto theTXR_RXRregisterwillresultinanimmediatetransfertotheTSR.Ifduringatransmissionthe TXENbitiscleared,thetransmissionwillimmediatelyceaseandthetransmitterwillbereset.The TXoutputpincanthenbeconfiguredastheI/Oorotherpin-sharedfunctionbyconfiguringthe correspondingpin-sharedcontrolbits. Transmitting Data WhentheUARTistransmittingdata,thedataisshiftedontheTXpinfromtheshiftregister,with theleastsignificantbitfirst.Inthetransmitmode,theTXR_RXRregisterformsabufferbetween theinternalbusandthetransmittershiftregister.Itshouldbenotedthatif9-bitdataformathasbeen selected,thentheMSBwillbetakenfromtheTX8bitintheUCR1register.Thestepstoinitiatea datatransfercanbesummarizedasfollows: • MakethecorrectselectionoftheBNO,PRT,PRENandSTOPSbitstodefinetherequiredword length,paritytypeandnumberofstopbits. • SetuptheBRGregistertoselectthedesiredbaudrate. • SettheTXENbittoensurethattheTXpinisusedasaUARTtransmitterpin. • AccesstheUSRregisterandwritethedatathatistobetransmittedintotheTXR_RXRregister. NotethatthisstepwillcleartheTXIFbit. Thissequenceofeventscannowberepeatedtosendadditionaldata. ItshouldbenotedthatwhenTXIF=0,datawillbeinhibitedfrombeingwrittentotheTXR_RXR register.ClearingtheTXIFflagisalwaysachievedusingthefollowingsoftwaresequence: 1.AUSRregisteraccess 2.ATXR_RXRregisterwriteexecution Theread-onlyTXIFflagissetbytheUARThardwareandifsetindicatesthattheTXR_RXR registerisemptyandthatotherdatacannowbewrittenintotheTXR_RXRregisterwithout overwritingthepreviousdata.IftheTEIEbitissetthentheTXIFflagwillgenerateaninterrupt. |
|
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 |