Rev. 1.50 160 August 28, 2017 Rev. 1.50 161 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Bit5 BRGH:BaudRatespeedselection
0:Lowspeedbaudrate
1:Highspeedbaudrate
ThebitnamedBRGHselectsthehighorlowspeedmodeoftheBaudRateGenerator.
Thisbit,togetherwiththevalueplacedinthebaudrateregister,BRG,controlsthe
baudrateoftheUART.Ifthebitisequalto0,thelowspeedmodeisselected.
Bit4 ADDEN:Addressdetectfunctionenablecontrol
0:Addressdetectionfunctionisdisabled
1:Addressdetectionfunctionisenabled
ThebitnamedADDENistheaddressdetectionfunctionenablecontrolbit.Whenthis
bitisequalto1,theaddressdetectionfunctionisenabled.Whenitoccurs,ifthe8
th
bit,whichcorrespondstoRX7ifBNO=0,orthe9
th
bit,whichcorrespondstoRX8if
BNO=1,hasavalueof“1”,thenthereceivedwordwillbeidentiedasanaddress,
ratherthandata.Ifthecorrespondinginterruptisenabled,aninterruptrequestwillbe
generatedeachtimethereceivedwordhastheaddressbitset,whichisthe8
th
or9
th
bitdependingonthevalueoftheBNObit.Iftheaddressbitknownasthe8
th
or9
th
bitofthereceivedwordis“0”withtheaddressdetectionfunctionbeingenabled,an
interruptwillnotbegeneratedandthereceiveddatawillbediscarded.
Bit3 WAKE:RXpinfallingedgewake-upfunctionenablecontrol
0:RXpinwake-upfunctionisdisabled
1:RXpinwake-upfunctionisenabled
Thebitenablesordisablesthereceiverwake-upfunction.Ifthisbitisequalto1and
thedeviceisinIDLE0orSLEEPmode,afallingedgeontheRXpinwillwakeupthe
device.Ifthisbitisequalto0andthedeviceisinthepowerdownmode,anyedge
transitionsontheRXpinwillnotwakeupthedevice.
Bit2 RIE:Receiverinterruptenablecontrol
0:Receiverrelatedinterruptisdisabled
1:Receiverrelatedinterruptisenabled
Thebitenablesordisablesthereceiverinterrupt.Ifthisbitisequalto1andwhenthe
receiveroverrunflagOERRorreceiveddataavailableflagRXIFisset,theUART
interruptrequestagwillbeset.Ifthisbitisequalto0,theUARTinterruptrequest
agwillnotbeinuencedbytheconditionoftheOERRorRXIFags.
Bit1 TIIE:TransmitterIdleinterruptenablecontrol
0:Transmitteridleinterruptisdisabled
1:Transmitteridleinterruptisenabled
Thebitenablesordisablesthetransmitteridleinterrupt.Ifthisbitisequalto1and
whenthetransmitteridleagTIDLEisset,duetoatransmitteridlecondition,the
UARTinterruptrequestagwillbeset.Ifthisbitisequalto0,theUARTinterrupt
requestagwillnotbeinuencedbytheconditionoftheTIDLEag.
Bit0 TEIE:TransmitterEmptyinterruptenablecontrol
0:Transmitteremptyinterruptisdisabled
1:Transmitteremptyinterruptisenabled
Thebitenablesordisablesthetransmitteremptyinterrupt.Ifthisbitisequalto1and
whenthetransmitteremptyagTXIFisset,duetoatransmitteremptycondition,the
UARTinterruptrequestagwillbeset.Ifthisbitisequalto0,theUARTinterrupt
requestagwillnotbeinuencedbytheconditionoftheTXIFag.