English
Language : 

HT67F2350 Datasheet, PDF (187/292 Pages) Holtek Semiconductor Inc – Advanced A/D Flash MCU with LCD & EEPROM
HT67F2350/HT67F2360
HT67F2370/HT67F2390
Advanced A/D Flash MCU with LCD & EEPROM
START signal
f�o� Maste�
Send slave add�ess
and R/W �it f�o� Maste�
A�knowledge
f�o� slave
Send data �yte
f�o� Maste�
A�knowledge
f�o� slave
STOP signal
f�o� Maste�
The SIMDEB1 and SIMDEB0 bits determine the debounce time of the I2C interface. This uses
the system clock to in effect add a debounce time to the external clock to reduce the possibility
of glitches on the clock line causing erroneous operation. The debounce time, if selected, can be
chosen to be either 2 or 4 system clocks. To achieve the required I2C data transfer speed, there
exists a relationship between the system clock, fSYS, and the I2C debounce time. For either the I2C
Standard or Fast mode operation, users must take care of the selected system clock frequency and
the configured debounce time to match the criterion shown in the following table.
I2C Debounce Time Selection
No Debounce
2 system clock debounce
4 system clock debounce
I2C Standard Mode (100kHz)
fSYS > 2 MHz
fSYS > 4 MHz
fSYS > 8 MHz
I2C Fast Mode (400kHz)
fSYS > 5 MHz
fSYS > 10 MHz
fSYS > 20 MHz
I2C Minimum fSYS Frequency
I2C Registers
There are three control registers associated with the I2C bus, SIMC0, SIMC1 and SIMA, and one
data register, SIMD. The SIMD register, which is shown in the above SPI section, is used to store
the data being transmitted and received on the I2C bus. Before the microcontroller writes data to
the I2C bus, the actual data to be transmitted must be placed in the SIMD register. After the data is
received from the I2C bus, the microcontroller can read it from the SIMD register. Any transmission
or reception of data from the I2C bus must be made via the SIMD register.
Note that the SIMA register also has the name SIMC2 which is used by the SPI function. Bit SIMEN
and bits SIM2~SIM0 in register SIMC0 are used by the I2C interface.
Register
Name
SIMC0
SIMC1
7
SIM2
HCF
6
SIM1
HAAS
5
SIM0
HBB
Bit
4
3
2
1
— SIMDEB1 SIMDEB0 SIMEN
HTX
TXAK
SRW IAMWU
0
SIMICF
RXAK
SIMA
IICA6
IICA5
IICA4
IICA3
IICA2
IICA1
IICA0
—
SIMD
D7
D6
D5
D4
D3
D2
D1
D0
SIMTOC SIMTOEN SIMTOF SIMTOS5 SIMTOS4 SIMTOS3 SIMTOS2 SIMTOS1 SIMTOS0
I2C Registers List
Rev. 1.00
187
December 06, 2016