
Mini57
Apr. 06, 2017
Page 400 of 475
Rev.1.00
MINI5
7
S
E
RI
E
S
TECH
NIC
A
L R
E
F
E
RE
N
CE
MA
N
UA
L
decides PCLK = 12MHz and baud rate =100k, the UI2C_BRGEN[25:16] must set 59, and the
HTCTL [5:0] maximum value is 51.
SCL
SDA
SDA delay over SCL low duty
Bus error
Figure 6.14-18 Hold Time Wrong Adjustment
I
2
C Time-out Function
There is a time-out counter TOCNT (UI2C_PROTCTL [25:16]) which can be used to deal with the
I
2
C bus hang-up. If the time-out counter is enabled, the counter starts up counting until it equals
TOCNT (UI2C_PROTCTL [25:16]) and generates I
2
C interrupt to CPU or stops counting by
clearing TOIEN (UI2C_PROTIEN [0]) to 0 or setting all I
2
C interrupt signal (ACKIF, ERRIF,
ARBLOIF, NACKIF, STORIF, STARIF). User may write 1 to clear TOIF(UI2C_PROTSTS[5]) to 0.
When time-out counter is enabled, writing 1 to the TOIF will reset counter and re-start up counting
after TOIF is cleared. Refer to Figure 6.14-19 for the time-out counter TOCNT (UI2C_PROTCTL
[25:16]). T
TOCNT
= (TOCNT (UI2C_PROTCTL [25:16]) +1) x32 (5-bit) x T
PCLK
. Note that the time
counter clock source TMCNTSRC (USCI_ BRGEN [5]) must be set zero.
Internal counter
TOIF
Clear Counter
TOIEN
Interrupt
signal
Enable
f
SAMP_CLK
Writing TOIF 1
TOCNT
I
2
C interrupt signal
(ACKIF, NACKIF, ...)
Figure 6.14-19 I
2
C Time-out Count Block Diagram
Wake-up Function
When chip enters Power-down mode and set WKEN (WKCTL[0]) to 1, other I
2
C master can
wake-up our chip by addressing our I
2
C device, user must configure the related setting before
entering sleep mode. The ACK bit cycle of address match frame is done in power-down. The
controller will stretch the SCL to low when the address is matched the device’s address and the
ACK cycle done. The SCL is stretched until the bit is clear by user. If the frequency of SCL is low
speed and the system has wake-up from address match frame, the user shall check this bit to
Содержание Mini57 Series
Страница 376: ...Mini57 Apr 06 2017 Page 376 of 475 Rev 1 00 MINI57 SERIES TECHNICAL REFERENCE MANUAL 1 Receive buffer is full ...
Страница 472: ...Mini57 Apr 06 2017 Page 472 of 475 Rev 1 00 MINI57 SERIES TECHNICAL REFERENCE MANUAL 1 3 20 Pin TSSOP 4 4x6 5x0 9 mm ...
Страница 473: ...Mini57 Apr 06 2017 Page 473 of 475 Rev 1 00 MINI57 SERIES TECHNICAL REFERENCE MANUAL 9 1 33 pin QFN33 4x4x0 8 mm ...