Rev. 1.50 158 August 28, 2017 Rev. 1.50 159 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
UCR1 Register
TheUCR1registertogetherwiththeUCR2registeraretheUARTcontrolregistersthatareused
tosetthevariousoptionsfortheUARTfunctionsuchasoverallon/offcontrol,paritycontrol,data
transferbitlength,etc.Furtherexplanationoneachofthebitsisgivenbelow.
Bit 7 6 5 4 3 2 1 0
Name UARTEN BNO PREN PRT STOPS TXBRK RX8 TX8
R/W R/W R/W R/W R/W R/W R/W R W
POR 0 0 0 0 0 0 x 0
“x”: unknown
Bit7 UARTEN:UARTfunctionenablecontrol
0:DisableUART;TXandRXpinsareusedasotherpin-sharedfunctionalpins.
1:EnableUART;TXandRXpinscanfunctionasUARTpinsdenedbyTXENand
RXENbits
TheUARTENbitistheUARTenablebit.Whenthisbitisequalto“0”,theUARTwill
bedisabledandtheRXpinaswellastheTXpinwillbeotherpin-sharedfunctional
pins.Whenthebitisequalto“1”,theUARTwillbeenabledandtheTXandRXpins
willfunctionasdenedbytheTXENandRXENenablecontrolbits.WhentheUART
isdisabled,itwillemptythebuffersoanycharacterremaininginthebufferwillbe
discarded.Inaddition,thevalueofthebaudratecounterwillbereset.IftheUART
isdisabled,allerrorandstatusagswillbereset.AlsotheTXEN,RXEN,TXBRK,
RXIF,OERR,FERR,PERRandNFbitswillbecleared,whiletheTIDLE,TXIFand
RIDLEbitswillbeset.OthercontrolbitsinUCR1,UCR2andBRGregisterswill
remainunaffected.IftheUARTisactiveandtheUARTENbitiscleared,allpending
transmissionsandreceptionswillbeterminatedandthemodulewillberesetasdened
above.WhentheUARTisre-enabled,itwillrestartinthesameconguration.
Bit6 BNO:Numberofdatatransferbitsselection
0:8-bitdatatransfer
1:9-bitdatatransfer
Thisbitisusedtoselectthedatalengthformat,whichcanhaveachoiceofeither
8-bitor9-bitformat.Whenthisbitisequalto“1”,a9-bitdatalengthformatwillbe
selected.Ifthebitisequalto“0”,thenan8-bitdatalengthformatwillbeselected.If
9-bitdatalengthformatisselected,thenbitsRX8andTX8willbeusedtostorethe9
th
bitofthereceivedandtransmitteddatarespectively.
Bit5 PREN:Parityfunctionenablecontrol
0:Parityfunctionisdisabled
1:Parityfunctionisenabled
Thisbitistheparityfunctionenablebit.Whenthisbitisequalto1,theparityfunction
willbeenabled.Ifthebitisequalto0,thentheparityfunctionwillbedisabled.
Bit4 PRT:Paritytypeselectionbit
0:Evenparityforparitygenerator
1:Oddparityforparitygenerator
Thisbitistheparitytypeselectionbit.Whenthisbitisequalto1,oddparitytypewill
beselected.Ifthebitisequalto0,thenevenparitytypewillbeselected.
Bit3 STOPS:Numberofstopbitsselection
0:Onestopbitformatisused
1:Twostopbitsformatisused
Thisbitdeterminesifoneortwostopbitsaretobeused.Whenthisbitisequalto“1”,
twostopbitsformatareused.Ifthebitisequalto“0”,thenonlyonestopbitformatis
used.