Rev. 1.00
14�
��ne ��� �01�
Rev. 1.00
149
��ne ��� �01�
HT66FM5440
Brushless DC Motor A/D Flash MCU
HT66FM5440
Brushless DC Motor A/D Flash MCU
Start
SCL
SDA
SCL
SDA
1
0
ACK
Slave Address
SRW
Stop
1
1
0
1
0
1
0
1
0
0
1
0
1
0
0
I
�
C time-o�t
co�nter start
I
�
C time-o�t co�nter reset
on SCL negative transition
I
2
C Time-out
When an I
2
C time-out counter overflow occurs, the counter will stop and the I
I
CTOEN bit will be
cleared to zero and the I
I
CTOF bit will be set high to indicate that a time-out condition has occurred.
The time-out condition will also generate an interrupt which uses the I
2
C interrupt vector. When an
I
2
C time-out occurs, the I
2
C internal circuitry will be reset and the registers will be reset into the
following condition:
Registers
After I
2
C Time-out
IICD� IICA� IICC0
No change
IICC1
Reset to POR condition
The I
I
CTOF flag can be cleared by the application program. There are 64 time-out periods which
can be selected using bits in the I
I
CTOC register. The time-out time is given by the formula:
((1~64) × 32) / f
SUB
.
This gives a range of about 1ms to 64ms.
IICTOC Register
Bit
7
6
5
4
3
2
1
0
Name
IICTOEN
IICTOF
IICTOS5 IICTOS4 IICTOS3 IICTOS� IICTOS1 IICTOS0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7
IICTOEN
: I
2
C Time-out Control
0: Disable
1: Enable
Bit 6
IICTOF
: Time-out flag
0: No time-out
1: Time-out occurred
Bit 5~0
IICTOS5~IICTOS0
: Time-out Definition
I
2
C time-out clock source is f
SUB
/32.
I
2
C time-out time is given by: (IICTOS[5:0]+1) × (32/f
SUB
)