EasyManuals Logo

Holtek HT66F0175 User Manual

Default Icon
207 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 #167 background imageLoading...
Page #167 background image
Rev. 1.50 166 August 28, 2017 Rev. 1.50 167 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Receiver Interrupt
Thereadonlyreceiveinterruptag,RXIF,intheUSRregisterissetbyanedgegeneratedbythe
receiver.AninterruptisgeneratedifRIE=1,whenawordistransferredfromtheReceiveShift
Register,RSR,totheReceiveDataRegister,RXR.Anoverrunerrorcanalsogenerateaninterruptif
RIE=1.
Managing Receiver Errors
SeveraltypesofreceptionerrorscanoccurwithintheUARTmodule,thefollowingsectiondescribes
thevarioustypesandhowtheyaremanagedbytheUART.
Overrun Error – OERR
TheRXRregisteriscomposedofatwobytedeepFIFOdatabuffer,wheretwobytescanbeheldin
theFIFOregister,whilea3
th
bytecancontinuetobereceived.Beforethe3
th
bytehasbeenentirely
shiftedin,thedatashouldbereadfromtheRXRregister.Ifthisisnotdone,theoverrunerrorag
OERRwillbeconsequentlyindicated.
Intheeventofanoverrunerroroccurring,thefollowingwillhappen:
• TheOERRagintheUSRregisterwillbeset.
• TheRXRcontentswillnotbelost.
• Theshiftregisterwillbeoverwritten.
• AninterruptwillbegeneratediftheRIEbitisset.
TheOERRflagcanbeclearedbyanaccesstotheUSRregisterfollowedbyareadtotheRXR
register.
Noise Error – NF
Over-samplingisusedfordatarecoverytoidentifyvalidincomingdataandnoise.Ifnoiseis
detectedwithinaframe,thefollowingwilloccur:
• Thereadonlynoiseag,NF,intheUSRregisterwillbesetontherisingedgeoftheRXIFbit.
• DatawillbetransferredfromtheshiftregistertotheRXRregister.
• Nointerruptwillbegenerated.HoweverthisbitrisesatthesametimeastheRXIFbitwhich
itselfgeneratesaninterrupt.
NotethattheNFagisresetbyaUSRregisterreadoperationfollowedbyanRXRregisterread
operation.
Framing Error – FERR
Thereadonlyframingerrorag,FERR,intheUSRregister,issetifazeroisdetectedinsteadof
stopbits.Iftwostopbitsareselected,bothstopbitsmustbehigh.OtherwisetheFERRagwillbe
set.TheFERRagisbufferedalongwiththereceiveddataandisclearedinanyreset.
Parity Error – PERR
Thereadonlyparityerrorag,PERR,intheUSRregister,issetiftheparityofthereceivedword
isincorrect.Thiserroragisonlyapplicableiftheparityfunctionisenabled,PREN=1,andifthe
paritytype,oddoreven,isselected.ThereadonlyPERRagisbufferedalongwiththereceived
databytes.Itisclearedonanyreset,itshouldbenotedthattheFERRandPERRagsarebuffered
alongwiththecorrespondingwordandshouldbereadbeforereadingthedataword.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Holtek HT66F0175 Specifications

General IconGeneral
BrandHoltek
ModelHT66F0175
CategoryStorage
LanguageEnglish