Professional Documents
Culture Documents
RTC Interface: Microprocessors and Microcontrollers/Interfacing With 8051 Lecture Notes
RTC Interface: Microprocessors and Microcontrollers/Interfacing With 8051 Lecture Notes
Lecture Notes
RTC Interface
89C51
Vc
VCC
DS 1307
10
10
P1.0
6
P1.1
+
-
3.6V
SDA
SCL
BAT
4
GND
INTB\SQ
32.768K
Keyboard Interface-1
M7/V1/June 04/1
7437
Lecture Notes
748
KY CS
740
R0\
740
1
8
9
C
5
1
P2.
KEY
3
1
4
2
1
5
1
6
1
9
1
1
7
1
8
1
P2.
WR
ROW
ROW
ROW
Vc
COL-1
COL-2
743
1
2
3
4
5
6
COL-6
P10
P11
P12
P13
P14
P15
+5
7486
1
1
3
INT
Keyboard Interface -2
M7/V1/June 04/2
8
9
C
5
1
Lecture Notes
89C51
74F138
P1.7
A2
P1.6
A1
A0
P1.5
Vcc
10u
X
X
X
X
E3
ALE
O2
E2
E1
RD
OE
INT
Data
AD3-AD0
KB
74C922
4 bit
2 3
A B
D E
Y
Y
7
F
D--A
+
0.01uF
Keyboard Interface-2
Keyboard Interface-3
MC14051
10Kohms
X7
89C51
inhibit
X6
X5
5
X4
INT
X3
74ALS138
X2
P1.5
X1
X0
P1.4
P1.3
P1.2
P1.1
P1.0
M7/V1/June 04/3
Lecture Notes
89C511
5
P1.5
SCL
P1.6
D0
CS
P1.7
1
CCLK
CCL
VCC
VRF
Vin
Analog
Input
GND
M7/V1/June 04/4
Lecture Notes
5V
0.1u
VI
10u
89C51
AD7703
VD
P4.0
P4 1
SCLK
VOUTA
fail
+
DIN
LM393A
Pass
+
P4.2
SYNC
VOUT B
GND
REF
LM393A
74HC05
0.1u
Battery Backup
M7/V1/June 04/5
Lecture Notes
Power
230V
+12V
TrickleCharge
Circuit
+5V
1N19
4
Vcc of
89C51
MAX690
10
K
4.8 V
Ni-Cad battery
Varta Aafetronic
(100 mAh)
2
Vc
8 Vbat
Vo
Reset
Vss
Reset
Serial Interface
M7/V1/June 04/6
89C51
Lecture Notes
+12V +5V
1
16
VDD VCC
TX
14
Transmitted
148
148
15
RX
Vs
8
-
Received
GN
9
89C51
+5
Max 232
TX
RX
22uf
22uf
1
6
D
R
1
1
7
4
5
6
1
3
2
Transmitted
Received
+ 22uf
22uf
15
RS 232 interface can be realised with 1488 (transmitter) and 1489 (receiver) level
translator Ics
These ICs require +\- 12V supplies
Max 232 IC require only 5V and four external capacitors
LCD Interface
M7/V1/June 04/7
89C51
P2.7/A15
P2.6/A14
P2.5/A13
Lecture Notes
74F138
VCC
ALE
A2
A1
A0
E3
E2
E1
LM015
WR
R\W
74F373
L
AD7-AD0
RS
D7O
DB7-DB0
LED Interface-1
M7/V1/June 04/8
+5
Lecture Notes
MC14489
VCC
A
B
C
8
D
RX
3.6
E
F
G
H
89C51
P1.2
P1.1
P1.0
Data IO
Clock
Enable
Bank 5
Bank 4
Bank 3
Bank 2
Bank 1
M7/V1/June 04/9