●I/O Circuit
○SDA Pin Pull-up Resister
The pull up resister is needed because SDA is NMOS open drain. Choose the correct value of this resister(RPU), by
considering VIL, IL characteristics of a controller which control the device and VOH, IOL characteristics of the device. If
large RPU is chosen, clock frequency needs to be slow. In case of small RPU, the operating current increases.
○Maximum Rpu
Maximum value of RPU is determined by following factors:
①SDA rise time determined by RPU and the capacitance of bus line(CBUS) must be less than tR.
Other timing must keep the conditions of AC spec.
②When SDA bus is High, the voltage A of SDA bus determined by a total input leak(IL) of the all devices connected to
the bus. RPU must be significantly higher than the High level input of a controller and the device, including a noise
margin 0.2VCC.
MICRO
COMPUTER
VCC-ILRPU-0.2 VCC ≧ VIH
CC IH
0.8V -V
RPU
PU
R
∴
≦
IL
A
SDA PIN
Examples: When VCC=3V IL=10μA VIH=0.7VCC
According to ②
IL
IL
0.8×3-0.7×3
10×10-6
PU
R
≦
THE CAPACITANCE OF
BUS LINE (CBUS)
[kΩ]
300
≦
○Minimum RPU
The minimum value of RPU is determined by following factors:
①Meets the condition that VOLMAX=0.4V, IOLMAX=3mA when the output is Low.
Fig.32 I/O Circuits
CC OL
V
-V
OL
≦ I
PU
R
CC OL
V
-V
PU
R
∴
≧
OL
I
② VOLMAX=0.4V must be lower than the input Low level of the microcontroller and the EEPROM
including the recommended noise margin of 0.1VCC.
VOLMAX ≦ VIL-0.1 VCC
Examples: VCC=3V, VOL=0.4V, IOL=3mA, the VIL of the controller and the EEPROM is VIL=0.3VCC,
3-0.4
3×10 -3
PU
R
According to ①
≧
[
]
Ω
≧ 867
and
VOL=0.4[V]
VIL=0.3×3
=0.9[V]
so that condition② is met
○SCL Pin Pull-up Resister
When SCL is controlled by the CMOS output the pull-up resistor at SCL is not required.
However, should SCL be set to Hi-Z, connection of a pull-up resistor between SCL and VCC is recommended.
Several kΩ are recommended for the pull-up resistor in order to drive the output port of the microcontroller.
14/16