| Electronic Components Datasheet Search |
|
HT67F488 Datasheet(PDF) 122 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT67F488 Datasheet(HTML) 122 Page - Holtek Semiconductor Inc |
|
122 / 171 page ![]() Rev. 1.60 1�� �ove��e� ��� �016 HT67F488/HT67F489 TinyPowerTM A/D Flash MCU with LCD & EEPROM UART Transmitter Datawordlengthsofeither8or9bitscanbeselectedbyprogrammingtheBNObitintheUCR1 register.WhenBNObitisset,thewordlengthwillbesetto9bits.Inthiscasethe9thbit,which istheMSB,needstobestoredintheTX8bitintheUCR1register.Atthetransmittercoreliesthe TransmitterShiftRegister,morecommonlyknownastheTSR,whosedataisobtainedfromthe transmitdataregister,whichisknownastheTXRregister.Thedatatobetransmittedisloaded intothisTXRregisterbytheapplicationprogram.TheTSRregisterisnotwrittentowithnewdata untilthestopbitfromtheprevioustransmissionhasbeensentout.Assoonasthisstopbithasbeen transmitted,theTSRcanthenbeloadedwithnewdatafromtheTXRregister,ifitisavailable.It shouldbenotedthattheTSRregister,unlikemanyotherregisters,isnotdirectlymappedintothe DataMemoryareaandassuchisnotavailabletotheapplicationprogramfordirectread/write operations.AnactualtransmissionofdatawillnormallybeenabledwhentheTXENbitisset,but thedatawillnotbetransmitteduntiltheTXRregisterhasbeenloadedwithdataandthebaudrate generatorhasdefinedashiftclocksource.However,thetransmissioncanalsobeinitiatedbyfirst loadingdataintotheTXRregister,afterwhichtheTXENbitcanbeset.Whenatransmissionof databegins,theTSRisnormallyempty,inwhichcaseatransfertotheTXRregisterwillresultin animmediatetransfertotheTSR.IfduringatransmissiontheTXENbitiscleared,thetransmission willimmediatelyceaseandthetransmitterwillbereset.TheTXoutputpinwillthenreturntotheI/O orotherpin-sharedfunction. Transmitting Data WhentheUARTistransmittingdata,thedataisshiftedontheTXpinfromtheshiftregister,with theleastsignificantbitfirst.Inthetransmitmode,theTXRregisterformsabufferbetweenthe internalbusandthetransmittershiftregister.Itshouldbenotedthatif9-bitdataformathasbeen selected,thentheMSBwillbetakenfromtheTX8bitintheUCR1register.Thestepstoinitiatea datatransfercanbesummarizedasfollows: • MakethecorrectselectionoftheBNO,PRT,PRENandSTOPSbitstodefinetherequiredword length,paritytypeandnumberofstopbits. • SetuptheBRGregistertoselectthedesiredbaudrate. • SettheTXENbittoensurethattheTXpinisusedasaUARTtransmitterpin. • AccesstheUSRregisterandwritethedatathatistobetransmittedintotheTXRregister.Note thatthisstepwillcleartheTXIFbit. Thissequenceofeventscannowberepeatedtosendadditionaldata. ItshouldbenotedthatwhenTXIF=0,datawillbeinhibitedfrombeingwrittentotheTXRregister. ClearingtheTXIFflagisalwaysachievedusingthefollowingsoftwaresequence: • AUSRregisteraccess • ATXRregisterwriteexecution Theread-onlyTXIFflagissetbytheUARThardwareandifsetindicatesthattheTXRregisteris emptyandthatotherdatacannowbewrittenintotheTXRregisterwithoutoverwritingtheprevious data.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 |