| Electronic Components Datasheet Search |
|
HT66F019 Datasheet(PDF) 140 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F019 Datasheet(HTML) 140 Page - Holtek Semiconductor Inc |
|
140 / 175 page ![]() Rev. 1.00 140 De�e��e� 01� �01� Rev. 1.00 141 De�e��e� 01� �01� HT66F019 A/D Flash MCU with EEPROM HT66F019 A/D Flash MCU with EEPROM Thefollowingdiagramshowsthetransmitandreceivewaveformsforboth8-bitand9-bitdata formats. Bit 0 8-bit data format Bit 1 Stop Bit Next Sta�t Bit Sta�t Bit Pa�ity Bit Bit � Bit 3 Bit 4 Bit 5 Bit 6 Bit � Bit 0 9-bit data format Bit 1 Sta�t Bit Bit � Bit 3 Bit 4 Bit 5 Bit 6 Stop Bit Next Sta�t Bit Pa�ity Bit Bit 8 Bit � 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-sharedfunction. 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 |
|
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 |