Microprocessor and Interfacing Lab Eee 424, Sec: A: Project
Microprocessor and Interfacing Lab Eee 424, Sec: A: Project
PROJECT: DESIGN AND SOFTWARE IMPLEMENTATION OF BANGLA TWO DIGIT COUNTER USING DOT MATRIX DISPLAY.
Project Summary:
The main objective of our project was to design a two digit counter that can count from 0 to 99 in bangla numbers.
Designing Elements : One AT89C51 micro-controller. Two 8 8 Dot Matrix Displays. NOT Gates. Wires.
There are 64 LEDs in a 8 by 8 matrix. The LEDs become activated if the cathode (row) is connected to the ground and the anode (column) is connected to a positive supply. If the matrix is turned on and off within a period of 25ms, then our eyes cannot catch up with the flickering and we are able to see a flicker-free display.
U3
NOT
U4
NOT
U5
NOT
U6
NOT
U7
NOT
U8 NOT
U9
NOT
U1
17 16 15 14 13 12 11 10 28 27 26 25 24 23 22 21 32 33 34 35 36 37 38 39 P3.7/RD P3.6/WR P3.5/T1 P3.4/T0 P3.3/INT1 P3.2/INT0 P3.1/TXD P3.0/RXD P2.7/A15 P2.6/A14 P2.5/A13 P2.4/A12 P2.3/A11 P2.2/A10 P2.1/A9 P2.0/A8 P0.7/AD7 P0.6/AD6 P0.5/AD5 P0.4/AD4 P0.3/AD3 P0.2/AD2 P0.1/AD1 P0.0/AD0 AT89C51 P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 P1.0 8 7 6 5 4 3 2 1
EA ALE PSEN
31 30 29
RST
XTAL2
18
XTAL1
19
Output Simulation
Code Algorithm
In the software code, we have used data pointer (DPTR) to call for different digits which are shown in the matrix. Each single digit is specified in DB directives and stored in memory locations using ORG directives. For example, the DB directive code for ek(bangla) is as follows: ORG 0116H DB 80H, 01H,42H,02H, 25H,04H, 15H,08H, 0DH,10H, 06H,20H, 00H,40H, 00H,80H Port 1 and 3 are used to send data codes column-wise and port 2 is used as a common port to activate the rows. First display activates when port 1 and 2 are used and second display activates when port 3 and 2 are used.
Limitation
We faced difficulty in setting the precise delay to display the digits properly without any flickering.
THANK YOU