Upload
prakhar-srivastava
View
222
Download
0
Embed Size (px)
Citation preview
8/8/2019 SYNOPSIS Votiong Machine.doc11
http://slidepdf.com/reader/full/synopsis-votiong-machinedoc11 1/8
2009
SUBMITED BY:
RAGHVENRA SINGH
SHREEKANT SINHA
SYNOPSIS ON ELECTRONIC VOTING
8/8/2019 SYNOPSIS Votiong Machine.doc11
http://slidepdf.com/reader/full/synopsis-votiong-machinedoc11 2/8
Voting machine Prototype
Description:
This project is design for the student to make them understand
the technology used in a now a day’s voting machine system, which is used in
whole world. These voting machines are equipped with the CPU, which control
the voting machine. The voting machine is programmed for the specific
operation. Every operation on the voting machine is defined is display on the
Computer Monitor.
Projects summary:
In this project we try to give the Idea of prototype voting
machines. We are using micro controller AT89C51 for controlling the voting
operation. The voting machine is designed for three Political parties. There is a
Monitor display for showing the status of voting by interfacing the voting machine
with the PC. For connecting the voting machine with PC we use the Hyper Terminalcommunication system, which are already come with the Window2000\XP operating
system.
8/8/2019 SYNOPSIS Votiong Machine.doc11
http://slidepdf.com/reader/full/synopsis-votiong-machinedoc11 3/8
Component used:
Sr. no. Component used Quantity (no.s)
1. AT 89c51 Micro controller (base + IC) 1
2. Diode (4007, .7v) 4
3. 10k resistance 2
4. Crystal oscillator (11.0592Mhz frequency) 1
5. L7805CN (voltage regulator) 1
6. Transformer (220v-909) 1
7. LEDs 2
8. 9 Pin DB connector 1
9. Electrolytic capacitor (10 microfarad) 4
10. Electrolytic capacitor (1000 microfarad) 1
11. RS 232 cable (male female) 1
12. 2-Pin connector 1
13. MAX 232 IC 1
14. 2- pin switches 5
15 24C02 1
16. Cello tape (for electrical use) 1
8/8/2019 SYNOPSIS Votiong Machine.doc11
http://slidepdf.com/reader/full/synopsis-votiong-machinedoc11 4/8
$mod51
in equ p0scl bit p2.4sda bit p2.5org 0hljmp main1org 0003hljmp intruptorg 0020hmain1: setb p3.2mov ie,#81hsetb tcon.0mov tmod,#20hmov scon,#50hmov th1,#-3setb tr1setb sclsetb sdasetb p2.6mov r5,#00hmov r6,#00hmov r7,#00h
main: mov in,#11111110bmov a,inanl a,#11111110bcjne a,#11111110b,jsjmp main
j: mov a,in jb acc.1,j2inc r5clr p2.6acall delay1acall delay1
setb p2.6 busy1: jnb p0.1,busy1
8/8/2019 SYNOPSIS Votiong Machine.doc11
http://slidepdf.com/reader/full/synopsis-votiong-machinedoc11 5/8
ljmp eewritesjmp main
j2: jb acc.2,j3inc r6clr p2.6
acall delay1acall delay1setb p2.6
busy2: jnb p0.2,busy2ljmp Iewritesjmp main
j3: jb acc.3,j4inc r7clr p2.6acall delay1acall delay1
setb p2.6 busy3: jnb p0.3,busy3ljmp IIwrite
j4: sjmp mainintrupt:mov dptr,#mydata0acall routsacall delay_15msmov r1,#05hacall stepmov dptr,#mydata1acall routsacall delay_15msmov r1,#06hacall stepmov dptr,#mydata2acall routsacall delay_15msmov r1,#07hacall stepreti
eewrite: mov a,#10100000bacall i2cstartacall i2cwritemov a,#05hmov 30h,aacall i2cwritemov a,r5acall i2cwriteacall i2cstopacall jklljmp main
Iewrite: mov a,#10100000bacall i2cstart
8/8/2019 SYNOPSIS Votiong Machine.doc11
http://slidepdf.com/reader/full/synopsis-votiong-machinedoc11 6/8
acall i2cwritemov a,#06hmov 30h,aacall i2cwritemov a,r6
acall i2cwriteacall i2cstopacall jklljmp mainIIwrite: mov a,#10100000bacall i2cstartacall i2cwritemov a,#07hmov 30h,aacall i2cwritemov a,r7
acall i2cwriteacall i2cstopacall jklljmp maini2cstart: setb sdaacall delaysetb sclacall delayclr sdaclr sclreti2cstop: clr sclclr sdasetb sclacall delaysetb sdamov c,sdareti2cwrite: mov r0,#08hi2cwrite_loop: rlc amov sda,c
setb sclacall delayclr scldjnz r0,i2cwrite_loopmov c,sdasetb sclacall delayclr sclreti2cread: mov c,sdamov r0,#8
rlc ai2cread_loop: setb scl
8/8/2019 SYNOPSIS Votiong Machine.doc11
http://slidepdf.com/reader/full/synopsis-votiong-machinedoc11 7/8
mov c,sdarlc aacall delayclr scldjnz r0,i2cread_loop
retdelay: mov r4,#100loop: djnz r4,loopretdelay1: mov r4,#0ffh
jll: mov r1,#0ffh jl: djnz r1,jldjnz r4,jllret
jkl: mov a,#10100000bacall i2cstart
acall i2cwritemov a,#00hacall i2cwriteacall i2creadacall i2cstopretmydata0: db 'VOTER NO.1=',0mydata1: db ' VOTER NO.2=',0mydata2: db ' VOTER NO.3=',0
routs: clr amovc a,@a+dptr
jz hereacall displayinc dptr sjmp routshere: acall delay_15msretdelay_15ms: mov r3,#4hloop14: mov r2,#0ffhloop1: djnz r2,loop1
djnz r3,loop14retdisplay: mov sbuf,aloopi: jnb ti,loopiclr tiretstep: mov a,#10100000bacall i2cstartacall i2cwritemov a,r1acall i2cwrite
acall i2cstopacall i2cstart
8/8/2019 SYNOPSIS Votiong Machine.doc11
http://slidepdf.com/reader/full/synopsis-votiong-machinedoc11 8/8
mov a,#10100001bacall i2cwriteacall i2creadacall i2cstopmov 33h,a
mov a,r1cjne a,#05h,klmov 34h,33hmov a,33hacall settretkl: cjne a,#06h,kl1mov 35h,33hmov a,33hacall settret
kl1: mov 36h,33hmov a,33hacall settretsett: da amov 37h,aanl a,#0f0hswap aadd a,#30hmov 50h,aacall displaymov a,37hanl a,#0fhadd a,#30hmov 51h,aacall displayretend