| 전자부품 데이터시트 검색엔진 |
|
HT66F4530 데이터시트(PDF) 159 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F4530 데이터시트(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. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |