Digital Clock 6 Digit

Digital clock menggunakan IC AT89C51,ini adalah salah satu digital clock koleksi yang ada di PC saya.Bagi yang ingin buat siapkanlah bahan dan alatnya dulu,jika sudah siap silahkan anda ikuti apa yang ada di blog ini.
  • Pertama lihat skematiknya dan coba aplikasikan dengan project board atau membuat pcbnya dahulu .berikut skematiknya

  • Kedua pasang semua komponen sesuai skematik utamakan IC menggunakan soket dan pemasangannya terakhir setelah ic diprogram,kemudian cek semua apakah sudah terkoneksi dengan benar sesuai skematiknya,siapkan juga power supply 5 Volt DC untuk mensupply kebutuhan tegangan rangkaian tersebut .
  • Ketiga jika sudah benar semua program IC AT 89C51/AT89S51 dengan programmer IC tersebut .Berikut file HEX yang untuk diisikan/diprogramkan ke IC :




:100EB700758911D2A9D28CD2AF750D09750C017540
:030EC7000F2122D6
:0B0ED600120EB7120DD812080080F8B1
:100E760088BDC494B19282BC8090A083CA85C2E228
:100E8600083D44143112023C001020034A05426218
:010E9600FF5C
:100E9700E4FDFCC3ED9FEC9E5015E4FBFA0BBB0091
:0F0EA700010AEB64824A70F50DBD00010C80E476
:010EB6002219
:060E33008B1A8A1B891CCA
:100E3900751E01E4F51D7580FFAB1AAA1BA91C8557
:100E49001D82758300120C89900E7693F5A0E51E1C
:100E5900F4F580E51E25E0F51E7F027E00120E974F
:0C0E6900051DE51DC3940640CD7580FFFB
:010E7500225A
:100DD800E5207056E5905407FFBF0719E521604AE2
:100DE800E51FD39464500AE51FD39401400385217D
:100DF80020E4F52122E4F5222090037522012092B7
:100E080003752203209103752202E522B52115E519
:100E18001FD39450400A74FB251FF51F85222022FA
:0B0E2800051F8003E4F51F8522212236
:03000B00020D7C67
:100D7C00C0E0C0D0758AB9758C3C0509E509C394EF
:100D8C001440447509000508E508643C7039F50801
:100D9C00050AE50A643C702FF50A0510E510B41835
:100DAC0026751000050FE50FD39517401A750F0126
:100DBC00050CE50CD3940C400E750C01050DE50DDE
:0C0DCC0094644003750D00D0D0D0E032DC
:100D0B00E50C14B40C005068900D2175F003A4C5CC
:100D1B008325F0C58373020D45020D4B020D450271
:100D2B000D48020D45020D48020D45020D45020D01
:100D3B0048020D45020D48020D457F1F227F1E22E2
:100D4B00E50D24D0FFE43407AB07FAEB5403700C2A
:100D5B00FC7D64AE02120CB6ED4C700FAE02AF030D
:100D6B007C017D90120CB6ED4C70037F1D227F1C15
:010D7B002255
:10080000E520B40111E50BC394065004050B8003E9
:10081000E4F50BE4F520120D0B8F17E50BB4070080
:100820004003020C8890082CF82828730208410223
:1008300008D702096A0209FD020A90020B20020B86
:10084000CEE520B40206751964E4F520E520B40372
:1008500005E4F519F520E5196041E50F75F00A8406
:10086000E5F02410F516E50F75F00A84F515E50C92
:1008700075F00A84E5F02410F514E50C75F00A848F
:10088000F513E50D75F00A84E5F02410F512E50D79
:1008900075F00A84F5111519020C7FE50875F00A48
:1008A0008485F016E50875F00A84F515E50A75F0FB
:1008B0000A84E5F02410F514E50A75F00A84F513AE
:1008C000E51075F00A84E5F02410F512E51075F0D6
:1008D0000A84F511020C7FE520B40212750E0105A1
:1008E00008E508C3943C4003E4F508E4F520E5205E
:1008F000B40312750E011508E508C3943C40037556
:10090000083BE4F520E50875F00A8485F016E50853
:1009100075F00A84F515E50A75F00A84E5F02410EF
:10092000F514E50A75F00A84F513E51075F00A84EC
:10093000E5F02410F512E51075F00A84F511E50EC6
:1009400070170518E518D394144006E4F518750ED1
:1009500001751620751520800E0518E518D3941E14
:100960004005E4F518F50E020C7FE520B40212757F
:100970000E01050AE50AC3943C4003E4F50AE4F5D8
:1009800020E520B40312750E01150AE50AC3943C54
:100990004003750A3BE4F520E50875F00A8485F00C
:1009A00016E50875F00A84F515E50A75F00A84E580
:1009B000F02410F514E50A75F00A84F513E51075B6
:1009C000F00A84E5F02410F512E51075F00A84F5BC
:1009D00011E50E70170518E518D394144006E4F5D8
:1009E00018750E01751420751320800E0518E51872
:1009F000D3941E4005E4F518F50E020C7FE520B4F3
:100A00000212750E010510E510C394184003E4F5B9
:100A100010E4F520E520B40312750E011510E51061
:100A2000C394184003751017E4F520E50875F00A23
:100A30008485F016E50875F00A84F515E50A75F069
:100A40000A84E5F02410F514E50A75F00A84F5131C
:100A5000E51075F00A84E5F02410F512E51075F044
:100A60000A84F511E50E70170518E518D3941440A3
:100A700006E4F518750E01751220751120800E051B
:100A800018E518D3941E4005E4F518F50E020C7F06
:100A9000E520B40212750E01050FE50FD39517403E
:100AA00003750F01E4F520E520B4030C750E01D5A4
:100AB0000F0385170FE4F520E50F75F00A84E5F0C4
:100AC0002410F516E50F75F00A84F515E50C75F0A0
:100AD0000A84E5F02410F514E50C75F00A84F5138A
:100AE000E50D75F00A84E5F02410F512E50D75F0BA
:100AF0000A84F511E50E70170518E518D394144013
:100B000006E4F518750E01751620751520800E0582
:100B100018E518D3941E4005E4F518F50E020C7F75
:100B2000E520B40221750E01050CE50CC3940D40BF
:100B300003750C01120D0B8F17E50FD395174003AA
:100B400085170FE4F520E520B4031B750E01D50CC5
:100B500003750C0C120D0B8F17E50FD3951740037F
:100B600085170FE4F520E50F75F00A84E5F02410F1
:100B7000F516E50F75F00A84F515E50C75F00A8495
:100B8000E5F02410F514E50C75F00A84F513E50D75
:100B900075F00A84E5F02410F512E50D75F00A846D
:100BA000F511E50E70170518E518D394144006E406
:100BB000F518750E01751420751320800E0518E5C3
:100BC00018D3941E4005E4F518F50E020C7FE520BD
:100BD000B40221750E01050DE50DC394644003E4D4
:100BE000F50D120D0B8F17E50FD3951740038517E1
:100BF0000FE4F520E520B40321750E01150DE50D78
:100C0000C394644003750D63120D0B8F17E50FD36A
:100C10009517400385170FE4F520E50F75F00A845A
:100C2000E5F02410F516E50F75F00A84F515E50CCE
:100C300075F00A84E5F02410F514E50C75F00A84CB
:100C4000F513E50D75F00A84E5F02410F512E50DB5
:100C500075F00A84F511E50E70170518E518D394A0
:100C6000144006E4F518750E0175122075112080E8
:100C70000E0518E518D3941E4005E4F518F50E7B13
:090C8000007A007911120E3322F2
:03000000020ECA23
:0C0ECA00787FE4F6D8FD758122020ED678
:100C8900BB010CE58229F582E5833AF583E0225020
:100C990006E92582F8E622BBFE06E92582F8E2226A
:0D0CA900E58229F582E5833AF583E4932284
:100CB600BC000BBE0029EF8DF084FFADF022E4CC22
:100CC600F875F008EF2FFFEE33FEEC33FCEE9DECEB
:100CD600984005FCEE9DFE0FD5F0E9E4CEFD22ED31
:100CE600F8F5F0EE8420D21CFEADF075F008EF2F7B
:100CF600FFED33FD4007985006D5F0F222C398FD6C
:050D06000FD5F0EA2208
:00000001FF

  • Agar bisa diprogramkan ke IC save file diatas dengan menggunakan notepad dan save dengan ekstensi nama.HEX ( filename : nama.HEX save as type : all files )Contoh : digital clock .HEX

Setelah IC diprogram ,yang terakhir cek ulang dan coba nyalakan ....triiiiing........digital clock akan menyala dan siap set sesuai jam saat ini.
  

Read more >>

Running LED AT89C2051/AT89S2051

Berikut ini adalah running led menggunakan mikrokontroller AT89C2051 yang memiliki banyak animasi .
Dalam pembuatannya cukup simpel dan mudah ,tinggal kita siapkan bahan bahannya :

Schematic

Daftar Komponen :
1.LED 
2.IC AT89C2051
3.X tal 12MHz
4.C 33pF
5.R 330 Ohm
6.R 56K
7.C 10uF/25Volt
8.Power Supply 5 volt




Source Codenya :

ORG 0000H

;SCH1 EQU P0.0
;SCH2 EQU P0.1
;SCH3 EQU P0.2
;SCH4 EQU P0.3

L1 EQU P3.4
L2 EQU P3.1
L3 EQU P3.0
L4 EQU P1.7
L5 EQU P1.6
L6 EQU P1.5
L7 EQU P1.4
L8 EQU P1.3
L9 EQU P1.2
L10 EQU P1.1
L11 EQU P1.0

; SETB SCH1

FNAUTO: MOV R3,#05
D1: CALL DESGN1
DJNZ R3,D1
MOV R3,#05
D2: CALL DESGN2
DJNZ R3,D2
MOV R3,#05
D3: CALL DESGN3
DJNZ R3,D3
MOV R3,#05
D4: CALL DESGN4
DJNZ R3,D4
MOV R3,#05
D5: CALL DESGN5
DJNZ R3,D5
MOV R3,#05
D6: CALL DESGN6
DJNZ R3,D6
MOV R3,#05
D7: CALL DESGN7
DJNZ R3,D7
MOV R3,#05
D8: CALL DESGN8
DJNZ R3,D8
MOV R3,#05
D9: CALL DESGN9
DJNZ R3,D9
MOV R3,#05
         JMP FNAUTO


DESGN1: CLR L1
SETB L2
CLR L3
SETB L4
CLR L5
SETB L6
CLR L7
SETB L8
CLR L9
SETB L10
CLR L11
CALL DELAY
CLR L2
SETB L1
CLR L4
SETB L3
CLR L6
SETB L5
CLR L8
SETB L7
CLR L10
SETB L9
SETB L11
CALL DELAY
RET
DESGN2: CALL CLEAR
CLR L1
CALL DELAY
CALL CLEAR
CLR L2
CALL DELAY
CALL CLEAR
CLR L3
CALL DELAY
CALL CLEAR
CLR L4
CALL DELAY
CALL CLEAR
CLR L5
CALL DELAY
CALL CLEAR
CLR L6
CALL DELAY
CALL CLEAR
CLR L7
CALL DELAY
CALL CLEAR
CLR L8
CALL DELAY
CALL CLEAR
CLR L9
CALL DELAY
CALL CLEAR
CLR L10
CALL DELAY
CALL CLEAR
CLR L11
CALL DELAY
RET
DESGN3: CALL CLEAR
CLR L11
CALL DELAY
CALL CLEAR
CLR L10
CALL DELAY
CALL CLEAR
CLR L9
CALL DELAY
CALL CLEAR
CLR L8
CALL DELAY
CALL CLEAR
CLR L7
CALL DELAY
CALL CLEAR
CLR L6
CALL DELAY
CALL CLEAR
CLR L5
CALL DELAY
CALL CLEAR
CLR L4
CALL DELAY
CALL CLEAR
CLR L3
CALL DELAY
CALL CLEAR
CLR L2
CALL DELAY
CALL CLEAR
CLR L1
CALL DELAY
RET
DESGN4: CALL CLEAR
CLR L1
CALL DELAY
CALL CLEAR
CLR L2
CALL DELAY
CALL CLEAR
CLR L3
CALL DELAY
CALL CLEAR
CLR L4
CALL DELAY
CALL CLEAR
CLR L5
CALL DELAY
CALL CLEAR
CLR L6
CALL DELAY
CALL CLEAR
CLR L7
CALL DELAY
CALL CLEAR
CLR L8
CALL DELAY
CALL CLEAR
CLR L9
CALL DELAY
CALL CLEAR
CLR L10
CALL DELAY
CALL CLEAR
CLR L11
CALL DELAY
CALL CLEAR
CLR L11
CALL DELAY
CALL CLEAR
CLR L10
CALL DELAY
CALL CLEAR
CLR L9
CALL DELAY
CALL CLEAR
CLR L8
CALL DELAY
CALL CLEAR
CLR L7
CALL DELAY
CALL CLEAR
CLR L6
CALL DELAY
CALL CLEAR
CLR L5
CALL DELAY
CALL CLEAR
CLR L4
CALL DELAY
CALL CLEAR
CLR L3
CALL DELAY
CALL CLEAR
CLR L2
CALL DELAY
CALL CLEAR
CLR L1
CALL DELAY
RET
DESGN5: CALL CLEAR
CLR L1
CLR L11
CALL DELAY
CALL CLEAR
CLR L2
CLR L10
CALL DELAY
CALL CLEAR
CLR L3
CLR L9
CALL DELAY
CALL CLEAR
CLR L4
CLR L8
CALL DELAY
CALL CLEAR
CLR L5
CLR L7
CALL DELAY
CALL CLEAR
CLR L6
CALL DELAY
CALL CLEAR
CLR L7
CLR L5
CALL DELAY
CALL CLEAR
CLR L8
CLR L4
CALL DELAY
CALL CLEAR
CLR L9
CLR L3
CALL DELAY
CALL CLEAR
CLR L10
CLR L2
CALL DELAY
CALL CLEAR
CLR L11
CLR L1
CALL DELAY
CALL CLEAR
RET
DESGN6: CALL ALLON
CALL DELAY
CALL CLEAR
CALL DELAY
RET
DESGN7: CALL ALLON
SETB L1
CALL DELAY
CALL ALLON   
SETB L2
CALL DELAY
CALL ALLON   
SETB L3
CALL DELAY
CALL ALLON   
SETB L4
CALL DELAY
CALL ALLON   
SETB L5
CALL DELAY
CALL ALLON   
SETB L6
CALL DELAY
CALL ALLON   
SETB L7
CALL DELAY
CALL ALLON   
SETB L8
CALL DELAY
CALL ALLON   
SETB L9
CALL DELAY
CALL ALLON   
SETB L10
CALL DELAY
CALL ALLON   
SETB L11
CALL DELAY
RET
DESGN8: CALL ALLON
SETB L11
CALL DELAY
CALL ALLON   
SETB L10
CALL DELAY
CALL ALLON   
SETB L9
CALL DELAY
CALL ALLON   
SETB L8
CALL DELAY
CALL ALLON   
SETB L7
CALL DELAY
CALL ALLON   
SETB L6
CALL DELAY
CALL ALLON   
SETB L5
CALL DELAY
CALL ALLON   
SETB L4
CALL DELAY
CALL ALLON   
SETB L3
CALL DELAY
CALL ALLON   
SETB L2
CALL DELAY
CALL ALLON   
SETB L1
CALL DELAY
RET

DESGN9: CALL ALLON
SETB L11
SETB L1
CALL DELAY
CALL ALLON   
SETB L10
SETB L2
CALL DELAY
CALL ALLON   
SETB L9
SETB L3
CALL DELAY
CALL ALLON   
SETB L8
SETB L4
CALL DELAY
CALL ALLON   
SETB L7
SETB L5
CALL DELAY
CALL ALLON   
SETB L6
CALL DELAY
CALL ALLON   
SETB L5
SETB L7
CALL DELAY
CALL ALLON   
SETB L4
SETB L8
CALL DELAY
CALL ALLON   
SETB L3
SETB L9
CALL DELAY
CALL ALLON   
SETB L2
SETB L10
CALL DELAY
CALL ALLON   
SETB L1
SETB L11
CALL DELAY
RET
CLEAR: SETB L1
SETB L2
SETB L3
SETB L4
SETB L5
SETB L6
SETB L7
SETB L8
SETB L9
SETB L10
SETB L11
RET

ALLON: CLR L1
CLR L2
CLR L3
CLR L4
CLR L5
CLR L6
CLR L7
CLR L8
CLR L9
CLR L10
CLR L11
RET
DELAY: MOV R0,#0FFH
INLOP: MOV R1,#0FFH
DJNZ R1,$
DJNZ R0,INLOP
RET
END  

Jika tidak mau repot compile source codenya ini ada file hex 

:100000007B05120043DBFB7B05120076DBFB7B05E7
:100010001200CFDBFB7B05120128DBFB7B05120105
:10002000D9DBFB7B05120249DBFB7B05120256DBA9
:10003000FB7B051202AFDBFB7B05120308DBFB7BBE
:100040000580BDC2B4D2B1C2B0D297C296D295C219
:1000500094D293C292D291C2901203A3C2B1D2B4ED
:10006000C297D2B0C295D296C293D294C291D29284
:10007000D2901203A322120375C2B41203A3120377
:1000800075C2B11203A3120375C2B01203A3120307
:1000900075C2971203A3120375C2961203A312032B
:1000A00075C2951203A3120375C2941203A312031F
:1000B00075C2931203A3120375C2921203A3120313
:1000C00075C2911203A3120375C2901203A32212E8
:1000D0000375C2901203A3120375C2911203A312F7
:1000E0000375C2921203A3120375C2931203A312E3
:1000F0000375C2941203A3120375C2951203A312CF
:100100000375C2961203A3120375C2971203A312BA
:100110000375C2B01203A3120375C2B11203A31276
:100120000375C2B41203A322120375C2B41203A34F
:10013000120375C2B11203A3120375C2B01203A356
:10014000120375C2971203A3120375C2961203A37A
:10015000120375C2951203A3120375C2941203A36E
:10016000120375C2931203A3120375C2921203A362
:10017000120375C2911203A3120375C2901203A356
:10018000120375C2901203A3120375C2911203A346
:10019000120375C2921203A3120375C2931203A332
:1001A000120375C2941203A3120375C2951203A31E
:1001B000120375C2961203A3120375C2971203A30A
:1001C000120375C2B01203A3120375C2B11203A3C6
:1001D000120375C2B41203A322120375C2B4C290F3
:1001E0001203A3120375C2B1C2911203A3120375C5
:1001F000C2B0C2921203A3120375C297C293120334
:10020000A3120375C296C2941203A3120375C2957A
:100210001203A3120375C294C2961203A3120375AC
:10022000C293C2971203A3120375C292C2B0120303
:10023000A3120375C291C2B11203A3120375C29037
:10024000C2B41203A31203752212038C1203A31269
:1002500003751203A32212038CD2B41203A3120358
:100260008CD2B11203A312038CD2B01203A31203D7
:100270008CD2971203A312038CD2961203A31203FB
:100280008CD2951203A312038CD2941203A31203EF
:100290008CD2931203A312038CD2921203A31203E3
:1002A0008CD2911203A312038CD2901203A32212B8
:1002B000038CD2901203A312038CD2911203A312C7
:1002C000038CD2921203A312038CD2931203A312B3
:1002D000038CD2941203A312038CD2951203A3129F
:1002E000038CD2961203A312038CD2971203A3128B
:1002F000038CD2B01203A312038CD2B11203A31247
:10030000038CD2B41203A32212038CD290D2B41263
:1003100003A312038CD291D2B11203A312038CD285
:1003200092D2B01203A312038CD293D2971203A3DA
:1003300012038CD294D2961203A312038CD295127C
:1003400003A312038CD296D2941203A312038CD26D
:1003500097D2931203A312038CD2B0D2921203A3AA
:1003600012038CD2B1D2911203A312038CD2B4D255
:10037000901203A322D2B4D2B1D2B0D297D296D2E5
:1003800095D294D293D292D291D29022C2B4C2B1D9
:10039000C2B0C297C296C295C294C293C292C29191
:0C03A000C2902278FF79FFD9FED8FA2223
:00000001FF

Kode diatas tinggal dicopy pastekan di notepad dan di save dengan ekstensi  nama .HEX.
Contoh Savenya :Running Led.HEX
Dari hasil save tadi tinggal diprogramkan ke IC AT89C2051/AT89S2051 menggunakan programmer IC
 ( untuk programmernya browsing di google )
Untuk file dalam bentuk rar disini

Lebih baik sebelum membuat di circuit nyata gunakan proteus untuk simulasinya demikian semoga bermanfaat.





Read more >>
//