






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is project report by a student to fulfil requirement of course Microcontroller and Assembly Language at Ankit Institute of Technology and Science. It contains Banking, System, Normal, Customer, Register, Golden, Counter, Software, Tools, Microcontroller, Display
Typology: Thesis
1 / 12
This page cannot be seen from the preview
Don't miss anything!







On special offer
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;