ELEKTRONIKA RECLOSER
TUGAS AKHIR
Oleh:
Nama : Pebriansyah
No. Mhs : 01 524 088
2005
LEMBAR PENGESAHAN PEMBIMBING
ELEKTRONIKA RECLOSER
TUGAS AKHIR
Oleh:
Nama: Pebriansyah
Pembimbing Pembimbing II
ELEKTRONIKA RECLOSER
TUGAS AKHIR
Oleh:
Nama: Pebriansyah
No Mahasiswa: 01 524 088
Tim penguji
Medilla Kusrivanto, ST
Anggota I
Tito Yuwono,ST
Anggota 11
Mengetahui:
Dekan Fakultas Teknologi Industri
Indonesia
ABSTRAKSI
IV
MOTTO
VI
KATA PENGANTAR
Alhamdulillah, Puji syukur kepada Allah Tuhan semesta alam. Yang Maha
pengasih yang kasih-Nya tak pernah pilih kasih serta Maha Penyayang yang
sayang-Nya tak pernah terbilang. Ucapan syukur kehadirat-Nya akhirnya Penulis
dapat menyelesaikan Tugas Akhir ini sebagai syarat akhir untuk meraih gelar
Sarjana Teknik di jurusan Teknik Elektro Universitas Islam Indonesia. Sholawat
serta salam Penulis haturkan kepada junjungan umat, nabi penutup para nabi, rasul
penutup para rasul, Muhammad SAW beserta keluarganya, sahabatnya, dan
semua umatnya yang tetap sedia menjalankan ajaran Islam. Semoga kita termasuk
di dalamnya. Amin.
Tugas Akhir ini adalah satu langkah dari sekian ribu langkah menuju
kesempurnaan maka dari itu sangat diharapkan ada rekan-rekan Penulis yang
meneruskan apa yang sudah Penulis lakukan hingga tahap ini.
Dengan berakhirnya Tugas Akhir ini, maka pada kesempatan ini ijinkanlah
Penulis mengucapkan terima kasih banyak kepada:
2. Ibu Ir. Hj. Budi Astuti, selaku Ketua Jurusan Teknik Elektro Universitas
Islam Indonesia.
Akhir.
VI1
4. Bapak Medilla Kusriyanto, ST selaku Dosen Pembimbing II Tugas Akhir.
memberikan ilmunya.
7. Bapak dan Ibuku yang telah memberikan segala dukungan terbesar bagi
Penulis.
8. Saudara-saudaraku Fitra, Tusda, Ujang, Firman, Eko, dan Lalit, serta Oom
dan angkatan '01 lainnya yang tidak dapat saya subutkan satu persatu),
thanks.
tersusunnya laporan ini. (Hanya tulisan ini yang dapat aku persembahkan
untuk kalian)
Tugas Akhir ini masih jauh dari sempurna, walaupun Penulis sudah
Vlll
saran yang mendukung kepada semua pihak yang membaca Laporan Tugas .Akhir
ini.
SWT.
Penulis
IX
TAKARIR
Bit adalah ukuran terkecil data digital. Bit biasanya hanyalah merupakan
pilihan antara 0dan 1. Dimana 0biasanya berarti 'Off dan 1berarti 'On'.
Byte
Chip
Sebuah kepingan IC
Clock
Emulator
Ground
Heksadesimal
IC (Integrated Circuit)
Input
Interupsi
Konversi
Proses perubahan dari suatu besaran tertentu menjadi besaran yang lam
MCS51
xi
Mikrokontroler
Multiplexer
Port
Sebuah jalur atau pmtu yang dapat digunakan sebagai masukan atau
keluaran
Register
RST (Reset)
XI1
SPI (Serial Peripheral Interface)
Antar muka untuk pemrograman serial
Software
vcc
xiu
DAFTAR ISI
Halaman
HALAMAN JUDUL
HALAMAN MOTTO
VI
HALAMAN PERSEMBAHAN
Vll
RATA PENGANTAR
TAKARIR
XIV
DAFTAR ISI
XV111
DAFTAR TABEL
XIX
DAFTAR GAMBAR
1
BAB I PENDAHULUAN
1
1.1. Latar Belakang Masalah
2
1.2. Rumusan Masalah
2
1.3. Tujuan Penelitian
XIV
4
BABU DASARTEORI
2.2.l.Trafo Arus
n
2.5. TRIAC 23
24
2.6. Optocoupler
xv
~>9
2.7.5. Register
32
3.2.1. Sensor Arus
34
3.2.2. Rangkaian ADC 0804
36
3.3. Sistim Minimum
3.3.1. MikrokontrollerAT89C51 36
37
3.3.2. Rangkaian Clock
38
3.4. Rangkaian Penampil
39
3.5. PemutusArus
40
3.6. Switch
51
4.5. Penguj ian Rangkaian Penampil
4.6. Pengujian Rangkaian Secara Keseluruhan 52
xvi
4.6.1. Pengujian Beban Beriebih
5.2. Saran
DAFTAR PUSTAKA
LAMPERAN
XVI1
DAFTAR TABEL
Halaman
19
Tabel 2.1 Register Interrupt Enable (IE)
20
Tabel 2.2 Register Interrupt Priority (IP)
21
Tabel 2.3 Register Vektor pada saat Interupsi
12
Tabel 2.4 Kombinasi operasi mode timer I dan timer 0
22
Tabel 2.5 Register Timer Mode Register (TMOD)
Tabel 2.6 Register Timer Control Register (TCON) 22
Tabel 2.7. Konfigurasi Pin LCD M1632 29
Tabel 4. 1. Hasil Pengukuran Sisi Primer dan Sisi Sekunder Trafo Arus 44
Tabel 4. 2. Data hasil konversi ADC0804 50
Tabel 4. 3. Hasil Pengamatan Recloser 52
XVlll
DAFTAR GAMBAR
Halaman
5
Gambar 2. 1. Gambaran Fluks pada Inti Trafo
9
Gambar 2. 2. Tampilan Pin ADC 0804
9
Gambar 2. 3. Rangkaian aplikasi ADC0804
10
Gambar 2. 4. Diagram blok mikrokontroler AT89C51
11
Gambar 2.5. Konfigurasi Pin Mikroprosessor AT89C51
23
Gambar 2.6 Konfigurasi TRIAC
24
Gambar 2.7 Referensi Sinyal Masukan dan Keluaran TRIAC
25
Gambar 2.8 Optocoupler
26
Gambar 2.9. Diagram Blok LCD Ml632
27
Gambar 2.10. Alamat DDRAM M1632
28
Gambar 2.11. Pola Karakter CGROM
32
Gambar 3.1. Blok Diagram Alat Elektronika Recloser
34
Gambar 3. 2. Trafo Arus dan Rangkaian Penyearah
35
Gambar 3. 3. Hubungan ADC0804 ke Mikrokontroler
35
Gambar 3.4. Proses konversi ADC0804
37
Gambar 3.5. Rangkain Perencanaan Input/Output
38
Gambar 3.6. Rangkaian Clock
38
Gambar 3.7. Rangkaian Penampil
39
Gambar 3.8. Rangkaian Pemutus Arus
xix
40
Gambar 3.9. Rangkaian Switch
XX
BAB I
PENDAHULUAN
untuk meringankan suatu pekerjaan rumah tangga, maupun alat-alat industri. Tapi
tidak menyampingkan dari kebutuhan akan listrik, juga mengetahui bahaya yang
disebabkan olehlistrik tersebut yang sangat merugikan penggunanya. Olehkarena
a. Terjadinya kejut listrik arus yang berlebihan melalui tubuh akan dapat
mengakibatkan kematian.
c. Timbulnya api disebabkan oleh terjadinya hubung singkat antar fasa atau
atau penting.
Tugas akhir ini hanya membuat alat atau sistem pengaman jala-jala listrik
sebagai:
3. Interval: 30 sekon
4. Reset Time : 3x
Maka hanya membuat dalam alat dalam batasan tersebut dan sebagai patokan
untuk membuat atau sistim pengaman instalasi listrik.
BAB IPENDAHULUAN
Berisi tentang deskripsi uraum isi tugas akhir yang meliputi latar belakang
masalah, rumusan masalah, tujuan, batasan masalah, manfaat penyusunan
mulai dari diagram blok, prinsip kerja, serta pembahasan software sebagai
otak system.
BAB IV PEMBAHASAN
Berisi tentang pengukuran dan uji coba alat yang dijadikan proyek tugas
akhir.
DASAR TEORI
penghubung, dan pesawat pembantu yang lain yang sifatnya tetap baik untuk
rendah atau instalasi tegangan tinggi, tergantung pada tegangan kerja dari pda
sistem kerja tersebut. Menurut perjanjian yang ada dalam peraturan, tegangan
rendah dimaksudkan tegangan listrik yang setingginya 300 volt, sedangkan untuk
tegangan lebih dari 300 volt, di golongkan dalam tegangan tinggi. Sesungguhnya
di dalam instalasi penerangan tidak hanya penerangan saja, tetapi sering juga
terdapat instalasi tengan seperti kipas angin, seterika listrik dan lain lain, tetapi
dalam hal ini pemakaian tenaga dalam persentase yang kecil bila dibandingkan
terhadap pemakaian penerangan.
Sensor Trafo Arus merupakan bagian dari sistem yang mengubah arus AC
menjadi arus DC. Sensor ini digunakan untuk mendeteksi perubahan arus. Arus
yang sudah dideteksi tersebut kemudian akan diubah kebentuk tegangan DC.
Trafo Arus adalah sensor arus yang mempunyai dua buah beliatan yakni
sisi primer dan sisi sekunder. Sisi primer dihubungkan serial ke sumber tegangan
bolak balik maka akan timbul fluks pada inti trafo, dan ternyata fluks ini juga
dilingkupi oleh belitan di sisi sekunder. Fluks ini disebut fluks bergandeng.
("muatan fluks"). Bila sisi sekunder tehubung dengan beban sehingga merupakan
ragkaian tertutup, maka akan ada arus y ang mengalir pada sisi sekunder. Berarti
dengan a.
Perbandingan jumlah lilitan sisi primer dan lilitan sisi sekunder, pada trafo arus
ialah:
N=100N,
p
(2.1)
E N
^L =^ =a (2.2)
E. Ns
.(2.3)
E2 V2 N2
Jika rugi-rugi trafo tidak diperhitungkan dan efisiensi dianggap 100%, maka:
Secara praktisfaktor daya primer (PF1)= faktor daya sekunder (PF2), maka:
El xf = E2xl2 (2.5)
Atau
F I
^ =± =a (2.6)
E2 /,
1. Resolusi
merupakan besaran analog terkecil yang masih dapat dikonversi menjadi satuan
3. Waktu konversi
dan konsumsi daya yang rendah. Karenanya ADC ini banyak digunakan pada
WR — 3 18 —DBO(LSB)
CLKIN — 4 17 — DB1
INTR — 5 16 — DB2
6 15 — DB3
V|n(+)~
7 14 — DB4
V,n(")-
AGND — 8 13 — DB5
9 12 — DB6
W2~
DGNO — 10 11 —DB7(MSB)
AS
I
-Wir
-•b
"HP
tin «
• '""J?
tcssofi \_7 2»S
»* -i
CXI
CK
>5Er JtCrtOS —
C«l
C«n
w
HtV
Erasable Read Only) sehingga program yang telah ditanam langsung kedalam
memiliki ruang alamat dan memori data dan memori program yang terpisah.
10
5. Serialportfull duplex
---M:HWt---t-Hrmff
fO—[ ^yl [^El I
^^n
I I
L-st -mw+s-'----JfiH-m-i?-
r . .J
=> :c i: a ::
:= 1=:.: ^:
»- ' C :
=> : c : • • 3 s: i-
»• iC ; := a =: : •.2 I
: = d =: - •. r •
' !C:
:a n = : -: 4.::
» -: C "
; ;, 3 : ; : *.2 2
» -C :
:: 3 = : " *.-'
1--C 5
:Kf,2. =>: 3C : :• 3TT —
-?.:, =>1 <C •! :: J^.£ =S J •
:Tf": »: - c * :- 3 f : . : ».l
*-a.:c ; :; 3=-- ; a • ;•
X-*.' C : :: 3 =:. i a;
•jh3C :: :-if:: A»'
Port 1berfungsi sebagai I/O biasa atau menerima low order address bytes
selama pada saat flash programming. Port ini memiliki internal pull up
dan berfungsi sebagai input dengan memberikan logika 1. Sebagai output
port ini dapat memberikan output sink ke empat buah input TTL.
2. Nomor/wi9(RST)
Reset akan aktif dengan memberikan input high selama 2siklus (cycle).
3. Port 3,nomor pin 10 sampai dengan 17 (yang terdiri dari P3.0 sampai
dengan P3.7)
12
Sebagai I/O biasa port 3 mempunyai sifat yang sama dengan port 1
maupun port 2, sedangkan sebagai fungsi spesial port-port ini mempunyai
keterangan sebagai berikut:
5. Nomorpin 19 (XTAL1)]
6. Nomorpin 20 (GND)
Pin-pin dapat juga berfungsi sebagai A8 s/d A15. Port 2 sebagai I/O biasa
atau high order address, pada saat mengakses memori secara 16 bit. Pada
saat mengakses memori secara 8 bit,port ini akan mengeluarkan isi dari
P2 special function register. Port ini mempunyai internal pull up dan
berfungsi sebagi input dengan memberikan logika 1. Sebagai output port
ini dapat memberikan output sink ke empat buah input TTL.
8. Nomor pin 29 (PSEN)
Pin ini berfungsi pada saat mengeksekusi program yang terletak pada
memori ekstemal. PSEN akan aktif 2kali setiap siklus (cycle).
9. Nomorpin 30 (ALE)
Pin ini juga dapat sebagai altematifPROG pin ini dapat berfungsi sebagai
Address Latch Enable (ALE) yang Me-latch low byte address pada saat
mengakses memori ekstemal. Sedangkan pada saat Flash Programming
(PROG) berfungsi sebagai pulse input untuk pada saat mengakses memori
ekstemal. Sinyal clock pada/>/« ini dapat pula di-disable dengan men-set
bit 0dari Special Function register (SFR) dialamat 8EH.
10. Nomorpin 31 (EA)
Pin ini dapat juga sebagai VP. Pada kondisi low maka pin ini akan
berfungsi sebagai EA, yaitu mikrokontroller akan menjalankan program
yang ada pada memori internal, dan pada saatflash programming pin ini
kan mendapatkan tegangan 12 Volt (VP).
tersebut. Pada fungsi sebagai low order multiplex address / data pointport
ini akan mempunyai internal pull up Pada saat flash programming
diperlukan ekstemal/wff up terutama pada saat verivikasi program.
12. Nomor pin 40 (VCC). Berfungsi sebagai sumber tegangan +5 Volt (power
supply).
Memori data yng dimiliki AT89C51 sebanyak 128 byte. Memori internal
terbagi dua bagian yaitu :internal RAM dan Special Function Register (SFR).
AT89C51 mempunyai struktur atau organisasi memori yang terdiri beberapa
bagian, bagian-bagian tersebut terdiri atas :
15
Pengalamatan bit (Bit Addressable) RAM pada alamat 20H hingga 2FH dan
hanya dengan sebuah instruksi saja setiap bit dalam area ini dapat due/.
clear, AND dan OR. Dengan adanya sistem bit addressable RAM, proses
yang seharusnya dijalankan dengan tiga siklus (cycle) dapat digantikan
dengan sebuah instruksi yang hanya membutuhkan satu siklus saja.
3. General Purpose RAM
RAM untuk keperluan umum dapat diakses dengan pengalamatan langsung
maupun tak langsung.
SFR DPL dan DPH bekerja bersama-sama membebtuk 16 bit yang dikenal
dengan Data Pointer (DPTR). Data Pointer fDPTR) digunakan dalam
operasi yang melibatkan memori ekstemal.
timer AT89C51.
Dengan SFR ini program dapat dimodifikasi timer sebagai timer 16-bit.
interrupt.
SFR ini digunakan untuk menyimpan bilangan dari bit-bit yang penting
Intempsi dengan prioritas rendah dapat diintempsi oleh prioritas yang lebih
tinggi, tetapi tidak untuk prioritas yang sama (sama rendahnya). Intempsi dengan
prioritas yang lebih tinggi tidak dapat diintempsi oleh sumber intempsi yang lain.
Tabel 2.2 Register Interrupt Priority (IP)
Counter) pada saat terjadi intempsi, sehingga nilai tadi akan menuju ke alamat
Ekstemal 0 mo 0003H
Pada AT89C51 mempunyai 2 buah timer yaitu timer 0 dan timer 1. Masing-
mempunyai alamat 89H, THx dan TLx mempunyai alamat 8AH sampai 8DH dan
TCON mempunyai alamat 88H. TCON adalah register yang dapat diakses per-bit
0 1 1 Sebagai Timer/Counter
1 1 3 Sebagai timerterbagi
^_ J V_ _^
TimerMode 1 TimerMode 0
Keterangan:
GATE : Timer ini akan berfungsi timer 0 jika bit INTO diset pada
pin P3.2 dan timer 1 jika bit INTI diset pada pin P3.3.
C/T : Sebagai pemilih fungsi dari timer (0) dan counter (1).
L J L J V. y
TCON ini hanya mempunyai 4-bit mode timer, yang terletak pada alamat
88H.
23
Keterangan :
2.5 TRIAC
mengantarkan arus 2 arah (bi directional). Triac tersusun dari P-N junction yang
komplek atau secara teori triac terdiri dari 2 buah SCR yang digabungkan. Triac
mempunyai 3 buah kaki yaitu MTl, MT2 dan gate. Dalam aplikasinya triac biasa
X~z^ SZ
Tegangan picu ams positif yang masuk pada kaki gate akan menyebabkan
MT2 akan menghambat ams yang melewatinya dan menyebabkan kaki MTl
mengalirkan ams listrik. Hal ini juga berlaku saat kaki gate mendapatkan picu
24
ams yang lebih negatif atau 0, maka MT2 akan mengalirkan ams dan MTl
menahan ams.
HI.
aV
V
4 an G|_
^
QUI QlV
yr^
2.6 Optocoupler
dari LED Infra merah sebagai sumber cahaya dan phototransistor sebagai
digital dan juga sebagai isolator diantara kedua sirkit. Hal ini disebabkan karena
menyebabkan terjadinya sebuah transver energi listrik dalam satu arah, dari IRED
25
U1
"^"XZZX MOC3021
LCD (Liquid Crystal Display) adalah suatu display dari bahan cairan
digunakan pada alat ini adalah LCD Ml632. Ml632 mempakan modul LCD
dengan tampilan 16 x 2 baris dengan konsumsi daya yang rendah. Modul ini
DDRAM (Display Data Random Access Memory), dan juga memiliki 3 bit
control yaitu E yang mempakan input clock, R/W sebagai input untuk memilih
read atau write dan RS sebagai register select, juga memiliki 8 bit data yaitu DBO
sampai DB7. Diagram blok LCD M1632 ditunjukkan pada gambar 2.9.
26
llllllllllllllll
llllllllllllllll
COMMON
SIGNAL
A K LCD
DB0.._DB7 < } >
N V V
SEGMENT
w
/\ y>\
R5 SIGNAL Z
^ ^
P.W w CONTROLLER
E —p SEGMENT
DflVER
SEWAL DATA
VDD
VSS " 1f
VLC r
TMHIO SIGNAL
mikrokontroler ke HD44780 pada saat proses penulisan data atau tempat status
perintah, R/W berlogika '0' yang menunjukkan proses penulisan data akan
dilakukan secara 8 bit dan diawali sebuah pulsa logika ' 1' pada E clock.
menuliskan atau membaca data ke atau dari DDRAM. Penulisan data pada
register ini akan menempatkan data tersebut ke DDRAM sesuai dengan alamat
yang telah diatur sebelumnya. Penulisan data pada register data dilakukan untuk
mengirimkan data yang akan ditampilkan pada LCD. Prosesnya diawali dengan
27
membuat RS berlogika ' 1' yang menunjukkan akses ke register data, kondisi R/W
diatur pada logika '0' yang menujukkan proses penulisan data, kemudian memberi
sebuah pulsa ' 1' pada E clock.
Contoh, untuk karakter 'A' atau 41h (0100 0001b) yang ditulis pada alamat 00h,
maka karakter tersebut akan tampil pada baris pertama dan kolom pertama dari
LCD. Apabila karakter tersebut ditulis pada alamat 40h, maka karakter tersebut
01 02 03 0-4 OS 06 07 OS
For
shift l»rt
41 42 43 44 45 46 47 48
27 OO o-i 02 03 04 OS oe
sriift r i g h t
67 40 -41 42 43 44 45 46
karakter dimana bentuk dari karakter dapat diubah-ubah sesuai keinginan, tetapi
memori ini akan hilang saat power supply tidak aktif, sehingga pola karakter akan
hilang.
karakter dimana pola tersebut sudah ditentukan secara permanen dari HD44780
sehingga pengguna tidak dapat mengubah lagi. Tetapi karena ROM bersifat
28
permanen, maka pola karakter tersebut tidak akan hilang walaupun power supply
tidak aktif.
Sebagai contoh yakni pada saat HD44780 akan menampilkan data 41h
yang tersimpan pada DDRAM, maka HD44780 akan mengambil data dialamat
41h (0100 0001b) yang ada pada CGROM yaitu pola karakter 'A'. Gambar 2.11.
dibawah ini adalah pola-pola karakter yang tersimpan dalam lokasi-lokasi tetentu
dalam CGROM.
1111
E^-Jk2 oeoo 0001 •010 0811 0100 out 0110 0111 1000 1001 1010 1011 1100 1101 1110
X
a fl •a & o
xkiocOOOO MM
• 0 ft P p R IIa
•a-ar-
nraOOOl (2)
* 1
1 A Q a •°1 A J1 i + ^ N a n dh
Hi r * 2 R f)
CC II
xxxx0010 (3) 2 B R b r £t
-ar •a"Br
3
R rt 3 . a
rr
nutxOOH (*) # 1 n 7Lf -ji.
nxxlOOO CD
t < F* H a h X V * * frt E £ #
^^ —a1"
•
i
»xx10O1 (2)
4* > 9 I V i y u e B £i e u
A Jf^ X
berikut:
1 VCC +5V
2 GND ov
8 DI Data Bus 1
9 D2 Data Bus 2
10 D3 Data Bus 3
11 D4 Data Bus 4
12 D5 Data Bus 5
13 D6 Data Bus 6
14 D7 Data Bus 7
2.7.5. Register
menggunakan kaki RS. Pada saat RS berlogika '0', maka register yang diakses
adalah register perintah dan pada saat RS berlogika T, maka register yang
menempatkan data tersebut ke DDRAM sesuai dengan alamat yang telah diatur
sebelumnya.
tampilan LCD, inisialisasi dan mengatur Address Counter maupun Address Data.
berlogika '0' yang menunjukkan proses penulisan data. Sedangkan penulisan data
pada register data dilakukan untuk mengirimkan data yang akanditampilkan pada
LCD. Proses diawali dengan adanya logika ' 1' pada RS yang menunjukkan akses
ke register data, kondisi R/W diatur pada logika '0' yang menunjukkan proses
penulisan data. Pengiriman data dari data bus DB4 - DB7 diawali dengan
pemberian pulsa logika ' 1' pada E clock dan diakhiri dengan pulsa logika '0' pada
E clock.
BAB in
PERANCANGAN ALAT
3.1. Pendahuluan
Alat tersebut akan bekerja mendeteksi arus yang pada instalasi secara terus
menems dan memutuskan arus yang lewat pada instalasi pada saat nilai arus
kurang dari 1,8A, maka recloser dalam keadaan on akan melewatkan arus pada
instalasi, dan saat nilai arus lebih dari 1,8Amaka recloser dalam keadaan offatan
tidak melewatkan arus pada instalasi, recloser akan kembali on atau arus lewat
kembali setelah 30 detik kemudian, dan mengecek ulang nilai arus pada instalasi,
jika nilai arus kurang dari 1,8 A, maka recloser tersebut akan on terus. Dan jika
arus lebih dari 1,8 A, maka recloser akan q^dan setemsnya. Apabila recloser
telah memutuskan arus sebanyak 3 kali, maka recloser tersebut akan off terns,
terbagi menjadi 5 buah blok diagram utama yaitu : pendeteksi ams sebagai sensor
yang mendeteksi nilai beban yang digunakan dan terdiri dari rangkaian analog dan
pengubah analog ke digital, pemutus arus sebagai pemutus ams apabila terjadi
beban beriebih, penampil LCD sebagai petunjuk besar ams yang terdeteksi,
mikrokontroller sebagai otak utama dari sistem, switch sebagai saklar untuk
31
32
PENAMPIL LCD
PEMUTUSARUS
PENDETEKSIARUS
AT89C51
RESTART
Rangkaian deteksi yang digunakan pada alat ini terdiri dari sensor arus
dan rangkaian ADC (Analog to Digital Converter). Sensor arus tersebut sebagai
pengubah besaran magnetis menjadi besaran listrik.
magnetis menjadi besaran listrik. Pada bab ii telah diterangkan sistim kerja dari
trafo ams tersebut yang mempunyai dua belitan yakni belitan primer dan belitan
sekunder, karakteristik alat tersebut hampir sama dengan sistim kerja dari alat
ukur Tang Meter, yang mana pada sisi primer terhubung seri dengan jala-jala
PLN.
lilitan primer sama dengan 100 kali jumlah lilitan sekunder. Maka dapat
ditentukan tegangan primer dan sekunder, maupun arus yang lewat pada belitan
primer dan belitansekunder.
Untuk menentukan nilai tegangan maupun arus pada dua sisi trafo ams,
maka lihat persamaan 2.1 sampai dengan 2.6. Jika nilai arus pada belitan primer
sebesar 1,8 A, maka nilai arus pada belitan sekunder yang belum terbebani dapt
diketahui dengan hasil sebagai berikut, dengan menggunakan persamaan 3.1.
L=?LJ± di)
/, N, Vs
/ J>N>
*s
I J*A
s 100
Maka, /, = 0.01%
Ampere « 1%mA
searah (d.c).
filter. Supaya tegangan tidak terlalu besar maka dibuat pembagi tegangan dengan
berikut:
VTh=^VxVcc
K, +K2
(3-2)
Agar tegangan yang masuk pada ADC tidak terlalu besar dari batas
OUT FASA 4
S
10uF/16V 100rf_100rf_
•d R9
10K)
5.1
DIODE ZENER
Rangkaian ADC 0804 ditunjukkan pada Gambar 3.3. Hal yang paling
penting dalam suatu perancangan rangkaian ADC adalah resolusi. Pada
persamaan 2.1 dapat diketahui nilai resolusi ADC0804. Jika tegangan refrensi
ADC sebesar +5 volt danjumlah bitADC 8 bit. Maka besamya resolusi dari ADC
1
r = •5 Volt = 0.0196 Volt * 0,02 Volt
28-l
ADC =^ (3-3)
r
r adalah resolusi
Jika input analog diberi 0,1 volt maka dengan persamaan 3.3 didapat
keluaran binemya = 0000 0101 (0,1 volt/0,02 volt = 5 maka binemya = 0000
0101).
35
U1
INPUT! -HN
-IN
R1 VCC
_L 10 K T_
19
VREF/2
•CLKR
'CLKIN
CS.
C1
RD_
WR INTR
150 pF
ADC08O4
\ J
f V"
/
V /
\ f
-d^
Dari gambar diatas diketahui bahwa konversi dimulai saat pin CE rendah
rendah berarti konversi dimulai. Proses konversi selesai jika INTR berlogika
36
membuat RD rendah sehingga data hasil konversi dikirim ke jalur data bus
mikrokontroler (D0-D7).
sebagai berikut:
• P2.4 Berfungsi untuk jalur register select 0 untuk Register Perintah dan 1
• P2.5 berfungsi untuk jalur Enable Clock LCD,logika 1 untuk setiap kali
vcc
Q
U1
39 21 D34
PO C/ADO P2.0/A3
38 22 D3b
PO.VAD1 P2.1/A9 23 Udtt
r_37
P0.2/AD2 P2.2/A10 TTST
36 24
P0.3/AD3 P2.3/A11
35 25 R3
P0.4/AD4 P2.4/A12 26 b
34
F0.5/AD5 P2.5/A13
33 27
P0.6/AD8 P2.6/A14
32 28
P0 7/AD7 P2.7/A15
DO 10 OPTOCOUPLER
F1. P3.0/RXD Ti—57OTA1?
T3T
P1 P3.i;TXD
12
P1. p3.2i'iMa 13
P1. P3.3/INT1
T34- 14
P1. P3.4/TO
135" 15
P1. P3.5/T1
T33- 16
P1.6 P3.6/WR
irr 17
PI.7 P3.7/RD
19 29
XTAL1 PSEN
18
XTAL2 30
RST ALEVPROG
VCC Q
12MHz ? 31
EAVPP o
H|> v C4
10UF/16V
AT89C51
3RYSTA.
R2
C2 • C3-T-* 10K
30pF 30pF
atau disebut juga oscilator on-chip yang digunakan sebagai sumber detak (clock)
tersebut maka hams dihubungkan dengan kristal dengan frekuensi 12 MHz, pada
XTAL1
OND
Untuk tampilan data arus yang lewat pada jala-jala PLN, setelah di ubah
menjadi digital, maka komparator akan memerintahkan mikrokontroler untuk
memproses dan kemudian mengaktifkan rangkaian display untuk menampilkan
data LCD. Tampilan di sini menggunakan LCD, dimana tampilan tersebut
bentuknya bempa nilai arus yang terdeteksi dengan satuan amperedan petunjuk
keadaan alat tersebut bempa kalimat "normal lood" pada keadaan normal, dan
vcc
03? H
=TJCV- 1 I vcc
036 li
30 1/-
035 i: ^
=0 IV- '2.1' «in
0^ 11
dm i:
; 34 Ji2 9
-os-
OiO
s
7
LCD 't7
£ «
^3 O.HV£i i r—
? >',\ 5
pS '-T/-P }£ <
!
•'S3>.
12fcKZ
o
CRYSTA,
; ? R2
--p*C2 *~r*£* > 10K
pOpF 30pF >
Pemutus ams jala jala PLN pada perancangan ini menggunakan TRIAC atau
dioda 2 arah yang dihubungkan ke optotriac MOC 3021. Pada perancangan ini
ams 1,8 Ampere, jadi TRIAC yang digunakan adalah Q4010 yang mempunyai
Pada prinsipnya cara kerja dari rangkaian ini adalah seperti saklar pada
umumnya. Ketika pin P3.0 diberi logika tinggi maka ams akan mengalir ke led
yang ada didalam optotriac dan menjenuhkan TRIAC yang ada pada optotriac
dan membuat TRIAC membuka sekatan dan menghidupkan beban sebesar 1,8
Ampere.
vcc
_2_
R4 R5
470 1K
D6
LEO,
Jt
^wTSZZS
114 MCC302-
3.6 Switch
agar kerja dari alat tersebut sempurna, haruslah diberi tegangan picu. Apabila
switch tersebut di tekan, akan menghubungkan/?m P3.1 ke Ground.
VCC
p
U1
§
-, 39 21
38
PO. 0/ADO H P2.C/A8 22
P0.1.'AD1 > P2.1''A9
37 23 ~
P0,2'AD2 P2.2/A10
36 24.-,
P0.3/AD3 P2.3/A11
35 25 X VCC
P0.4/AD4 P2.4A12
34 26
P0.5/AD5 P2.5/A13
33 27^:
P0S/AD6 P2.5.'A14
32 28
P0.7/AD7 P2.7/A15
10
P1.0 P3 0/RXD
11
P1.1 P3.1/TXT)
12
P1.2 P3.2.'liiiQ 13
P1.3 re.a'iNTi
14
P1 4 P3.4TO
15
PI. 5 P3.5.T1
16
PI S P3.5,"iS.
~ 8_ 17
P1.7 P3.7/RD
19 29 „
XTAL1 PSEN
18
XTAL2
30
RST =.le;prog
VCC Q
31
EA'VPP S
12MHz
AT89C51
H>
;rystai.
;C4
10UF/16V
8
AT89C51, dan program tersebut disimpan dalam EPROM. Umtan kerja sistem
YES
SELESAI
alat, sehingga dapat diketahui sejauh mana alat dapat bekerja. Pengamatan yang
terpenting adalah bagian yang cukup kritis. Dengan mendapatkan parameter hasil
pengujian tersebut dapat disimpulkan rangkaian secara keseluruhan dan cara kerja
Pengamatan dan pengukuran pada bab ini dilakukan pada beberapa tingkat
sebagai berikut:
5. Rangkaian Penampil
dengan jala-jala listrik. Pada sisi sekunder akan mengeluarkan ams bolak balik
yang belum terbebani. Kemudian ams bolak balik (a.c) tersebut akan diubah ke
tegangan satu arah (d.c) dengan menggunakan penyearah gelombang penuh. Pada
42
43
rangkaian pendeteksi arus ini terdapat rangkaian pembagi tegangan, agar tegangan
Pada gambar 4.1 dapat dilihat bagian-bagian rangkaian pendeteksi ams, terdiri
rangkaian tersebut, maka dapat menggunakan persamaan 2.1 sampai dengan 2.6
untuk menghitung nilai tegangan sekunder (Vs) dan ams sekunder (Is) yang
belum terbebani.
Hasil pengukuran pada sisi primer dan sisi sekunder trafo ams diperlihatkan
Tabel 4. 1. Hasil pengukuran sisi primer dan sisi sekunder trafo ams
Sisi Primer Trafo Arus Sisi Sekunder Trafo Arus
No Daya (watt) Arus (Ampere) Vs Vd1 Vth1
1 37 0.16 0.1 0 0
2 61 0.26 0.2 0.6 0.03
3 99 0.43 0.4 0.1 0.05
4 137 0.6 0.6 0.2 0.11
5 174 0.77 1.01 0.8 0.39
6 198 0.88 1.34 1.41 0.65
7 235 1.04 2 2.21 1.33
8 258 1.15 2.52 3.85 1.86
9 298 1.32 3.38 5.76 2.8
10 332 1.49 4.25 7.66 3.6
11 369 1.66 5 9.3 4.2
12 407 1.82 5.8 10.2 5.1
13 430 1.93 6.4 11.6 5.8
14 467 2.09 7 13 6.6
Perbandingan ams sisi primer dengan tegangan sisi sekunder trafo ams
2.5
£ 1.5
a>
a.
E
4 1
0.5
0 -
0.1 0.2 0.4 0.6 1.011.34 2 2.52 3.38 4.25 5 5.8 6.4 7
Vs(Volt)
Gambar 4.2. Grafik ams sisi primer dan tegangan sisi sekunder
45
Dari gambar 4.2 dapat dianalisa bahwa nilai tegangan pada sisi sekunder
akan mendekati linearitas dengan ams pada sisi sekunder trafo ams. Tetapi
tegangan pada sisi sekunder tidak terlalu stabil. Faktor yang mempengaruhi nilai
tegangan sisi sekunder tidak stabil adalah kelim oleh manusia atau salah dalam
pembacaan saat pengukuran.
lilitan berbanding, 100N, =Np, dan arus primer sebesar 1,8 A, maka dapat
N.
I J>N>
1.8.1
/, =•
1 100
/ =0,018A «\SmA
penyearah jembatan. Penyearah ini tidak memerlukan trafo yang mempunyai titik
CT seperti penyearah gelombang penuh sebelumnya. Skematik rangkaian
penyearah ini digambarkan sebagai berikut.
D1 D2
•tt- Q1
Beban
'St
31_ <J»
AC 220
D3 Q2 D4
-¥r —•-
*
lebih positif daripada T2, ams mengalir dari Tl menuju ke titik Ql. Kemudian
dari Ql ams melewati D2 menuju ke titik B2. Dari B2 ams melewati beban dan
menuju ke BI. Dari BI ams ke D3 dan tidak ke DI. Kemudian dari D3 ams ke
Q2 dan kembali lagi ke trafo melewati titik T2. Sebaliknya ketika T2 mempunyai
polaritas yang lebih positif daripada Tl maka ams mengalir dari T2 ke Q2.
Kemudian ke B2 dengan terlebih dahulu melewati D4. Arus melewari beban dari
Ql dan kembali lagi ke trafo melalui titik Tl. Jadi D2 dan D3 menghantar pada
ams.
Tegangan
input (Vin)
n WaVtii
Tegangan;
output (Vbuf
V
Wattii
Gambar 4.4. Sinyal masukan dan keluaran penyearah gelombang penuh dengan 4
dioda
47
tegangan yang diterima oleh beban hanya setengah dari tegangan inputnya,
penyearah jembatan akan menerima tegangan yang tingginya sama dengan
tegangan sumbemya. Nilai tegangan DC dari penyearah gelombang penuh dengan
4 dioda ini adalah:
2V , ,
Vdc=±>^ (4.1)
penyearah gelombang penuh baik dengan 2 dioda maupun dengan 4 dioda akan
diperoleh nilai frekuensi hasil penyearahan dua kali dari frekuensi sumber
sinusnya.
yang digunakan adalah dioda ideal. Tetapi apabila digunakan pendekatan dioda
yang lain maka akan muncul drop tegangan pada dioda sehingga tegangan yang
akan diterima beban akan berkurang. Selain itu perlu diperhatikan juga mengenai
batas kemampuan dioda dalam menghantarkan ams. Jangan sampai ams yang
mengalir melewati batas kemampuan dioda. Ams yang melewati dioda pada
penyearah setengah gelombang nilainya sama dengan ams yang melewati beban
V
T _
in — '
DC (4.3)
R beban
dioda hanya dilewati setengah periode saja maka arus rata-rata yang melewati
dioda adalah setengah dari ams rata-rata yang melewati beban. Ams rata-rata
beban
'DC
(4.4)
R beban
ID =
beban DC
(4.5)
2-R beban
Hasil perhitungan dengan menggunakan persamaan 4.2. dapat dilihat pada gambar
4.5.
-Vd1
-Vth1
Vd2
Vth2
2 3 4 5 6 7 8 9 10 11 12 13 14
Dengan;
Vdl = nilai hasil pengukuran tegangan penyearah pada pendeteksi ams
Vtl = nilai hasilpengukuran tegangan theveninl pembagi tegangan pada
pendeteksi ams
Dari data yang telah didapatkan melalui hasil pengukuran dan perhitungan
tidak sama atau mempunyai perbedaan nilai, ini dipengamhi oleh berapa faktor
yakni; ketelitian dan kecermatan dalam pengukuran, alat ukur yang tidak normal,
dll.
2.7.
50
(Ampere) (Volt)
0.16 0 00000000
Dari hasil pengujian, led pada semua port menyala sesuai program, sehingga
Pada bab III, telah di bahas tentang cara kerja alat tersebut. Cara pengetesan alat
tersebut kaki 1 optocoupler terhubung dengan Vcc, dan kaki 2 terhubung ke salah
satu pin pada Mikrokontroler, lalu pada MTl dan MT2 TRIAC tersambung seri
pada fasa jala-jala listrik yang telah diberikan beban bempa lampu pijar.
tersebut adalah: apabila kaki 2 optocoupler mendapatkan logika "0" atau aktif
rendah dari mikrokontroler, maka lampu tersebut akan "menyala" dan jika kaki 2
Hasil pengamatan dalam rangkaian penampil LCD, yakni dapat melihat nilai
arus yang terdeteksi dan petunjuk penggunaan alat tersebut. Untuk membuat nilai
ams maksimum yang tertampil pada LCD sama dengan ams sebenarnya. Maka
program penampil haruslah di kali 7. berikut ini program untuk menampil ams
pada LCD.
Include <at89c51>
Include <lcd.h>
{
pos_lcd(0x08);
puti_lcd(adc*7.2);
for(j=0;j<10000;j++){;}
}
52
Pada program tersebut nilai ADC akan dikalikan 7,2 , agar tertampil ams yang
mendekati nilai ams sebenarnya.
T V "Program Siap"
T T "NORMAL LOAD"
V T "NORMAL LOAD"
T T "NORMAL LOAD"
8 T T "TEKAN TOMBOL
53
Objek dapat dikendalikan dengan alat tersebut, interval waktu 30 detik dan
setelah 3 kali siklus recloser akan posisi offterns, sampai tombol di tekan kembali
Hasil pengamatan saat fasa dan netral terhubung singkat, sistem recloser
akan mati atau error, dan hubung singkat mengakibatkan putusnya circuit breaker
yang dekat dengan recloser secara cepat Recloser tidak dapat bekerja dengan
waktu yang cepat dalam mendeteksi arus hubung singkat. Hubung singkat atara
fasa dan netraljuga dapat memsak komponen recloser.
BABV
5.1 Kesimpulan
1. Recloser akan memutuskan ams pada instalasi, saat Arus lebih dari 1,8
Ampere yang menunjukkan beban beriebih dari sistem.
lebih lambat dari kenaikan arus yang disebabkan oleh gangguan hubung
singkat.
54
55
5.2 Saran
Skripsi ini dapat dikembangkan lagi untuk mencapai hasil yang lebih baik.
Beberapa pengembangan yang dimungkinkan adalah:
U2
R4 R5 U1
1K 1K
<> LIS. .. no
..39.. .2.1... ' 0P4
D1 PO 0/ADO P? 0/A3
i.17.... .3.8 22
02 P0.1/AD1 P2.1/A9
: _16_ _3Z. DF3S~~
P0.2/AD2 .23..
D6 i 15 D3 P2.2/A10
Q1 _36_ .24.
ia. 04 PO 3/AD3 P2 3/A11
Q4010L5n"O i 14_
LED 4 prS PO 4/AD4 P2 4/A12 _25„.
l ia._ _M.
r;;s PO 5/AD5 P2.5/A13 .26...
; .12.. ......3.3
R1 1 PG.S.'ADS P2.6/A14 .2.7
U4 ' MOC3021 ; ii. L>?'
H'OK -_.32_ .28
.2... P0.7/AD7 P2.7/A1'j
R6 .3. L-'U
L.5. , -JL
P1 0 10
U1 P3 C/RXO
2 ! .11.
ADC0804" P1.1 P3 1/TXD
3 ! 12.....
D3 P1.2 P3.2/INTO
1 K C>W 150pF _ 4 ! 13.....
Cm Pi. 3 P3.3/INT1
5 !
U5 P1.4 P3 4/7 O _J4_
6 1 15.
i ;y PI ? P3 5'Tt
7 i Jfi_
L) / P1 6
8J pi 7 17.
12MHz CRYSTAL
XTAL1 .2£L.
_1B.„
XTAL2
RST E/PROC _3D_
VCC
f—
.31 j EA,X
D7
"bridge"' C2 - C3 : C4 AT89C51 N
-INE SER 30pF 30pF 10uF/16V j
i^t-.TI . 5
R8 10K
2_>' R2
10K
LINE SERi
]&. CT.-r-CB^-y-^-'i'^ca R9 5.1
TRANSFORMER 10UF/16V ipbnF! 100nF 10K" <DIODE ZENER
^2......
RS
c
1
4
' DB4'
5 6
R7 3
r~ ZL. ""'"DBS'
> 1k 10
'~DFJ7'
11
.-,-,,-; ao f r—* # 1 _
D1 13 ' **
VCC
1 =
u: VCC * »-:.-! 9
•; '•~T 17 IS
;NE PARAREj. T? j LZ.8.05./IQ22Q. R3
D23DE 19
\ " J
.2 ; i V
LCD
C5-r"'-
C6 FUSE D5
DJ^DE 2200uF/25V 1000uF/16V
iNE FJARARBiL 330
D3 LED
TRANSFORMER CT
D
DIODE
Title
12
10
-Vd1
8
Vth1
6
Vd2
4 Vth2
3 4 5 6 7 8 9 10 11 12 13 14
jumlah beban yang digunakan
Program Elektronika Recloser Berbasis Mikrokontroler
AT89C51
#include<at89x51.h>
#include<lcd.h>
unsigned intj,adc;
void tunda(unsigned intj)
{
while(j)
THl=0x3c;
TLl=0xaf;
TR1=1;
while(ITFl);
TR1=0;
TF1=0;
j--;
void main()
<
i
char n=0;
EA= 1;
ETO = 1;
init lcd();
clear_lcd();
posJcd(OxOO);
puts_lcd("- Program Siap -");
pos_lcd(0x40);
puts_lcd("febri 01-088");
o
-a
< -a
c3
s o
O
-J -J
IS '—-
• r U.
(U
^-T 2 > ^_; o . ^
2 o II o ^^ o' i
O J5
X 6 o o o o ;_, O
o c o
T3 w o JJ 2S CD
CO
en "O CO l-n
-o 1 o CO
,-H O
- A 2 II CO +-!
co 1 T3 1! O of —
* O +
</j.1' II "O °
1)
<
r % o a < + 3
< o
5 < A
o
<
CO
O
+_i _-
3 < 1c <
T3 II
< " 2: W a. a.UJ c W 2 w D
c a. d. uj LU 5 LU
tfl
Ik*-r LV
I
WW-;. '
to
&
ISSP*""
I
t-ipriri
S d 5 c i f ic ~t t io n s
,
F.if::i,rt:&r
- 1 ' .. ..->•;
•u'PV
s •' • r-. ••--...
tl : ! -
l
" "".•. i
' •/- '
' ; '- ">j >
1
tt
IM'M.'I*.
i . i. •'-1 •'(.
" "
.....! r. • i
' ; " 1 - !_"* '
- ! } i n •.
1. ,•
pp j=
t . _.
* r
<:.•>. >s; 1
„
1 •
i - 1
" l r- 1
......
^ np 1 I
''
1
1
——,
-1"! :>
1-
i
———•—:—i
-;-U-i
_ _ _ _ _ _
i
_.;..
- —
~ -
-;;—
.--_, f
!
1 ..:—, —;
.-'••'•
' • i.
1
~VM^ <
.':'.! .•:-.•....
1 j. __
—H-——!
;.,__..„ _i
-4 - -.„-| :
f r
(.0
o
2 r., •: -': "•• i
i
- - - -
r - - ;
i
* v r •..•" :_ ." - - '-
1
\
tU -:'f ' '<-'?L ••: , •
•..! .i . . i
i \
--; .].. ~n'
s .=• ;•
s - - -
-
—
-
4-i-
rj •=
. 1. :
'• «-_ - - * - - - - -
i
__J i
—H-
~3
;:' _- i":/ * ^ ': -
- '-
- - ^ -
•
I I : i-
r
* - -' A
f' —(—: - .1.1:
L
_.
j
:•;; :. ' \
ft '
j
r t
li ' ' - - - '' - 5 - - - - - - - - - - -
I
K
- -
-' - j -: •
-.•-•. "
~ - - -
- - - - - - - - -
-
-• - -
1 :
j :
-
f • .- : i
-
.': ^": :-'. '. •
.-'•'.''
-" _L_ 1' ' : '1
> 7
if
i" _ . •: -' -.:' r' * i •_• -••! ••• •h
' '• _ i. !
! !
- : • •:• ! T t
i
1 l.'/-\
-..'. ,"' ...
' ' •| - ' ' ' i' •' • ' •!
I
' -J.
_• J- . ' ,|. ,,, sj
1 i ;
•• , Milt!
, 1
1
I • ^i i'
1 *
) 1 1
I r ]
i •'-j -i J. -j •_i i
1 -' m -f':'HPi __i j | j
_...L_ - _-- 1 |
~-
.-. '~r~T~ |
1
|
-
-
::.':..]:: • -(••
- ^
'_ c_.'— - -
?
; f ^••v, • • ''1
—
' .-,
'
"•' "'•(•'
!
»:
|
' " " "
!
.-•
- s iji- i- i - - - -. _. i - '.: ',_
- -i-
-'
i. :;-•-.::
=. "j " .
1
. j
Cu .- '* *~,' : 1
i
a" -.*'.": ;" -'.r. -. ". •, : .....,,,
1
~
•.1-
J 1
1—
-
; '_ •. ', - V1 •
. . I_
'" • ' ' - "
i
r-
;r
• ii--:y-
111 -
i
11
9s
-
\ £ '•'• /*: ,'•::
».
_ *—n—»-
> 1
*?; i .
;.;
O [
-'*- [ ;•-
'•
•i '
_.
m *•
O !
.
I I
.' r
•• i-
OT i -• .; :. ,:
- ♦ H.'-. »—f-j~»j.
^5 • '•. •• .'• '• '• '"' -
rft
LI i :'. •" :' ? •7.
:•; L
fi> ! ;. ;,-, - r.
UJ 1 .' r '• .
J..JZH
•i -_i.
"
-•f~t
,.t......
i i
1
i j TT"
- •- i
. j_
-.-; -
:, .
|
i_.
!
1
H_
I \
i
..._.).. \ i -I
- -
1.
...3
:_.l.;_.
,>
1
i
i—
| i j ;
. . . _
••
1-
21
._w t
/
.
i :
I _
1. ' • "
\ . ; >
_
. . . .
{.['-
—
J
'••J
CO I J—)
.
i
!
i \
r
j
•i. i... .".<• •l?. , v.
J' •
PAIRCHILD 6-PIN DIP RANDOM-PHASE
OPTOISOLATORS TRIAC DRIVER OUTPUT
SEMICONDUCTOR®
(250/400 VOLT PEAK)
MOC3010M MOC3011M MOC3012M MOC3020M MOC3021M MOC3022M MOC3023M
PACKAGE
SCHEMATIC
DESCRIPTION
The MOC301XM and MOC302XM series are optically isolated triac driver devices. These devices contain a GaAs infrared
emitting diode and a light activated silicon bilateral switch, which functions like atriac. They are designed for interfacing between
electronic controls ana power triacs to control resistive and inductive loads for 115 VAC operations.
FEATURES
APPLICATIONS
• Industrial controls Solenoid/valve controls
• Traffic lights Static AC power switch
• Vending machines Incandescent lamp dimmers
- Solid state relay Motor control
• Lamp ballasts
Storage Temperature
TSTG All -40 to+150 °C
Operating Temperature
TOPR All -40 to +85 °C
Lead Solder Temperature
TSOL Ail 260 for 10 sec °c
Junction Temperature Range Tj All -40 to+100 °C
Isolation SurgeVoltage'1)
(peak AC voltage, 60Hz, 1 sec duration) VISO All 7500 Vac(pk)
Total Device Power Dissipation @ 25°C
330 mW
Derate above 25°C PD All
4.4 mW/°C
EMITTER
Note
1 Isolation surge voltage, Vlso, is an internal device dielectric breakdown rating. For this test, Pins 1and 2are common and
Pins 4, 5 and 6 are common.
MOC3020M 30
MOC3010M
15
MOC3021M
! LED Trigger Current Voltage = 3V (note 3) MOC3011M
'FT mA
10
MOC3022M
MOC3012M
MOC3023M
Holding Current, Either Direction All 100 MA
Note
Fig. 1 LEO Forward Voltage vs. -orward Current Fig. 2 On-State Characteristics
/
/
/
a
y/\ y
/
/
/
<A
h = -w'c.
s
.•on /
T„- 25*C,
' /.
^
*' J'a' ,fflrC,
/
/
/
^ II ..... BOO J
-3-2-10123
ON-STATE VOLTAGE -V „, (V)
- LEDFORWARD CURRENT (mA)
Fig.3 TriggerCurrent vs. Ambient Temperature Fig. 4 LED Current Requiredto Trigger vs. LED Puis*Width
i I ! I ! j
1
! ! !
- i I i i i
NJ 1 1 1
in-
! j | I j $
NOR
PWjn __ to<
i
j
i ; o
z
u
j
r j^^J
_ _ _
_E
o
;-s "' • or
p
1 '
50 100
NORV-«_IZEDTOTA =25-C
! I ! 1 1 1
M
I 1 i ill!
•\
i[ 1' ' — —
1 r
[
RCUf TINF tGUR E5
~ f
—
; I i i i
f \^J I
'
r^- 1 '.
"i j —
V,
- 1
80 90 1C0
Ambient Temperature - Tt ; C)
-40 -20
20 «0 SO 80 100
5 application note illustrates the in-cir- During programming, AT89C51 I/O ports
t programmability of the Atmel are used for the application of mode 8-Bit
39C51 Flash-based microcontroller. select, addresses and data, possibly
delines for the addition of in-circuit requiring that the controller be isolated Microcontroller
grammability to AT89C51 applica- from the application circuitry. How this is
is are presented along with an appli- done is application dependent and will with Flash
on example and the modifications to be addressed here only in general
.quired to support in-circuit program- terms.
ig. A method is then shown by which
! AT89C51 microcontroller in the
Port Used for Input Application
plication can be reprogrammed During programming, the controller must
notely, over a commercial telephone be isolated from signals sourced by the Note
;. The circuitry described in this appli- application circuitry. A buffer with three-
ion note supports five volt program- state outputs might be inserted between
ng only, requiring the use of an the application circuitry and the control
89C51-XX-5. The standard AT89C51 ler, with the buffer outputs three-stated
suires 12 volts for programming. when programming is enabled. Alter
nately, a multiplexer might be used to
a software for this application may be
select between signal sources, with sig
.ained by downloading from Atmel's
nals applied to the controller by either
S: (408) 436-4309.
the application circuitry or the program
jneral Considerations mer circuitry.
cuitry added to support AT89C51 in- Port Used for Output
cuit programming should appear No circuit changes are required if the
nsparent to the application when pro- application circuitry can tolerate the state
.mming is not taking place'. changes which occur at the port during
,/VPP must be held high during pro- programming. If the prior state of the
amming. In applications which do not application circuitry must be maintained
lize external program memory, this pin during programming, a latch might be
ay be permanently strapped to Vcc. inserted between the controller and the
iplications utilizing external program application circuitry. The latch is enabled
.mory require that this pin be held low during programming, preserving the
ring normal operation. state of the application circuitry.
5T must be held active during pro- An Application Example
amming. A means must be provided The AT89C51 application shown in Fig
• overriding the application reset cir-
ure 1 is an implementation of a moving
it, which typically asserts RST only display. This application was selected for
efly after power is applied.
its simplicity and ability to show graphi
.EN must be held low during program- cally the results of in-circuit reprogram-
ng, but must not be driven during nor- ming. The text to be displayed is pro
al operation. grammed into the controller as part of its
-E/PROG is pulsed low during pro- firmware, and cannot be changed with
amming, but must not be driven during out reprogramming the device.
'rmal operation. 0287D-B-9/97
jflmEL 5-11
iflmiL
displayed text is presented in one of two modes Atransparent latch has been added between port two of
cted by the four-position DIP switch. In the first mode, the controller and the display control inputs. The latch holds
character at a time enters the display from the right the display control signals inactive during programming,
moves quickly to the left through each element of the which eliminates erratic operation ofthe displays due to
>lay to its final position in the assembled message. In programmer activity on ports zero and two. No isolation of
second mode, the message moves through the display, the display data inputs is required, since data applied to the
i right to left, with the display acting as a window onto inputs is ignored when the control signals are inactive.
message. This mode is familiar as the method often
d in displays of stock prices. The AT89C51 reset circuit, input multiplexer and output
latch arecontrolled by a single signal generated by the pro
.' output consists of four DL1414T, four-digit, 17-seg- grammer. During programming, reset is asserted, the multi
it alphanumeric displays with integral decoders and plexer switches inputs, and the latch freezes the display
ers. This yields 16 total display elements, each capable control lines.
lisplaying digits 0-9, the upper case alphabet, and some
ictuation characters. The displayable character codes To ensure that the display control lines are in a known state
ASCII 20H-5FH. before they are latched, an AT89C51 external interrupt is
used to allow the programmer to signal the application
lower-on reset circuit and a 6-MHz crystal oscillator before asserting reset. The application firmware responds
nplete the application. Neither extemal program memory to the interrupt by displaying a message and deactivating
external data memory is used. the display control lines.
.difications to the Application to Support After programming, when reset is deasserted, the controller
Circuit Programming ports are high as the latch becomes transparent. Since the
lure 2 shows the application modified for in-circuit display control inputs are inactive high, the display contents
gramming. are not disturbed until the new program writes the display.
. assumed that the programmer, when inactive, will nei- Although not essential to this application, it might be imper
r drive nor excessively load the application. ative in some applications that the state ofthe peripheral
circuitry not be disturbed during programming.
ce the application does not use external program mem-
, EA/VPP on the controller is connected to Vcc. This The Programmer
ets the requirement for programming. The programmer (Figure 3) generates the addresses, data
s reset circuit has been modified by the addition of two and control signals necessary to program the AT89C51
nsistors, which allow RST on the controller to be forced embedded in the application.
h by the programmer. The programmer circuitry consists of an AT89C51 and an
EN and ALE/PROG, unused in the basic application, are RS-232 level translator. The controller runs at 11.0592
der the direct control of the programmer. MHz, which allows the serial port to operate at a number of
Dgramming requires programmer access to all of the four standard baud rates. A Maxim MAX232 line driver/receiver
89C51 I/O ports, as documented in the data sheet. The produces RS-232 levels at the serial interface while requir
.grammer is connected directly to those controller pins ing only a five volt supply.
ich are unused by the application, while access to pins Many ofthe signals generated by the programmer are con
ed by the application requires special treatment, as nected directly, without buffering, to the AT89C51 in the
plained in the following paragraphs. application. These signals, when inactive, are not three-
e least significant four bits of the address generated by stated, but are pulled high. The AT89C51 has internal pull-
. programmer are multiplexed onto port one of the con- ups of approximately three Kohms on ports one, two and
iler with the data from the DIP switch. Note that the four three. Because port zero does not have internal pull-ups,
sistors added at the switch are not required in the basic external pull-ups often Kohms have been added to permit
plication, since the AT89C51 provides internal pull-ups proper operation of program verification mode. The sample
port one. application operates correctly in this environment. If
iring the normal operation of the application, controller
required for compatibility with an application, programmer
signals may be buffered with three-state buffers similar to
rts zero and two provide data and control signals the 74xx125.
ispectively) to the displays. During programming and pro-
am verification, the programmer asserts control of port The AT89C51 in the programmer does not utilize external
ro and part of port two. The programmer is connected to program ordata memory, which would require sacrificing
rts zero and two without buffering, since, when inactive, needed I/O pins. This requires that program code and I/O
presence does not affect the normal operation of the buffers be kept small enough to fit in on-chip memory.
plication.
12 Microcontroller
Microcontroller
iote Programming Over a Commercial After each packet is received and validated by the pro
phone Line grammer, the data contained in the packet is programmed
programmer and display application described previ- into the AT89C51 controller in the application. After pro
/ are connected to a phone line via a modem at a gramming, the data is read back from the controller and
)te site. Using a personal computer with a modem, a verified against the received packet data. Successful verifi
can upload a new program containing a new mes- cation indicates successful programming, causing the pro
i, which is programmed into the AT89C51 embedded in grammer to send ACK to the transmitter. If programming
application. When programming is complete, the appli- fails, the programmer sends CAN to signal the transmitter
>n executes the new program, which displays the new to abort the file transfer.
sage. The simplicity of the FTP reduces the amount of AT89C51
al Station program memory used in the programmer. The send-and-
local station in the test configuration consists of an IBM wait nature of the FTP allows inter-packet delays due to
<\T-class computer connected to a Hayes-compatible, AT89C51 program and erase times to be easily absorbed.
netheus 1200 baud modem. The modem was selected Support for program verification istransparent, requiring no
ause it was inexpensive and available. A faster modem explicit command or result codes, or additional data trans
fers.
be used if desired, although once the file transmission
! is reduced below one minute, further reductions in The files which are uploaded to the programmer are cre
smission time do not further reduce connect time ated with the tools in the Intel MCS-51 Software Develop
rges. A possible advantage to higher transmission ment Package for the IBM PC. Included in the package are
eds is the automatic error detection and correction the MCS-51 Macro Assembler, MCS-51 Relocator and
table in some high speed modems. Linker, and a useful utility, OH. OH converts an absolute
;omm Plus version 2.01, a commercial data communi 8051 object file to an equivalent ASCII hexadecimal object
file.
ons package, is used to configure the modem, set up
imunications parameters, and establish a link with the The records in the hex file produced by the OH utility serve,
ote modem. Procomm Plus includes a macro language unchanged, as the packets in the FTP described above; no
3d ASPECT, which allows the user to write and compile service fields need to be added. The colon which begins
pts which implement custom file transfer protocols. A each record serves as the packet signature field. The load
ole ASPECT script was written to read the contents of a address field serves as the packet sequence number. A
3ram file and upload it to the remote programmer. checksum is provided as the last field in each record. Since
• file transfer protocol (FTP) implemented is a simple seven-bit ASCII coding is utilized, the eighth bit of each
d-and-wait, packet-oriented protocol. The transmit and byte is available to be used for parity checking.
sive modes of the FTP are illustrated by the flowcharts Because the AT89C51 in the programmer does not utilize
gures 4 and 5, respectively. The transmitter sends each external data memory, necessary packet buffering must be
:ket without flow control and waits for a response. The done using internal RAM. Limited memory precludes the
grammer (the receiver) reads and dissects the packet use of conventional FTPs which utilize packets of 128
le calculating a checksum. If the calculated checksum is bytes and larger. The hex packet format used in this appli
d, the programmer acknowledges the packet by send- cation limits packet data fields to 16 orfewer entries, requir
an ACK. If the checksum is in error, the programmer ing little memory for buffering.
jatively acknowledges the packet by sending a NAK. The ready availability ofa utility for creating the packetized
Dn receipt of an ACK, the transmitter sends the next program file, combined with small packet size and ade
.ket. If the transmitter receives a NAK, it resends the quate error checking, makes the hex packet format a near
ne packet. Transmission proceeds in this manner until ideal solution for this application. Adisadvantage is the use
entire file has been transferred. of ASCII, which requires each program data byte to be
i programmer might respond to a packet by sending a expressed as two hex characters. This demands that
N, which indicates that a non-recoverable error has nearly twice as many bytes be transferred as might other
:urred and that the transmitter should immediately abort wise be required. This is not a severe limitation, however,
file transfer. If the programmer fails to respond to a since typical file transfer times are less than one minute!
:ket within a limited period of time, the transmitter will Overall, the simplicity ofthe custom FTP/hex packet format
end the same packet. The transmitter will continue to implementation outweighs the drawbacks.
end the same packet until a valid response is received Remote Station
until the allowed number of attempts is exceeded, at
ich time the file transfer is aborted.
The remote station in the test configuration consists of the
display application and programmer circuits, described pre
viously, connected to a Hayes-compatible, Prometheus
yilmEL 5-13
baud modem. During normal operation, the applica- troller inthe application. The load address field contains the
axecutes its internal program while the modem and address at which the data is to be written. The end-of-file
'ammer monitor the phone line for incoming calls. packet contains the same fields as the data packet, except
a call has been detected and a connection estab- that the data field is empty. This packet type has special
d, the programmer forces the application to suspend meaning to the programmer, as explained below.
ution of its program. The new program is then down- Any packet which contains an invalid record type, record
ad and programmed into the AT89C51 embedded in length or checksum is invalid. Program data accumulated
ipplication. When programming is complete, the appli- during the processing ofan invalid packet is discarded. The
m is allowed to begin execution of its new program, programmer sends a NAK to the transmitter to signal
the programmer returns to monitoring the phone line reception of an invalid packet and resumes polling for a
ie next call.
valid packet header.
programmer powers up with its programming control Receipt of the first valid data packet causes the program
uts inactive, allowing the application to run normally. mer to interrupt the application controller. The controller
- configuring the modem to answer incoming calls, the responds to the interrupt by abandoning execution of its
rammer puts itself to sleep. The programmer will not usual program and displaying a message indicating that
irb the application until a new program is to be down programming is taking place. Ifthis is the first valid data
ed.
packet since power was applied or an end-of-file packet
programmer controls the modem by sending ASCII was received, the programmer asserts the control signals
mand strings over the serial interface, to which the necessary to erase the program memory in the application
lem responds with Hayes-style ASCII numeric codes, controller. The programmer then places the controller in
software is designed for use with Hayes-compatible programming mode.
ems, which includes the Prometheus ProModem 1200 The first and subsequent valid data packets are dissected
i here.
as they are received and the data which they contain ispro
serial interface, through which the programmer con- grammed intothe application controller at the address indi
is to the modem, supports two handshaking signals, cated in the packet load address field. After programming,
. and DSR. On power up, the programmer asserts the data is read back from the controller and verified
!, to which the modem responds by asserting DSR. If against the received packet data. Successful verification
modem should fail to respond to any command, includ- indicates that programming was successful, causing the
the command to hang up, the programmer deasserts programmer to send ACK to the transmitter. The program
., which forces the modem to drop the line, mer then resumes polling for a valid packet header, subject
modem monitors the phone line while the programmer to the thirty second reset delay.
_ps, waiting for an incoming call. When a call is If programming fails, the programmer sends CAN to signal
.cted, the modem answers and attempts to establish the transmitter to abort the file transfer. The modem drops
lmunication with the caller. If a connection is estab- the line and the programmer returns to sleep, waiting for
sd, the modem sends a code to the programmer, wak- the next call. The application controller is left in program
it up. The programmer verifies the connect code and ming mode, preventing it from executing the incomplete or
ins polling for a valid packet header. invalid program which it contains.
)ming packets must arrive fewer than thirty seconds It is important to note that invalid packets are NEVER pro
rt, or the modem drops the line (hangs up) and the pro- grammed into the application controller. To do so would
nmer returns to sleep, waiting for the next call. If the require that the program memory in the controller be com
ar hangs up, the thirty second period mustexpire before pletely erased before the error could be corrected, causing
ther call will be answered. Calls incoming during the the non-recoverable loss of all previous program data.
it delay period are ignored.
Upon receipt of an end-of-file packet, the programmer
valid packet header is received prior to the expiration of returns its control outputs to the inactive, power on state,
reset delay period, the programmer will attempt to read allowing the application controller to begin execution of the
I validate the incoming packet. At any time during new program. The programmer then resumes polling for a
ket reception, an invalid character, parity error or time- valid packet header, subject to the thirty second reset
during character reception will cause the partial packet delay.
<e declared invalid and discarded.
If a valid packet is received prior to the expiration of the
3 packet types are defined: data and end-of-file. A data thirty second delay, another programming cycle begins,
ket contains five fields in addition to the packet header, which can only be terminated by the reception of a valid
.' of which is a variable length data field. The data field end-of-file packet.
itains program data to be written into the AT89C51 con
Microcontroller
Microcontroller
ie reset delay expires prior to the reception of a valid Installing and Configuring Procomm Plus,
-of-file packet, the modem will drop the line and the pro-
Version 2.01
Timer will return to sleep, waiting for the next call. In this
e, the application controller is left in programming Install Procomm Plus as instructed in the User Manual.
_Je, preventing it from executing its program. To return When prompted to specify the modem in use, select
application to normal operation, another call must be 'Prometheus ProModem 1200' from the list.
eived, and a valid program file uploaded, terminated by Run Procomm Plus and create a dialing directory entry for
and-of-file packet. the remote station. The baud rate must be set to 1200, par
ity to EVEN, number ofdata bits to 7, number ofstop bits to
tting Up the Hardware LplextoHALF.
:al Station Enter the Setup utility (ALT-S). Select 'PROTOCOL
inect the IBM PC to the ProModem 1200 through one of OPTIONS', then 'EXTERNAL PROTOCOL OPTIONS' from
system COM ports. Connect the modem to an analog the menus and modify the entry for 'EXTERNAL PROTO
.phone line and set the modem switches as indicated COL 1' as indicated below.
ow.
EXTERNAL PROTOCOL 1:
Switch settings: A- NAME: <any name>
B - TYPE: ASPECT
1 ON
C - UPLOAD COMMAND: ATX.ASX
2 ON
3 OFF Note: 'ATX.ASX.' is the filename of the compiled ASPECT
4 ON
script to be associated with External Protocol 1.
5 OFF Savethe changes and exit the Setup utility.
6 ON
Creating a Hex File
7 OFF
The hex files which are uploaded to the programmer are
8 OFF created with the tools in the Intel MCS-51 Software Devel
9 OFF opment Package for the IBM PC. In the example below, the
10 OFF 8051 assembler source file is called TEST.ASM'.
Assemble the source file TEST.ASM' and create the object
mote Station file TEST.OBJ':
mnect the display application/programmer to the second ASM51 TEST.ASM
^Modern 1200 through the programmer serial port. Con-
ct the modem to an analog telephone line and set the Link and locate the object file TEST.OBJ' and create the
adem switches as indicated below. absolute object file TEST.ABS':
m the modem on and apply power to the display applica- RL51 TEST.OBJ TO TEST.ABS
n/programmer. The application will begin executing its Convert the absolute object file TEST.ABS' to the hex file
ogram, if it contains one. The programmer will initialize TEST.HEX':
a modem, as shown by the activity on the modem status OH TEST.ABS TO TEST.HEX
Jicators.
The resulting file, TEST.HEX' is ready to be uploaded.
Switch settings:
Note: ASM51 is version 2.3; RL51 is version 3.1 •OH is version
1 ON 1.1.
2 ON
3 ON
Uploading a Hex File
4 OFF
Run Procomm Plus and use the proper dialing directory
entry to dial the remote station.
5 ON
6 ON
After the connection with the remote station is established,
7 ON
press the 'PgUp' key and select T (External Protocol 1)
from the menu of upload protocols. This will execute the
8 OFF
ASPECT script associated with External Protocol 1.
9 OFF
10
When prompted, enter the name of the file to be uploaded,
OFF
including the extension and path, if required.
When the upload iscomplete, press ALT-H to hang up and
ALT-X to exit Procomm Plus and return to DOS.
yflmEL 5-15
iilmEL
jrel. AT89C51 Moving Display Application Example
8 DO
9 D1
10 D2
\ 11 , D3
N 2 D4
\ 1 D5
. 12 D6
vcc
5 A0
•f
4 A1
i
3.
___C1 WR
T 10 uF
DL1414T
U1
30 pF EA/VPP POO
U3
Y1 P0.1
XTAL1 P0.2 8 DO
6 MHz
P0.3 9 D1
P0.4 10 D2
XTAL2 P0.5 11 D3
30 pF P0.6 2 D4
V RST
32
P0.7 1 D5
12_ D6
P3.0/RXD P2.0 5 A0
P3.1/TXD P2.1 4 A1
P3.2/INT0 P2.2
3_
P3.3/INTT P2.3 WR
P3.4/T0 P2.4
P3.5/T1 P2.5
P2.6
P1.0 P2.7
P1.1
P1.2
P1.3 PSEN 8 DO
P1.4 ALE/PROG 9 D1
PI. 5 10 D2
P1.6 P3.6/WR 11 D3
P1.7 P3.7/RD 2 D4
1 D5
AT89C51 12_ D6
5 AO
-1 A1
3
Note: 0.1 uF bypass caps on all ICs. WR
U5
8 DO
9 D1
10 D2
11 D3
2 D4
1 D5
12 D6
5 AO
4 A1
3
WR
16 Microcontroller
Microcontroller
ure 2. AT89C51 Moving Display Application Modified for In-Circuit Programming
; ..
vcc
i
----- - L_.
I ;|1
XTAL1 P0.2 U3
P0.3
6 (no
P04
*" J U1
XTALz P3.5 n?
PQ.6
RST D3
D4
ns
21 06
P3.QTOD P2-Q
P3.1/7XD 22 ^,
AO
P3.->y"^TD P22
23 '"!"" »~—JL.
24 : i 1 *
Al
P3.:yiNTT P2.3
P3.4VT0
ir~i [ | | 1 3
WR
P3.S/T1 » ' • -_- ~^— .*
IA IV
_4_ r?_
2d ' , ! 1
p;7 19
2A 2V
7 ,
2B
3A ,1V
iii U4
3B
\-*-± 5 DO
m, 4A
48
4Y
'•!_
Dl
02
03
A/R 04
Ui
G
Ob
74HCT
AO
Al
i_
5-17
re 3. AT89C51 Programmer
"
24
11
23
if. -it—
=—
L'l ___T cs
„
3 "T~ 10/6.3 V
r 20
7
°
19
0 6 CIO
18
10/6.3
5
17
4
C9
„
16 CIO
10/16
3 10/16
o -
15 C2-
-—
14 T10UT TUN
T20UT T2IN
DSR RUN R10UT
R2IN R2CUT
VAX232
Microcontroller
Microcontroller
QrTJ
T
aUSel 5-19
Lire 5. FTP Receive Mode
Disable Programming
Erase AT89C51
Enable Programming
Write Data
Verify Data
]
Verify
OK
TN
20 Microcontroller
Microcontroller
The record type field consists of two hex digits, which are
j - i- int«»_ Hex File Definition always zero in data records.
The data field contains from one to 16 pairs of hex digits.
80C51 assembler products. The last two hex digits are a checksum on the^ecord
,record in the file contains the following fields: Soth load address, record type, and data fiek^The^
rlc ,ength><load address><rec type><data><check- 5 the binary equivalents of these fields and the checksum
>
-olon is the record header. Eatn'^rd in the file is terminated by acarriage return
and line feed.
Atype one record marks the end of the fil. The record,
* Sfiing 16 or fever data «eld entnes. always contains the following value. .00000001FF .
is to be loaded.
5-21
00 >
December 1994
rag
National Semiconductor F CO
"DO
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
3 O
8-Bit \xP Compatible A/D Converters T3 O
WO
General Description S°°
0"0
m Differential analog voltage inputs
The ADC0801, ADC0802, ADC0803. ADC0804 and • Logic inputs and outputs meet both MOS and TTL volt <D^
ADC0805 are CMOS 8-bit successive approximation A/D age level specifications >>
converters that use a differential potentiometnc ladder- • Works with 2.5V (LM336) voltage reference
similar to the 256R products. These converters are de- _^<3
%£i to Inow operation with the NSC800 ,nd INS8080A • On-chip clock generator
• 0V to 5V analog input voltage range with single 5V
derlative control bus with TRI-STATE® output latches di o 00
rectly driving the data bus. These A/Ds appear like memory supply
locations or I/O ports to the microprocessor and no inter • No zero adjust required CO
facing logic is needed. • 0.3" standardwidth 20-pin DIP package
o
Differential analog voltage inputs allow increasing the com • 20-pin molded chip carrier orsmall outline package
mon-mode rejection and offsetting the analog zero input • Operates ratiometrically or with 5 Vrx, 2.5 Vpc, or ana
voltage value. In addition, the voltage reference input can log span adjusted voltage reference So
be adjusted to allow encoding any smaller analog voltage (0 o
00
span to the full 8 bits of resolution. Key Specifications o
•
oResolution
i » 8 bits
Features . Total error ±V* LSB, +'/_ LSB and +1 LSB
• Compatible with 8080 f_P derivatives—no interfacing • Conversion time 10° ^s >
logic needed - access time - 135 ns o
• Easy interface to all microprocessors, or operates o
"stand alone" o
oo
o
Typical Applications en
n
i\rx 8 |1T lKSQH-Tla--
G\.l..ANr OESmEO
ANALOG IKPUr
VOLTftSt RANGE
seesectioh:*!
a r_.\o
5PANADJ _]_
} SEE SUCTION —
!^n?7
Part
Full-
VREF/2-2.500 Vrjc Vref/2 ™No Connection
Scale
(No Adjustments) (No Adjustments)
Number
Adjusted
ADC0801 ± y4 LSB
ADC0802 t V. LSB
ADC0803 + V2 LSB
( OAT A i-1 LSB
ADC0804
N
-M LS3
ADC0805
F.s=tD330M1.5 firm
Absolute Maximum Ratings (Notes 1&z> StorageTemperature Range
65°Cto + 150"C
875 mW
Package Dissipation atTA ^ 25°C
800V
Kd—-tor availability and specification. ESDSusceptibility (Note10)
6.5V
Supply Voltage (VCC) (Note 3) Operating Ratings (Notes 1&2)
voltage 0.3V to +18V Ta^I MAX
Tmin-TA
Temperature Range 55°C-TA-.+125°C
Logic Control Inputs 0.3Vto (VCc + 0-3V) ADC0801 /02LJ, ADC0802U/88..
At Other Input andOutputs 40'C-..TA--+85°C
ADC0801/02/03/04I..CJ
Lead Temp. (Soldering, 10 seconds) 260'C ADC0801/02/03/05LCN 40"C-_.1a- f85"C
Dual-ln-Line Package (plast.c) 300°C ADC0804LCN
0°C-T,v- --70°C
Dual-ln-Line Package (ceramic) ADC0802/03/04LCV 0"C-lA'_ +TO'C
Surface Mount Package 0°C_.TA_.+70°C
215"C ADC0802/03/04LCWM
Vapor Phase (60 seconds) 4:iVDcto6.3VDc
220°C Range ot VCc
Infrared(15 seconds)
Electrical Characteristics kHz unless omerw,se sPec,t,ed.
The following speof^or^apr^o^^ Units
VinO)
(Except Pin4 CLKIN)
^w^rtim*11****^
TRI-STATE Test Circuits and Waveforms
*0H.Cl -=10pF
t1H t1H,CL=10pF
—
Vet tin
SB r_o%
/art
"AT
IDS
OATA GKC
- ° OUTPUT 8*0 OATA —-IBM
voi
TL/H/5671-3
t, -20 ns
Timing Diagrams (All timing is measured from the 50% voltage points)
START
CQHVERSIOM
DATA IS VALID IN
ACTUAL INTERNAL
STATUS OF THE •
/ ~\ OUTPUT LATCHES
i
"\ J
^
UATA
OUTPUTS" >
,us: occur 8clock periods (6."c_k) alter assenion olinterrupt toguarantee reset ofIN~R.
\!0!e: Read strobe mi