| Electronic Components Datasheet Search |
|
HT66F20 Datasheet(PDF) 254 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F20 Datasheet(HTML) 254 Page - Holtek Semiconductor Inc |
|
254 / 298 page ![]() Rev. 1.90 �54 �e���a�� 18� �01� Rev. 1.90 �55 �e���a�� 18� �01� HT66F20/HT66F30/HT66F40/HT66F50/HT66F60 HT66FU30/HT66FU40/HT66FU50/HT66FU60 Enhanced A/D Flash Type 8-Bit MCU with EEPROM HT66F20/HT66F30/HT66F40/HT66F50/HT66F60 HT66FU30/HT66FU40/HT66FU50/HT66FU60 Enhanced A/D Flash Type 8-Bit MCU with EEPROM • Transmittingdata WhentheUARTistransmittingdata,thedataisshiftedontheTXpinfromtheshiftregister, withtheleastsignificantbitLSBfirst.Inthetransmitmode,theTXRregisterformsabuffer betweentheinternalbusandthetransmittershiftregister.Itshouldbenotedthatif9-bitdata formathasbeenselected,thentheMSBwillbetakenfromtheTX8bitintheUCR1register.The stepstoinitiateadatatransfercanbesummarizedasfollows: ♦ MakethecorrectselectionoftheBNO,PRT,PRENandSTOPSbitstodefinetherequired wordlength,paritytypeandnumberofstopbits. ♦ SetuptheBRGregistertoselectthedesiredbaudrate. ♦ SettheTXENbittoensurethattheUARTtransmitterisenabledandtheTXpinisusedasa UARTtransmitterpin. ♦ AccesstheUSRregisterandwritethedatathatistobetransmittedintotheTXRregister.Note thatthisstepwillcleartheTXIFbit. Thissequenceofeventscannowberepeatedtosendadditionaldata. ItshouldbenotedthatwhenTXIF=0,datawillbeinhibitedfrombeingwrittentotheTXR register.ClearingtheTXIFflagisalwaysachievedusingthefollowingsoftwaresequence: 1.AUSRregisteraccess 2.ATXRregisterwriteexecution Theread-onlyTXIFflagissetbytheUARThardwareandifsetindicatesthattheTXRregister isemptyandthatotherdatacannowbewrittenintotheTXRregisterwithoutoverwritingthe previousdata.IftheTEIEbitisset,thentheTXIFflagwillgenerateaninterrupt.Duringadata transmission,awriteinstructiontotheTXRregisterwillplacethedataintotheTXRregister, whichwillbecopiedtotheshiftregisterattheendofthepresenttransmission.Whenthereisno datatransmissioninprogress,awriteinstructiontotheTXRregisterwillplacethedatadirectly intotheshiftregister,resultinginthecommencementofdatatransmission,andtheTXIFbit beingimmediatelyset.Whenaframetransmissioniscomplete,whichhappensafterstopbits aresentorafterthebreakframe,theTIDLEbitwillbeset.TocleartheTIDLEbitthefollowing softwaresequenceisused: 1.AUSRregisteraccess 2.ATXRregisterwriteexecution NotethatboththeTXIFandTIDLEbitsareclearedbythesamesoftwaresequence. • Transmittingbreak IftheTXBRKbitisset,thenthebreakcharacterswillbesentonthenexttransmission.Break charactertransmissionconsistsofastartbit,followedby13×N"0"bits,whereN=1,2,etc.if abreakcharacteristobetransmitted,thentheTXBRKbitmustbefirstsetbytheapplication programandthenclearedtogeneratethestopbits.Transmittingabreakcharacterwillnot generateatransmitinterrupt.Notethatabreakconditionlengthisatleast13bitslong.Ifthe TXBRKbitiscontinuallykeptatalogichighlevel,thenthetransmittercircuitrywilltransmit continuousbreakcharacters.AftertheapplicationprogramhasclearedtheTXBRKbit,the transmitterwillfinishtransmittingthelastbreakcharacterandsubsequentlysendoutoneortwo stopbits.Theautomaticlogichighattheendofthelastbreakcharacterwillensurethatthestart bitofthenextframeisrecognized. |
|
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 |