Design and implementation of a digital clock showing digits in Bangla font using microcontroller AT89C4051

Similar documents
AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Microtronics technologies Mobile:

8051 MICROCONTROLLER COURSE

Lab Experiment 1: The LPC 2148 Education Board

AN LPC1700 RTC hardware auto calibration. Document information. RTC, Hardware Auto Calibration, LPC1700, Graphic LCD

Apple iphone/ipod Touch - ieffect Mobile Guitar Effect Accessory & Application

Microcontroller Display Interfacing Techniques

Design and Construction of Variable DC Source for Laboratory Using Solar Energy

AVR Butterfly Training. Atmel Norway, AVR Applications Group

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

Digital Electronics Detailed Outline

POCKET SCOPE 2. The idea 2. Design criteria 3

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

A Digital Timer Implementation using 7 Segment Displays

EvB 5.1 v5 User s Guide

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

USING I2C WITH PICAXE

T Sentry 4 Multi-Point Digital Alarm Instruction Manual

CHAPTER 11: Flip Flops

Dec06-04: Geek Binary Alarm Clock

Description of High Accuracy Digital Pressure Gauge Design

ET-BASE AVR ATmega64/128

Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol

Special Lecture. Basic Stamp 2 Programming. (Presented on popular demand)

DDS VFO CONSTRUCTION MANUAL. DDS VFO Construction Manual Issue 1 Page 1

Controlling a Dot Matrix LED Display with a Microcontroller

Microcontroller Code Example Explanation and Words of Wisdom For Senior Design

ENGI E1112 Departmental Project Report: Computer Science/Computer Engineering

AN3265 Application note

DS12885, DS12885Q, DS12885T. Real Time Clock FEATURES PIN ASSIGNMENT

PolyBot Board. User's Guide V1.11 9/20/08

EC313 - VHDL State Machine Example

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

The AVR Microcontroller and C Compiler Co-Design Dr. Gaute Myklebust ATMEL Corporation ATMEL Development Center, Trondheim, Norway

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

D-MAX WEB GUIDE CONTROLLER WITH OPERATOR INTERFACE PANEL QUICK START SETUP MANUAL

Measuring Resistance Using Digital I/O

Display Message on Notice Board using GSM

Efficient Authorized Access Security System Control Using ATMEL 89C55 & Mobile Bluetooth

Project Development & Software Design

Monitoring of Intravenous Drip Rate

Voltage boost and buck circuits using Atmel AVR Tiny13V for driving a white LED.

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

Upon completion of unit 1.1, students will be able to

How To Program A Microcontroller Board (Eb064) With A Psp Microcontroller (B064-74) With An Ios 2.5V (Power) And A Ppt (Power Control) (Power Supply) (

Cellphone Based Device Control With Voice Acknowledgement

Tutorial. replace them with cell-phone operated module. The advantages of a cell-phone operated bot are:-

A simple RF/Microwave frequency counter

DESIGN OF SMS ENABLED CAR SECURITY SYSTEM

FFT Frequency Detection on the dspic

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

Decimal Number (base 10) Binary Number (base 2)

A PIC16F628 controlled FLL (Frequency Locked Loop) VFO for HF

Accurate Measurement of the Mains Electricity Frequency

Designing VM2 Application Boards

A Prepaid Energy Meter for Efficient Power Management

Development of Low Cost Private Office Access Control System(OACS)

LAB4: Audio Synthesizer

Android Controlled Based Interface

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

8-Bit Microcontroller with Flash. Application Note. Using a Personal Computer to Program the AT89C51/C52/LV51/LV52/C1051/C2051

The components. E3: Digital electronics. Goals:

Seven-Segment LED Displays

Interfacing To Alphanumeric Displays

Gastronorm Supra Cabinet & Counter

K8025 VIDEO PATTERN GENERATOR. Check the picture quality of your monitor or TV, ideal for adjustment or troubleshooting.

3-Digit Counter and Display

Solar Energy Conversion using MIAC. by Tharowat Mohamed Ali, May 2011

Development of a Simple Sound Activated Burglar Alarm System

Neonixie 6 Digit Nixie Clock Controller Introduction and Assembly

Automatic Accident Alert and Safety System using Embedded GSM Interface

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS (LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : DEC.01,1999 TOTAL PAGE : 7 APPROVED BY:

AN974 APPLICATION NOTE

Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication

PART B QUESTIONS AND ANSWERS UNIT I

LCM NHD-12032BZ-FSW-GBW. User s Guide. (Liquid Crystal Display Graphic Module) RoHS Compliant. For product support, contact

The CW Machine Hardware

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

EasyPIC4 User s Manual

Conversion Between Analog and Digital Signals

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

Figure 8-1 Four Possible Results of Adding Two Bits

8-bit Microcontroller. Application Note. AVR400: Low Cost A/D Converter

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

Controller for AD9850 DDS Modules Andy Talbot G4JNT

Lesson-16: Real time clock DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK

HD44780U (LCD-II) (Dot Matrix Liquid Crystal Display Controller/Driver)

Keil C51 Cross Compiler

FEATURES DESCRIPTION. PT6321 Fluorescent Display Tube Controller Driver

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Using the HT1632 for Dot Matrix LED Displays

Lecture N -1- PHYS Microcontrollers

DS1307 Real Time Clock Breakout Board Kit

AC-115 Compact Networked Single Door Controller. Installation and User Manual

An Introduction to MPLAB Integrated Development Environment

Gates, Circuits, and Boolean Algebra

Application Unit, MDRC AB/S 1.1, GH Q R0111

E-Blocks Easy RFID Bundle

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

Interfacing Analog to Digital Data Converters

Transcription:

Design and implementation of a digital clock showing digits in Bangla font using microcontroller AT8C4051 Nasif Muslim, Md. Tanvir Adnan, Mohammad Zahidul Kabir, Md. Humayun Kabir, Sheikh Mominul Islam American International University-Bangladesh (AIUB), Bangladesh arxiv:1208.05v1 [cs.ar] 5 Aug 2012 Abstract In this paper, a digital clock is designed where the microcontroller is used for timing controller and the font of the Bangla digits are designed, and programmed within the microcontroller. The design is cost effective, simple and easy for maintenance. I. INTRODUCTION A clock is an instrument for measuring time. In principle, it requires no more than some physical process which will proceed at a known rate, and a way to gauge how long that process has been continuing. There are different types and sizes of clocks are available. Depending on the method of time display, clocks can be classified by four types. They are i) analog clocks, ii) digital clocks, iii) auditory clocks, iv) textual clocks. Digital clocks display a numeric representation of time. Two numeric display formats are commonly used on digital clocks. They are: 24-hour notation with hours ranging 00 to 23 and 12 hour notation with AM/PM indicator. Most digital clocks use an LCD or LED display. Generally for the designing a digital clock, a microcontroller is used as the controller of the circuit and a Real Time Clock IC [4] is used as counter. But for displaying a Bangla digit character set in Seven Segment Display [5], it is required to use about a hundred or more NAND/NOR gate. It is not feasible to use so many gates and it will increase the size of the hardware too. To solve this problem, bangla digits are designed and programmed in the microcontroller and LCD display [1] is used as a display. Figure 1. LCD designer - the LCD matrix has 7x5 cells II. SOFTWARE DESIGN The software design process consists of two steps. Figure 2. Bangla digit "8" is designed in the LCD designer 1) Bangla digit design 2) Clock algorithm design A. Bangla digit design Bascom-8051 [3] is used to design and simulate Bangla digits. It is a windows BASIC compiler for the AVR family microcontroller. The main advantage of using this software is that, it has an LCD designer by which it is possible to design custom characters or digits for LCD display. It is also possible to examine the custom design using LCD simulator. Figure 3. LCD simulator - Ten Bangla digits

B. Clock algorithm design Clock algorithm design consists of two steps. 1) Time counting process 2) Time adjustment process 1) Time counting process: The responsibility of this process is to count time. At beginning of the process hour, minute and second are set to zero. After passing each second, second is incremented and checked if it exceeds fifty-nine. When second exceeds fifty-nine then second is set to zero and minute is incremented. After passing one minute, it is checked if minute exceeds fifty-nine. when minute exceeds fifty-nine then minute is set to zero and hour is incremented. After passing one hour, it is checked if hour exceeds twenty-three. When hour exceeds twenty-three then hour is set to zero and the process continues all over again. 2) Time adjustment process: The responsibility of this process is to adjust time. This process starts when the user has pressed the SET button. Then, it is checked if the INCREMENT button is pressed. If Yes then hour is incremented and checked if the value is twenty-four. If Yes then hour is set to zero. On the other hand, if the DECREMENT button is pressed then hour is decremented and checked if the value is minus one. If Yes then hour is set to twenty-three. The user again presses the SET button for modifying minutes. It is checked if the INCREMENT button is pressed. If Yes then minute is incremented and checked if the value is sixty. If Yes then minute is set to zero. If the DECREMENT button is pressed then minute is decremented and checked if the value is minus one. If Yes then minute is set to fifty-nine. A. List of circuit components Component name Quantity AT8C4051 1 *2 LCD 1 IN4001 diode 1 11.06Mhz crystal oscillator 1 10K potentiometer 1 10K resistor 3 8.2 resistor 1 Push button switch 3 30pF capacitor 2 10uF capacitor 2 0.1uF capacitor 1 V battery 1 B. Circuit description The three switches set, increment and decrement of the clock are connected to microcontroller through port P3.2, P3.1 and P3.0 shown in figure 6. The crystal oscillator of the clock is connected to the microcontroller through pin no. 5 and 4. The upper four bits of the LCD display is connected to microcontroller pin no. P1.7, P1.6, P1.5, P1.4. The enable, reset pin of the LCD is connected to the microcontroller with pin no. 15 and 14. The R/W pin of the microcontroller is connected to the ground. The contrast of the LCD is connected to the potentiometer. The power supply connection is connected to the pin no. 20 and ground connection is to the pin no. 10. IV. SOURCE CODE IMPLEMENTATION The source code is written in BASIC language. Similarly, the user again presses the SET button for altering seconds. It is checked if the INCREMENT button is pressed. If Yes then second is incremented and checked if the value is sixty. If Yes then second is set to zero. if the DECREMENT button is pressed then second is decremented and checked if the value is minus one. If Yes then second is set to fifty-nine. Now, the user again presses the SET button to stop the process. III. DESIGN OF DIGITAL CLOCK A. Change hour 4 Incr Hh 5 If Hh = 24 Then 6 Hh = 0 7 8 17 If P3.2 = 0 Then The design of a clock circuit includes three units. They are 18 Exit Loop input unit, processing unit and output unit. For input three push 1 button switches are used which reset the time of the clock. For 20 Loop processing a microcontroller AT8C4051 [2] is used. And for 21 output *2 LCD display is used. 11 Decr Hh 12 If Hh = -1 Then 13 Hh = 23 14 15

Figure 4. Time counting process flowchart B. Change minute 4 Incr Mm 5 If Mm = 60 Then 6 Mm = 0 7 8 11 Decr Mm 12 If Mm = -1 Then 13 Mm = 5 14 15 17 If P3.2 = 0 Then 18 Exit Loop 1 20 Loop 21 C. Change second 4 Incr Ss 5 If Ss = 60 Then 6 Ss = 0 7 8

Figure 5. Time adjustment process flowchart

Figure 6. 11 12 13 14 15 Circuit diagram of digital Bangla clock Decr Ss If Ss = -1 Then Ss = 5 17 18 1 20 21 If P3.2 = 0 Then Exit Loop Loop font of the clock is Bangla. The design of the Bangla digtal clock is small and easy to use like other digital clocks. It is possible to enhance the capability of this digital clock. With some hardware and software modification, it can become a fully automatic digital alarm clock showing digits in Bangla. This digital Bangla clock can be more useful if it can provide information like 12 hour clock or 24 hour clock, days of a week, month names, year etc. This features can be added very easily by software modification. In this design, *2 LCD display is used and first eight blocks is used to display second, minute and hour. So there are another eight blocks left to show additional information. The microcontroller AT8C4051 which has 4K memory, has enough memory space available for the additional programming of the microprocessor. The display of the digital Bangla clock can be more attractive by using graphic LCD. R EFERENCES Figure 7. Digital clock showing digits in Bangla V. S UMMARY AND FUTURE WORK To implement a simple timer or counter is trivial, but to design and implement a digital clock showing real time is a complex task. The task becomes more complex when the [1] [2] [3] [4] [5] Vishay electronic gmbh, x 2 Character LCD datasheet. Atmel corporation, Atmel AT8C4051 datasheet. Mcs electronics, BASCOM-AVR. Dallas semiconductor, DS12885 Real Time Clock datasheet. Avago technologies, HDSP Series datasheet.