Rev. 2.50 194 June 22, 2017 Rev. 2.50 195 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
• SIMC1 Register
Bit 7 6 5 4 3 2 1 0
Name HCF HAAS HBB HTX TXAK SRW IAMWU RXAK
R/W R R R R/W R/W R R/W R
POR
1 0 0 0 0 0 0 1
Bit7 HCF:I
2
CBusdatatransfercompletionag
0:Dataisbeingtransferred
1:Completionofan8-bitdatatransfer
TheHCFflagisthedatatransferflag.Thisflagwillbezerowhendataisbeing
transferred.Uponcompletionofan8-bitdatatransfertheflagwillgohighandan
interruptwillbegenerated.
Bit6 HAAS:I
2
CBusaddressmatchag
0:Notaddressmatch
1:Addressmatch
TheHAASagistheaddressmatchag.Thisagisusedtodetermineiftheslave
deviceaddressisthesameasthemastertransmitaddress.Iftheaddressesmatchthen
thisbitwillbehigh,ifthereisnomatchthentheagwillbelow.
Bit5 HBB:I
2
CBusbusyag
0:I
2
CBusisnotbusy
1:I
2
CBusisbusy
TheHBBagistheI
2
Cbusyag.Thisagwillbe1whentheI
2
Cbusisbusywhich
willoccurwhenaSTARTsignalisdetected.Theagwillbesetto0whenthebusis
freewhichwilloccurwhenaSTOPsignalisdetected.
Bit4 HTX:SelectI
2
Cslavedeviceistransmitterorreceiver
0:Slavedeviceisthereceiver
1:Slavedeviceisthetransmitter
Bit3 TXAK:I
2
CBustransmitacknowledgeag
0:Slavesendacknowledgeag
1:Slavedonotsendacknowledgeag
TheTXAKbitisthetransmitacknowledgeag.Aftertheslavedevicereceiptof8-bits
ofdata,thisbitwillbetransmittedtothebusonthe9thclockfromtheslavedevice.
TheslavedevicemustalwayssetTXAKbitto0beforefurtherdataisreceived.
Bit2 SRW:I
2
CSlaveRead/Writeag
0:Slavedeviceshouldbeinreceivemode
1:Slavedeviceshouldbeintransmitmode
TheSRWflagistheI
2
CSlaveRead/Writeflag.Thisflagdetermineswhether
themasterdevicewishestotransmitorreceivedatafromtheI
2
Cbus.Whenthe
transmittedaddressandslaveaddressismatch,thatiswhentheHAASagissethigh,
theslavedevicewillchecktheSRWagtodeterminewhetheritshouldbeintransmit
modeorreceivemode.IftheSRWagishigh,themasterisrequestingtoreaddata
fromthebus,sotheslavedeviceshouldbeintransmitmode.WhentheSRWflag
iszero,themasterwillwritedatatothebus,thereforetheslavedeviceshouldbein
receivemodetoreadthisdata.
Bit1 IAMWU:I
2
CAddressMatchWake-upControl
0:Disable
1:Enable-mustbeclearedbytheapplicationprogramafterwake-up
Thisbitshouldbesetto1toenabletheI
2
CaddressmatchwakeupfromtheSLEEP
orIDLEMode.IftheIAMWUbithasbeensetbeforeenteringeithertheSLEEPor
IDLEmodetoenabletheI
2
Caddressmatchwakeup,thenthisbitmustbeclearedby
theapplicationprogramafterwake-uptoensurecorrectiondeviceoperation.