| 전자부품 데이터시트 검색엔진 |
|
HT45F65 데이터시트(PDF) 198 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F65 데이터시트(HTML) 198 Page - Holtek Semiconductor Inc |
|
198 / 231 page ![]() Rev. 1.60 198 �ove��e� ��� �01� Rev. 1.60 199 �ove��e� ��� �01� HT45F65/HT45F66/HT45F67 Glucose Meter 8-Bit Flash MCU Theread-onlyTXIFflagissetbytheUARThardwareandifsetindicatesthattheTXRregisteris emptyandthatotherdatacannowbewrittenintotheTXRregisterwithoutoverwritingtheprevious data.IftheTEIEbitisset,thentheTXIFflagwillgenerateaninterrupt.Duringadatatransmission, awriteinstructiontotheTXRregisterwillplacethedataintotheTXRregister,whichwillbe copiedtotheshiftregisterattheendofthepresenttransmission.Whenthereisnodatatransmission inprogress,awriteinstructiontotheTXRregisterwillplacethedatadirectlyintotheshiftregister, resultinginthecommencementofdatatransmission,andtheTXIFbitbeingimmediatelyset.When aframetransmissioniscomplete,whichhappensafterstopbitsaresentorafterthebreakframe,the TIDLEbitwillbeset.TocleartheTIDLEbitthefollowingsoftwaresequenceisused: 1.AUSRregisteraccess 2.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. UART Receiver TheUARTiscapableofreceivingwordlengthsofeither8or9bitscanbeselectedbyprogramming theBNObitintheUCR1register.WhenBNObitisset,thewordlengthwillbesetto9bits.In thiscasethe9thbit,whichistheMSB,willbestoredintheRX8bitintheUCR1register.Atthe receivercoreliestheReceiverShiftRegistermorecommonlyknownastheRSR.Thedatawhich isreceivedontheRXexternalinputpinissenttothedatarecoveryblock.Thedatarecoveryblock operatingspeedis16timesthatofthebaudrate,whilethemainreceiveserialshifteroperatesatthe baudrate.AftertheRXpinissampledforthestopbit,thereceiveddatainRSRistransferredtothe receivedataregister,iftheregisterisempty.ThedatawhichisreceivedontheexternalRXinputpin issampledthreetimesbyamajoritydetectcircuittodeterminethelogiclevelthathasbeenplaced ontotheRXpin.ItshouldbenotedthattheRSRregister,unlikemanyotherregisters,isnotdirectly mappedintotheDataMemoryareaandassuchisnotavailabletotheapplicationprogramfordirect read/writeoperations. Receiving Data WhentheUARTreceiverisreceivingdata,thedataisseriallyshiftedinontheexternalRXinput pintotheshiftregister,withtheleastsignificantbitLSBfirst.TheRXRregisterisafourbytedeep FIFOdatabuffer,wherefourbytescanbeheldintheFIFOwhilethe5thbytecancontinuetobe received.NotethattheapplicationprogrammustensurethatthedataisreadfromRXRbeforethe 5thbytehasbeencompletelyshiftedin,otherwisethe5thbytewillbediscardedandanoverrun errorOERRwillbesubsequentlyindicated.Thestepstoinitiateadatatransfercanbesummarized asfollows: • MakethecorrectselectionoftheBNO,PRT,PRENandSTOPSbitstodefinetherequiredword length,paritytypeandnumberofstopbits. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |