Rev. 2.50 246 June 22, 2017 Rev. 2.50 247 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
UCR3 register
TheUCR3registeristhelastoftheUARTcontrolregistersandcontrolsthesoftwareresetoperation
oftheUARTmodule.TheonlyoneavailablebitnamedURSTintheUARTcontrolregisterUCR3
istheUARTsoftwareresetcontrolbit.Whenthisbitisequalto0,theUARToperatesnormally.
Ifthisbitisequalto1,thewholeUARTmodulewillbereset.Whenthissituationoccurs,the
transmitterandreceiverwillbereset.TheUARTregistersincludingthestatusregisterandcontrol
registerswillkeepthePORstatesshownintheaboveUARTregisterstableaftertheresetcondition
occurs.
Bit 7 6 5 4 3 2 1 0
Name URST — — — — — — —
R/W R/W — — — — — — —
POR 0 — — — — — — —
Bit7 URST:UARTsoftwarereset
0:Noaction
1:UARTresetoccurs
Bit6~0 Unimplemented,readas“0”
Baud Rate Generator
Tosetupthespeedoftheserialdatacommunication,theUARTfunctioncontainsitsowndedicated
baudrategenerator.Thebaudrateiscontrolledbyitsowninternalfreerunning8-bittimer,the
periodofwhichisdeterminedbytwofactors.Therstoftheseisthevalueplacedinthebaudrate
registerBRGandthesecondisthevalueoftheBRGHbitwiththecontrolregisterUCR2.The
BRGHbitdecidesifthebaudrategeneratoristobeusedinahighspeedmodeorlowspeedmode,
whichinturndeterminestheformulathatisusedtocalculatethebaudrate.ThevalueNintheBRG
registerwhichisusedinthefollowingbaudratecalculationformuladeterminesthedivisionfactor.
NotethatNisthedecimalvalueplacedintheBRGregisterandhasarangeofbetween0and255.
UCR2 BRGH Bit 0 1
Baud Rate (BR)
CLKI
[64 (N+1)]
CLKI
[16 (N+1)]
ByprogrammingtheBRGHbitwhichallowsselectionoftherelatedformulaandprogrammingthe
requiredvalueintheBRGregister,therequiredbaudratecanbesetup.Notethatbecausetheactual
baudrateisdeterminedusingadiscretevalue,N,placedintheBRGregister,therewillbeanerror
associatedbetweentheactualandrequestedvalue.ThefollowingexampleshowshowtheBRG
registervalueNandtheerrorvaluecanbecalculated.