Rev. 1.50 156 August 28, 2017 Rev. 1.50 157 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
TXR_RXR Register
TheTXR_RXRregisteristhedataregisterwhichisusedtostorethedatatobetransmittedonthe
TXpinorbeingreceivedfromtheRXpin.
Bit 7 6 5 4 3 2 1 0
Name TXRX7 TXRX6 TXRX5 TXRX4 TXRX3 TXRX2 TXRX1 TXRX0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR x x x x x x x x
“x”: unknown
Bit7~0 TXRX7~TXRX0:UARTTransmit/ReceiveDatabits
USR Register
TheUSRregisteristhestatusregisterfortheUART,whichcanbereadbytheprogramto
determinethepresentstatusoftheUART.AllagswithintheUSRregisterarereadonlyandfurther
explanationsaregivenbelow.
Bit 7 6 5 4 3 2 1 0
Name PERR NF FERR OERR RIDLE RXIF TIDLE TXIF
R/W R R R R R R R R
POR 0 0 0 0 1 0 1 1
Bit7 PERR:Parityerrorag
0:Noparityerrorisdetected
1:Parityerrorisdetected
ThePERRagistheparityerrorag.Whenthisreadonlyagis“0”,itindicatesa
parityerrorhasnotbeendetected.Whentheagis“1”,itindicatesthattheparityof
thereceivedwordisincorrect.ThiserroragisapplicableonlyifParitymode(oddor
even)isselected.Theagcanalsobeclearedbyasoftwaresequencewhichinvolves
areadtothestatusregisterUSRfollowedbyanaccesstotheRXRdataregister.
Bit6 NF:Noiseag
0:Nonoiseisdetected
1:Noiseisdetected
TheNFagisthenoiseag.Whenthisreadonlyagis“0”,itindicatesnonoise
condition.Whentheagis“1”,itindicatesthattheUARThasdetectednoiseonthe
receiverinput.TheNFagissetduringthesamecycleastheRXIFagbutwillnot
besetinthecaseofasoverrun.TheNFagcanbeclearedbyasoftwaresequence
whichwillinvolveareadtothestatusregisterUSRfollowedbyanaccesstotheRXR
dataregister.
Bit5 FERR:Framingerrorag
0:Noframingerrorisdetected
1:Framingerrorisdetected
TheFERRagistheframingerrorag.Whenthisreadonlyagis“0”,itindicates
thatthereisnoframingerror.Whentheagis“1”,itindicatesthataframingerror
hasbeendetectedforthecurrentcharacter.Theagcanalsobeclearedbyasoftware
sequencewhichwillinvolveareadtothestatusregisterUSRfollowedbyanaccessto
theRXRdataregister.