English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (133/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
UPSD33xx
I2C interface
Table 81. S1SETUP register bit definition
Bit
Symbol
R/W
Function
Enable Sample Setup
EN_SS = 1 will force the SIOE to sample(1) a START condition
7
EN_SS
R/W on the bus the number of times specified in SMPL_SET[6:0].
EN_SS = 0 means the SIOE will sample(1) a START condition
only one time, regardless of the contents of SMPL_SET[6:0].
6:0
SMPL_SET
[6:0]
Sample Setting
– Specifies the number of bus samples((1) taken during a
START condition. See Table 82 on page 133 for values.
1. Sampling SCL and SDA lines begins after '1'-to-'0' transition on SDA occurred while SCL is high. Time
between samples is 1/fOSC.
Table 82. Number of I2C bus samples taken after 1-to-0 transition on SDA (START
condition)
Contents of S1SETUP
t(s) SS_EN bit
c 0
du 1
ro 1
P 1
te ...
ole 1
s 1
Ob ...
- 1
SMPL_SET[6:0]
XXXXXXXb
0000000b
0000001b
0000010b
...
0001011b
0010111b
...
1111111b
Resulting value for
S1SETUP
00h (default)
80h
81h
82h
...
8Bh
97h
...
FFh
Resulting number of
samples taken after 1-to-0
on SDA Line
1
1
2
3
...
12
24
...
128
ct(s) Table 83. Start condition hold time
rodu I2C bus speed
Range of I2C clock speed
(fSCL)
PStandard
Up to 100kHz
lete Fast
so High
101kHz to
400kHz
401kHz to 833kHz(1)
Ob 1. 833kHz is maximum for UPSD33xx devices.
Minimum START condition
hold time (tHLDSTA)
4000ns
600ns
160ns
Note:
Table 84 provides recommended settings for S1SETUP based on various combinations of
fOSC and fSCL. Note that the “Total Sample Period” times in Table 83 are typically slightly
less than the minimum START condition hold time, tHLDSTA for a given I2C bus speed.
Important: The SCL bit rate fSCL must first be determined by bits CR[2:0] in the SFR
S1CON before a value is chosen for SMPL_SET[6:0] in the SFR S1SETUP.
Doc ID 9685 Rev 7
133/272