EasyManuals Logo

Holtek HT66F30 User Manual

Default Icon
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #251 background imageLoading...
Page #251 background image
Rev. 2.50 250 June 22, 2017 Rev. 2.50 251 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
• Transmittingdata
WhentheUARTistransmittingdata,thedataisshiftedontheTXpinfromtheshiftregister,
withtheleastsignicantbitLSBrst.Inthetransmitmode,theTXRregisterformsabuffer
betweentheinternalbusandthetransmittershiftregister.Itshouldbenotedthatif9-bitdata
formathasbeenselected,thentheMSBwillbetakenfromtheTX8bitintheUCR1register.The
stepstoinitiateadatatransfercanbesummarizedasfollows:
MakethecorrectselectionoftheBNO,PRT,PRENandSTOPSbitstodenetherequired
wordlength,paritytypeandnumberofstopbits.
SetuptheBRGregistertoselectthedesiredbaudrate.
SettheTXENbittoensurethattheUARTtransmitterisenabledandtheTXpinisusedasa
UARTtransmitterpin.
AccesstheUSRregisterandwritethedatathatistobetransmittedintotheTXRregister.Note
thatthisstepwillcleartheTXIFbit.
Thissequenceofeventscannowberepeatedtosendadditionaldata.
ItshouldbenotedthatwhenTXIF=0,datawillbeinhibitedfrombeingwrittentotheTXR
register.ClearingtheTXIFagisalwaysachievedusingthefollowingsoftwaresequence:
1.AUSRregisteraccess
2.ATXRregisterwriteexecution
Theread-onlyTXIFagissetbytheUARThardwareandifsetindicatesthattheTXRregister
isemptyandthatotherdatacannowbewrittenintotheTXRregisterwithoutoverwritingthe
previousdata.IftheTEIEbitisset,thentheTXIFagwillgenerateaninterrupt.Duringadata
transmission,awriteinstructiontotheTXRregisterwillplacethedataintotheTXRregister,
whichwillbecopiedtotheshiftregisterattheendofthepresenttransmission.Whenthereisno
datatransmissioninprogress,awriteinstructiontotheTXRregisterwillplacethedatadirectly
intotheshiftregister,resultinginthecommencementofdatatransmission,andtheTXIFbit
beingimmediatelyset.Whenaframetransmissioniscomplete,whichhappensafterstopbits
aresentorafterthebreakframe,theTIDLEbitwillbeset.TocleartheTIDLEbitthefollowing
softwaresequenceisused:
1.AUSRregisteraccess
2.ATXRregisterwriteexecution
NotethatboththeTXIFandTIDLEbitsareclearedbythesamesoftwaresequence.
• Transmittingbreak
IftheTXBRKbitisset,thenthebreakcharacterswillbesentonthenexttransmission.Break
charactertransmissionconsistsofastartbit,followedby13×N"0"bits,whereN=1,2,etc.if
abreakcharacteristobetransmitted,thentheTXBRKbitmustberstsetbytheapplication
programandthenclearedtogeneratethestopbits.Transmittingabreakcharacterwillnot
generateatransmitinterrupt.Notethatabreakconditionlengthisatleast13bitslong.Ifthe
TXBRKbitiscontinuallykeptatalogichighlevel,thenthetransmittercircuitrywilltransmit
continuousbreakcharacters.AftertheapplicationprogramhasclearedtheTXBRKbit,the
transmitterwillnishtransmittingthelastbreakcharacterandsubsequentlysendoutoneortwo
stopbits.Theautomaticlogichighattheendofthelastbreakcharacterwillensurethatthestart
bitofthenextframeisrecognized.

Table of Contents

Other manuals for Holtek HT66F30

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Holtek HT66F30 and is the answer not in the manual?

Holtek HT66F30 Specifications

General IconGeneral
BrandHoltek
ModelHT66F30
CategoryComputer Hardware
LanguageEnglish

Related product manuals