English
Language : 

BH66F2260 Datasheet, PDF (147/214 Pages) Holtek Semiconductor Inc – R-Sensor Blood Pressure Meter Flash MCU
BH66F2260
R-Sensor Blood Pressure Meter Flash MCU
SCL Start
Slave Address
SRW ACK
SDA
101101010
I2C time-out
counter start
SCL
Stop
SDA
10010100
I2C time-out counter reset
on SCL negative transition
I2C Time-out
When an I2C time-out counter overflow occurs, the counter will stop and the SIMTOEN bit will
be cleared to zero and the SIMTOF 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 I2C interrupt vector.
When an I2C time-out occurs, the I2C internal circuitry will be reset and the registers will be reset
into the following condition:
Registers
SIMD, SIMA, SIMC0
SIMC1
After I2C Time-out
No change
Reset to POR condition
I2C Registers after Time-out
The SIMTOF flag can be cleared by the application program. There are 64 time-out periods which
can be selected using SIMTOS bit field in the SIMTOC register. The time-out time is given by the
formula: ((1~64) × 32) / fSUB. This gives a time-out period which ranges from about 1ms to 64ms.
• SIMTOC Register
Bit
Name
R/W
POR
7
SIMTOEN
R/W
0
6
SIMTOF
R/W
0
5
4
3
2
1
SIMTOS5 SIMTOS4 SIMTOS3 SIMTOS2 SIMTOS1
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
SIMTOS0
R/W
0
Bit 7
Bit 6
Bit 5~0
SIMTOEN: SIM I2C Time-out control
0: Disable
1: Enable
SIMTOF: SIM I2C Time-out flag
0: No time-out occurred
1: Time-out occurred
SIMTOS5~SIMTOS0: SIM I2C Time-out period selection
I2C time-out clock source is fSUB/32.
I2C time-out time is equal to (SIMTOS[5:0]+1) × (32/fSUB).
Rev. 1.00
147
March 15, 2017