Rev. 1.50 182 August 28, 2017 Rev. 1.50 183 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
TBC Register
Bit 7 6 5 4 3 2 1 0
Name TBON TBCK TB11 TB10 LXTLP TB02 TB01 TB00
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 1 1 0 1 1 1
Bit7 TBON:TimeBasefunctionenablecontrol
0:Disable
1:Enable
Bit6 TBCK:TimeBaseclocksourceselect
0:f
TBC
1:f
SYS
/4
Bit5~4 TB11~TB10:TimeBase1time-outperiodselection
00:2
12
/f
TB
01:2
13
/f
TB
10:2
14
/f
TB
11:2
15
/f
TB
Bit3 LXTLP:LXTLowPowercontrol
0:Disable–LXTquickstart-up
1:Enable–LXTslowstart-up
Bit2~0 TB02~TB00:TimeBase0time-outperiodselection
000:2
8
/f
TB
001:2
9
/f
TB
010:2
10
/f
TB
011:2
11
/f
TB
100:2
12
/f
TB
101:2
13
/f
TB
110:2
14
/f
TB
111:2
15
/f
TB
Serial Interface Module Interrupt
TheSerialInterfaceModuleInterrupt,alsoknownastheSIMinterrupt,iscontrolledbytheSPIor
I
2
Cdatatransfer.ASIMInterruptrequestwilltakeplacewhentheSIMInterruptrequestag,SIMF,
isset,whichoccurswhenabyteofdatahasbeenreceivedortransmittedbytheSIMinterface,
anI
2
CslaveaddressmatchorI
2
Cbustime-outoccurrence.Toallowtheprogramtobranchtoits
respectiveinterruptvectoraddress,theglobalinterruptenablebit,EMIandtheSerialInterface
Interruptenablebit,SIME,mustrstbeset.Whentheinterruptisenabled,thestackisnotfulland
anyoftheabovedescribedsituationsoccurs,asubroutinecalltotherespectiveSIMInterruptvector,
willtakeplace.WhentheSerialInterfaceInterruptisserviced,theEMIbitwillbeautomatically
clearedtodisableotherinterrupts.TheSIMFagwillalsobeautomaticallycleared.
UART Transfer Interrupt – HT66F0185
TheUARTTransferInterruptiscontrolledbyseveralUARTtransferconditions.Whenoneofthese
conditionsoccurs,aninterruptpulsewillbegeneratedtogettheattentionofthemicrocontroller.
Theseconditionsareatransmitterdataregisterempty,transmitteridle,receiverdataavailable,
receiveroverrun,addressdetectandanRXpinwake-up.Toallowtheprogramtobranchtoits
respectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI,andUARTInterrupt
enablebit,URE,mustrstbeset.Whentheinterruptisenabled,thestackisnotfullandanyofthe
conditionsdescribedaboveoccurs,asubroutinecalltotheUARTInterruptvector,willtakeplace.
Whentheinterruptisserviced,theUARTInterruptag,URF,willbeautomaticallycleared.The
EMIbitwillalsobeautomaticallyclearedtodisableotherinterrupts.