| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT67F488 bảng dữ liệu(PDF) 122 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT67F488 bảng dữ liệu(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 |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |