| Electronic Components Datasheet Search |
|
HT69F240 Datasheet(PDF) 136 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT69F240 Datasheet(HTML) 136 Page - Holtek Semiconductor Inc |
|
136 / 172 page ![]() Rev. 1.20 136 �a��� 2�� 201� Rev. 1.20 137 �a��� 2�� 201� HT69F240 I/O 8-Bit Flash MCU with LED/LCD Driver HT69F240 I/O 8-Bit Flash MCU with LED/LCD Driver Transmitting Data WhentheUARTnistransmittingdata,thedataisshiftedontheTXnpinfromtheshiftregister,with theleastsignificantbitLSBfirst.Inthetransmitmode,theTXRnregisterformsabufferbetween theinternalbusandthetransmittershiftregister.Itshouldbenotedthatif9-bitdataformathasbeen selected,thentheMSBwillbetakenfromtheTX8nbitintheUCR1nregister.Thestepstoinitiatea datatransfercanbesummarizedasfollows: • MakethecorrectselectionoftheBNO,PRT,PRENandSTOPSbitstodefinetherequiredword length,paritytypeandnumberofstopbits. • SetuptheBRGregistertoselectthedesiredbaudrate. • SettheTXENbittoensurethattheUARTtransmitterisenabledandtheTXpinisusedasa UARTtransmitterpin. • AccesstheUSRregisterandwritethedatathatistobetransmittedintotheTXRregister.Note thatthisstepwillcleartheTXIFbit. Thissequenceofeventscannowberepeatedtosendadditionaldata.Itshouldbenotedthatwhen TXIF=0,datawillbeinhibitedfrombeingwrittentotheTXRregister.ClearingtheTXIFflagis alwaysachievedusingthefollowingsoftwaresequence: • AUSRregisteraccess • ATXRregisterwriteexecution Theread-onlyTXIFflagissetbytheUARThardwareandifsetindicatesthattheTXRregisteris emptyandthatotherdatacannowbewrittenintotheTXRregisterwithoutoverwritingtheprevious data.IftheTEIEbitisset,thentheTXIFflagwillgenerateaninterrupt.Duringadatatransmission, awriteinstructiontotheTXRregisterwillplacethedataintotheTXRregister,whichwillbe copiedtotheshiftregisterattheendofthepresenttransmission.Whenthereisnodatatransmission inprogress,awriteinstructiontotheTXRregisterwillplacethedatadirectlyintotheshiftregister, resultinginthecommencementofdatatransmission,andtheTXIFbitbeingimmediatelyset.When aframetransmissioniscomplete,whichhappensafterstopbitsaresentorafterthebreakframe,the TIDLEbitwillbeset.TocleartheTIDLEbitthefollowingsoftwaresequenceisused: • AUSRregisteraccess • ATXRregisterwriteexecution NotethatboththeTXIFandTIDLEbitsareclearedbythesamesoftwaresequence. Transmitting Break IftheTXBRKbitisset,thenthebreakcharacterswillbesentonthenexttransmission.Break charactertransmissionconsistsofastartbit,followedby13xN"0"bits,whereN=1,2,etc.ifa breakcharacteristobetransmitted,thentheTXBRKbitmustbefirstsetbytheapplicationprogram andthenclearedtogeneratethestopbits.Transmittingabreakcharacterwillnotgenerateatransmit interrupt.Notethatabreakconditionlengthisatleast13bitslong.IftheTXBRKbitiscontinually keptatalogichighlevel,thenthetransmittercircuitrywilltransmitcontinuousbreakcharacters. AftertheapplicationprogramhasclearedtheTXBRKbit,thetransmitterwillfinishtransmittingthe lastbreakcharacterandsubsequentlysendoutoneortwostopbits.Theautomaticlogichighatthe endofthelastbreakcharacterwillensurethatthestartbitofthenextframeisrecognized. |
|
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 |