Question

In: Electrical Engineering

Design a Digital Voting Machine using microcontroller based device which can be performed in election electronic...

Design a Digital Voting Machine using microcontroller based device which can be performed in election electronic voting system. (You can allow five candidates and 50 users. The overall result of the election should be displayed after all.)

Create an algorithm to design a solution

Write a programme to implement the given specification selecting an appropriate microcontroller. (Use Assembly or C languages)

Please attach schematic diagrams (Circuit diagram).

Solutions

Expert Solution

Design of Digital voting machine using microcontroller (8051) AT89C51 kit.

A voting machine is device which counts the number of votes for a particluar party. By considering election electronic voting machine we design voting machine by using assembly language instructions in 8051 micro controller kit.

Algorithm is a step by step process of the design of the machine that is shown clearly in below flow chart.

Program in assembly language:

#include<reg51.h>
#definemsec 50
#define lcd_data P2
sbit rs = P3.0;
sbit en = P3.1;
sbit rw = P3.6;
sbit ini_pin= P1.0;
sbit fin_pin = P1.5 // all values are taken as per circuit diagram//
sbit candidate_1 = P1.1;
sbit candidate_2 = P1.2;
sbit candidate_3 = P1.3;
sbit candidate_4 = P1.4;
sbit candidate_5 = P1.5; // given 5 candidates to be selected in question

ASSUME CS:CODE

MOV AX,[P1.1] // the number of votes of candidate 1 is stored in AX register
INC AX
JZ SKIP
ADD [AX],[AX+1] //previous vote stored in AX register and present vote will be added and result will be stored in AX register
MOV BX,[P1.2]// the number of votes of candidate 2 is stored in BX register
INC BX
JZ SKIP
ADD [BX],[BX+1] // previous vote stored in BX register and present vote will be added and result will be stored in BX register

MOV CX,[P1.3]// the number of votes of candidate 3 is stored in CX register
INC CX
JZ SKIP
ADD {CX],[CX+1] //previous vote stored in CXregister and present vote will be added and result will be stored in CX register
MOV DX,[P1.4]// the number of votes of candidate 4 is stored in DX register
INC DX
JZ SKIP
ADD [DX],[DX+1] // previous vote stored in DX register and present vote will be added and result will be stored in DX register
MOV SI,[P1.5]// the number of votes of candidate 5 is stored in SI register
INC SI
JZ SKIP
ADD [SI+1],[SI] // previous vote stored in SI register and present vote will be added and result will be stored in SI register
SKIP: INT 03H
CODE ENDS


Related Solutions

) Design a simple embedded system with PIC16F84A microcontroller (using 20MHz resonator). The system can drive...
) Design a simple embedded system with PIC16F84A microcontroller (using 20MHz resonator). The system can drive a LED light on for 52.6ms on and 26ms off repeatedly. A watchdog timer should be enabled and have a time out period of 72 ms. Sketch the circuit and write the complete assembly program.
Write a code of digital alarm clock 8051 microcontroller using pin AT89S52
Write a code of digital alarm clock 8051 microcontroller using pin AT89S52
Boyer Digital Components Company assembles circuit boards by using a manually operated machine to insert electronic...
Boyer Digital Components Company assembles circuit boards by using a manually operated machine to insert electronic components. The original cost of the machine is $82,900, the accumulated depreciation is $33,200, its remaining useful life is five years, and its residual value is negligible. On May 4 of the current year, a proposal was made to replace the present manufacturing procedure with a fully automatic machine that has a purchase price of $172,400. The automatic machine has an estimated useful life...
what are the ingredients to design a security system using Microcontroller MSP 430? and what is...
what are the ingredients to design a security system using Microcontroller MSP 430? and what is the proper flowchart for this system?
Design an IIR digital filter based on the bilinear transformation method using the following transfer function...
Design an IIR digital filter based on the bilinear transformation method using the following transfer function as a reference (use three decimal places of precision for your response): H (s) = 5 / (s ^ 2 + 1.1s +5) The digital filter must have a resonant frequency at wr = pi / 3 a) Calculate H (z) b) Find the correctly simplified difference equation of the designed system. c) Implement the discrete system obtained using block diagram.. Show every step
It is believed that an electronic device has an average lifetime which is less than or...
It is believed that an electronic device has an average lifetime which is less than or equal to 4 years. A sample of 14 such devices was run until failure, and the average lifetime was found to be 3.56 years with a variance of 1.12. The p-value for the hypothesis test is approximate:
Design a line following robot by using AT89C51 microcontroller, DC motors and line sensors. Use Photo...
Design a line following robot by using AT89C51 microcontroller, DC motors and line sensors. Use Photo transistors and LEDS to design a line sensor. Use DC motos and attach DC motors to Microcontroller by using H-Bridge IC or circuit. Use assembly language for programming. Draw the model and simulate it. Show all the schematics and connections. After Designing Line Follower, convert it into maze solver by using your own algorithm. The robot should start and reach the end point in...
The following partial ANOVA table was based on an experiment performed as a two-factor design with...
The following partial ANOVA table was based on an experiment performed as a two-factor design with 2 levels of factor A, 3 levels of factor B, and 5 observations on each treatment. It was determined that treatment groups were independently selected from a normal distribution with the same variance for each treatment. Source of variation df Sum of Squares Mean Square F Factor A 27 Factor B 2 32 Interaction Error 108 Total 29 227 a) Fill in the missing...
Using the principles and components of digital and linear logic circuits design a circuit that is...
Using the principles and components of digital and linear logic circuits design a circuit that is able to open and close the door of a garage of vehicles according to the following conditions: a) The door will open in the following cases: a.1) a manual push-button is activated and there is sunlight. a.2) the button is not activated, there is no sunlight and the light of a vehicle is detected. b) The door must close after 30 seconds of opening....
Explain the working principle of 12- Hour digital clock using an electronic or block diagram.
Explain the working principle of 12- Hour digital clock using an electronic or block diagram.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT