Rev. 2.50 252 June 22, 2017 Rev. 2.50 253 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
• Receivingbreak
AnybreakcharacterreceivedbytheUARTwillbemanagedasaframingerror.Thereceiver
willcountandexpectacertainnumberofbittimesasspeciedbythevaluesprogrammedinto
theBNOandSTOPSbits.Ifthebreakismuchlongerthan13bittimes,thereceptionwillbe
consideredascompleteafterthenumberofbittimesspeciedbyBNOandSTOPS.TheRXIF
bitisset,FERRisset,zerosareloadedintothereceivedataregister,interruptsaregeneratedif
appropriateandtheRIDLEbitisset.Ifalongbreaksignalhasbeendetectedandthereceiverhas
receivedastartbit,thedatabitsandtheinvalidstopbit,whichsetstheFERRag,thereceiver
mustwaitforavalidstopbitbeforelookingforthenextstartbit.Thereceiverwillnotmake
theassumptionthatthebreakconditiononthelineisthenextstartbit.Abreakisregardedas
acharacterthatcontainsonlyzeroswiththeFERRagset.Thebreakcharacterwillbeloaded
intothebufferandnofurtherdatawillbereceiveduntilstopbitsarereceived.Itshouldbenoted
thattheRIDLEreadonlyagwillgohighwhenthestopbitshavenotyetbeenreceived.The
receptionofabreakcharacterontheUARTregisterswillresultinthefollowing:
♦
Theframingerrorag,FERR,willbeset.
♦
Thereceivedataregister,RXR,willbecleared.
♦
TheOERR,NF,PERR,RIDLEorRXIFagswillpossiblybeset.
• Idlestatus
Whenthereceiverisreadingdata,whichmeansitwillbeinbetweenthedetectionofastartbit
andthereadingofastopbit,thereceiverstatusagintheUSRregister,otherwiseknownasthe
RIDLEag,willhaveazerovalue.Inbetweenthereceptionofastopbitandthedetectionof
thenextstartbit,theRIDLEagwillhaveahighvalue,whichindicatesthereceiverisinanidle
condition.
•
Receiverinterrupt
ThereadonlyreceiveinterruptagRXIFintheUSRregisterissetbyanedgegeneratedby
thereceiver.AninterruptisgeneratedifRIE=1,whenawordistransferredfromtheReceive
ShiftRegister,RSR,totheReceiveDataRegister,RXR.Anoverrunerrorcanalsogeneratean
interruptifRIE=1.