Docsity

Banking System-Microcontroller and Assembly Language-Project Report, Thesis of Microcontrollers

Partial preview of the text

Download Banking System-Microcontroller and Assembly Language-Project Report and more Thesis Microcontrollers in PDF only on Docsity!

Project Report

Banking System

ACKNOWLEGMENTS

We first thank to Allah who gives the power and

courage to accomplish this Project after this

there is also a big hand of our teacher who help

and guide us at every stage without their

guidness it was unable for us to achieve this.

Thanks to all.

Microcontrollers & Assembly language

Programming

Project Report

Project Title

Banking System

Introduction

The project involves the bank arrival and scheduling mechanism for the clients. Different clients like Golden customers and normal customers are given the precedence level. Golden customer is given high priority. The project can handle 80 normal and 19 golden clients. Whenever a person enters in the bank, he gets a token a number is allotted to him which is between 01~80 for normal clients and 81~99 for golden customers. We have two counters for customers if there is a golden customer he will be served first. We need four register to store values of token. Two are for Golden customers and remaining two are for Normal customer. We named them as Normal Customer Register (NCR) which store value of last token issued to normal customers. Golden Customer Register (GCR) which store value of last token issued to golden customers. Counter Normal Customer Register (CNCR) which store value of last normal customer attended by bank staff. Counter Golden Customer Register (CGCR) which store value of last golden customer attended by bank staff.

Implementation

Hardware:

Hardware includes:

Components

๏ƒ˜ 8051 microcontroller ๏ƒ˜ 7 segment Display Common Anod ๏ƒ˜ Push Button ๏ƒ˜ Capacitors 10 uF ๏ƒ˜ Capicitors 33 pF

Number Segments Hex 0 1100 0000 C 1 1111 1001 F 2 1010 0100 A 3 1011 0000 B 4 1001 1001 99 5 1001 0010 92 6 1000 0010 82 7 1111 1000 F 8 1000 0000 80 9 1001 1000 90

Description of the Circuit

๏ƒ˜ Bank Counter 7 segment Display are connected to port P3. ๏ƒ˜ Bank Customer 7 segment Display are connected to port P3. ๏ƒ˜ Push Buttons are connected on port0. ๏ƒ˜ Port 2 is used to active 7 segment Displays by providing Common Anode signals. ๏ƒ˜ Push Button at Port 0.0 is used for Golden Customers. ๏ƒ˜ Push Button at Port 0.1 is used for Normal Customers. ๏ƒ˜ Push Button at Port 0.2 is used for Bank Counter1. ๏ƒ˜ Push Button at Port 0.3 is used for Bank Counter1.

Simulation diagram on Proteus

if(nc==0) // P2=0x00; { if(ncr==80) { ncr=0; } else { ncr=ncr+1; } display_c(ncr); }

if(c1==0) { if(cgcr<gcr) { cgcr=cgcr+1; display_c1(cgcr); } else if (cncr<ncr) { cncr=cncr+1; display_c1(cncr); } }

if(c2==0) { if(cgcr<gcr) { cgcr=cgcr+1; display_c2(cgcr); } else if (cncr<ncr) { cncr=cncr+1; display_c2(cncr); }

} } }

void display_c(unsigned int cus) { unsigned char msbcus=0,lsbcus=0; unsigned int x=0; unsigned int i=0;

msbcus=cus/10; lsbcus=cus-10*msbcus;

for(x=0;x<100;x++) { P2_2=1; P1=Num[msbcus]; for(i=0;i<910;i++); P2_2=0; P2_3=1; P1=Num[lsbcus]; for(i=0;i<1000;i++); P2_3=0;

} }

void display_c1(unsigned int cus) { unsigned char msbcus=0,lsbcus=0; unsigned int x=0; unsigned int i=0; msbcus=cus/10; lsbcus=cus-10*msbcus;

for(x=0;x<100;x++) { P2_6=1; P3=Num[msbcus]; for(i=0;i<910;i++); P2_6=0; P2_7=1; P3=Num[lsbcus]; for(i=0;i<1000;i++); P2_7=0;

} }

void display_c2(unsigned int cus) { unsigned char msbcus=0,lsbcus=0; unsigned int x=0; unsigned int i=0; msbcus=cus/10;