0% found this document useful (0 votes)
10 views

MSI CEP Proposal

Uploaded by

ammaradil817
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

MSI CEP Proposal

Uploaded by

ammaradil817
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

COMSATS UNIVERSITY ISLAMABAD, ABBOTTABAD

CAMPUS
Department of Electrical and Computer Engineering

CEP Proposal

Subject: Microprocessor Systems and Interfacing

Cricket Scoring Board (Keyboard and LCD Interfacing)

Group members:
Abbas Khan (FA20-EPE-042)
Ammar Adil (FA20-EPE-056)
Ihsan Khan (FA20-EPE-0112)

Date : 15/12/2022
Introduction :
In this project we will make Cricket Scoring Board (Keyboad LCD Interfacing) using PIC18F452
controller.

In this project we will make a cricket scoring board which will be display the runs, numbers of
out players, overs and the run rate on the board.
We will make a code for cricket scoring board and then transfer to the keyboard.
We will make the project by interfacing keyboard and LCD.

It has an interface with 7 segments and touch buttons. Initially, scores were displayed as 0 across
7 segments. When the user presses the B0 button, a result of 4 is added. Pressing B1 adds a result
of 6. Pressing B2 decreases the result by 1, pressing B3 increases the result by 1. Since this score
also changes, it is updated in 7 segments. Details on how to interact with the 7-segment display.
How 7 Segment Works:

The 7-segment display consists of 7 segments and dots. In fact, all segments and dots are LEDs
(Light Emitting Diodes). Each segment, including dots, consists of a total of 8 LEDs. Like
conventional diodes, light emitting diodes allow current to flow in one direction (forward bias)
and block current in the other direction (reverse bias). Each LED has two pins. One for the anode
and one for the cathode. On the common anode, all anode terminals are connected together to form
a common connection, and the remaining 8 cathodes are dedicated to powering the cathode side
of each LED. Connect the common wire to the anode power supply and the cathode power supply
to the corresponding segment of the LED so that it lights up and creates a certain pattern on the
screen. In the common cathode representation, all leads face the common anode. All negative
terminals are connected in a common connection, and the remaining 8 terminals are positive. The
pinout of a commonly used 7-segment display is shown in the figure above.
4x4 Keypad:
Typically we use single I/O pin of a microcontroller unit to read the digital signal, like a switch
input. In few applications where 9, 12, 16 keys are needed for input purposes, if we add each key
in a microcontroller port, we will end up using 16 I/O ports. This 16 I/O ports are not only for
reading I/O signals, but they can be used as peripheral connections too, like ADC supports, I2C,
SPI connections are also supported by those I/O pins. As those pins are connected with the
switches/keys, we can’t use them but only as I/O ports. This is makes no sense at all. So, how to
reduce pin count? The answer is, using a hex keypad or matrix keypad; we can reduce pin
counts, which associate 4x4 matrix keys. It will use 8 pins out of which 4 connected in rows and
4 connected in columns, therefore saving 8 pins of the microcontroller’s.

:
Principle:
This scoreboard works on the principle of up down counter. Value of registers are changed
according to set values at registers. which the output connects to the CLK pin of the
asynchronous bidirectional counter. The output of the counter goes to the input of the 7
segment latch decoder. Each pins of the output goes through a 680 ohms resistor and to the 7
segment cathode display.
The counting is dictated by two buttons which are connected to ground and contains a pull up
resistor. Both buttons goes through the XOR gate and to the ENT pin of the counter which
dictates whether to enable counting or not. One of the buttons goes through the NOT gate and
to the input of the OR gate while the other buttons go to the input of the OR gate. The output
of the OR gate goes to the UP/DOWN pin of the counter.
Components:
1. PIC18F452
2. Keyboard
3. LCD
4. Switch
5. Resisters
6. Ground

Working:
We have interfaced 7 segment and touch buttons. Initially score of 0 is displayed on seven
segments. When user presses button B0 4 is added in the score. When B1 is pressed a score of
6 is added. On pressing B2 1 is decremented from score. And when B3 is pressed 1 is
incremented in the score. This score is also updated on seven segments when it is changed.

Reference:
https://www.micro-digital.net/cricket-score-board-using-8051-and-7-segment/

You might also like