Based on a Single Chip Microcomputer to Realize Electronic Clock Design and Analysis

Similar documents
Design of Digital Voltmeter for Microcontrollers

The engine temperature real-time monitoring instrument based on Microcontroller. Wang Jiayue, Yue Yuntao, Luan Ru, Zhang Jianghui Qin Xin

World Scientific Research Journal (WSRJ) ISSN: Design and Implementation of Stepper Motor Control System Based on 52 MCU

Research on Mine Gas Monitoring System Based on Single-chip Microcomputer

Study of LED Electronic Writing Screen based on Single Chip Dengjin Wu 1

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

8051 Microcontroller

Research and Design of Universal Proportional Valve Controller

Design of Bicycle mileage Speed Meter

8051 Microcontroller Interrupts

Three criteria in Choosing a Microcontroller

Greenhouse Environment Monitoring System Design and Implementation. Lifen Wang

Lecture 1. Course Overview and The 8051 Architecture

Unit I. Introduction Microcontrollers and Embedded processors Overview of the 8051 Inside the 8051 Addressing Modes

Design and Simulation of Temperature Data Acquisition System based on Proteus. Jinghui Su

Approximately half the power consumption of earlier Renesas Technology products and multiple functions in a 14-pin package

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Wireless Remote Water Meter Design of Automatic Meter Reading System

Introduction to 8051 microcontrollers

International Power, Electronics and Materials Engineering Conference (IPEMEC 2015)

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

The Microcontroller Idea Book

Document: Datasheet Date: 22-Mar-11 Model #: 3679 Product s Page:

The Design of Electronic Color Screen Based on Proteus Visual Designer Ting-Yu HOU 1,a, Hao LIU 2,b,*

Embedded World Television, Radio, CD player, Washing Machine Microwave Oven Card readers, Palm devices

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

1. Pin diagram of 8051 and ports

Design and Implementation of CNC Operator Panel Control Functions Based on CPLD. Huaqun Zhan, Bin Xu

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.

Design of the Control System for Step Motor Based on MCU

Design of a Novel Circuit for Chinese Art Colored Lantern Based on Proteus Simulation Environment

Research on Device Control System Design Based on Stepping Motor. Zhongyong Tian

ECE3120: Computer Systems Hardware & Software Development Tools

The IIC interface based on ATmega8 realizes the applications of PS/2 keyboard/mouse in the system

8051 MICROCONTROLLER

SH69P55A EVB. Application Note for SH69P55A EVB SH69P55A EVB SH69V55A

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Design of analog acquisition and storage system about airborne flight data recorder

Shack Clock kit. U3S Rev 2 PCB 1. Introduction

Introduction to Microcontrollers

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

Goal: We want to build an autonomous vehicle (robot)

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

POD 51EH C517A 24 XH0 XH1 XH2 XH3 XH4 XH5 XH6 XH7 XL7 XL6 XL5 XL4 XL3 XL2 XL1 XL0 PE EA ALE PSEN JP1. Figure 1. POD 51EH C517A 24

The Analysis and Research of IPTV Set-top Box System. Fangyan Bai 1, Qi Sun 2

POD 51EH C541U 12 EA ALE PSEN XH0 XH1 XH2 XH3 XH4 XH5 XH6 XH7 XL7 XL6 XL5 XL4 XL3 XL2 XL1 XL0. Figure 1. POD 51EH C541U 12

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Agriculture Wireless Temperature and Humidity Sensor Network Based on ZigBee Technology

Embedded Systems Design (630414) Lecture 1 Introduction to Embedded Systems Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

Design of Underground Current Detection Nodes Based on ZigBee

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

How to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers

Research and Implementation of Message Queue on Key Event Processing

Research on Device Control System Design Based on Stepping Motor Wu Dongyan 1, Xu Wen 1, Wang Mingge 2, Jiang Ruochong 1, Jiang Lifeng 1

World Scientific Research Journal (WSRJ) ISSN: Design and Implementation of Stepper Motor Control System

Using the HT16K33 in DVD Player Panel Applications

Fig 1. Block diagram of a microcomputer

SH69P48A EVB. Application Notes for SH69P48A EVB SH69V48A JP2 J4(ICE_J4) S1 IDD TEST JP1 74HC273 JP4 JP3 74HC273 JP6 STKOVE JP7 SW1 J5(ICE_J5)

DataFlash. Application Note. Using Atmel s DataFlash. Introduction (AN-4)

3. The MC6802 MICROPROCESSOR

3.1 Description of Microprocessor. 3.2 History of Microprocessor

PLC Simulation Control of Assembly Line

M16C/62P QSK QSK62P Plus Tutorial 1. Software Development Process using HEW4

Chapter 2. Overview of Architecture and Microcontroller-Resources

Address connections Data connections Selection connections

FlashFlex MCU SST89C58RC

Microcontroller and Embedded Systems:

NX-51 V2 plus experiment board Documentation 1. NX-51 V2 plus. P89V51RD2 microcontroller Eexperiment board. Documentation

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Keywords Digital IC tester, Microcontroller AT89S52

AKKON USB CONTROLLER BOARD

_ V Intel 8085 Family In-Circuit Emulation. Contents. Technical Notes

Design and Research of Intelligent Remote Control Fan Based on Single Chip Microcomputer and Bluetooth Technology

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

Introducing The MCS 251 Microcontroller -- 8XC251SB

Design of Greenhouse Temperature and Humidity Monitoring System Based on ZIGBEE Technique Ming Xin 1,a, Wei Zhongshan 1,b,*

Introduction to ARM LPC2148 Microcontroller

Memory Expansion. Lecture Embedded Systems

Study of Smart Home System based on Zigbee Wireless Sensor System. Jie Huang 1

1 Digital tools. 1.1 Introduction

The Application of Programmable Controller to Chip Design. Shihong Lan 1, Jian Zhang 2

Renesas New Generation of R8C/Tiny Series MCUs Adds 1.8V Support and Coprocessing With Background Operation to Enable Low-cost Innovative Designs

Sencer Yeralan and Helen Emery Gainesville, Florida January 2000

THE MICROCOMPUTER SYSTEM CHAPTER - 2

PIC Microcontroller Introduction

ZAP Cross Debuggers for Motorola Microcontrollers

MB95260H/MB95270H. MB95280H Series. MB95260H Series/MB95270H Series/

SH69P21 EVB. Application Note for SH69P21 EVB SH69P21 EVB SH69P21

ZKit-51, 8051 Development Kit

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

Lecture (02) PIC16F84 (I)

Human heart rate detector based on photoelectric volume

C H A P T E R 1 INTRODUCTION

The Design of Embedded MCU Network Measure and Control System

Transcription:

2016 International Conference on Manufacturing Construction and Energy Engineering (MCEE) ISBN: 978-1-60595-374-8 Based on a Single Chip Microcomputer to Realize Electronic Clock Design and Analysis Shu-Hua Bai and Su-Ling Li Abstract: The clock, since the beginning of the day of human invention, it has become an essential thing in people's life, but with the continuous development of the times and science and technology, people pay more and more attention to the time concept, so the higher the accuracy of time. So we need to design a new type of electronic clock. Electronic clock is the use of digital circuit to display seconds, minutes, when the device, compared with the traditional mechanical clock, it has a time accurate, intuitive display, no mechanical transmission device, etc., so it is widely used. With the continuous improvement of people's living environment, and the beautification of the digital electronic clock can be seen in many occasions. Among them, in order to achieve the use of single-chip electronic clock is the most common, its main features are: programming flexible, easy to expand the electronic clock function, the use of electronic clock issued a variety of control signals, high accuracy. This paper mainly introduces the method of realizing the electronic clock with the timer counter in the chip microcomputer. The design consists of a single chip microcomputer electronic clock with the necessary circuit, which is based on AT89S52 chip and LED digital tube. Compared with the traditional mechanical watch, it has a more powerful and perfect function. Its time period is 24 hours, it is marked with "59 seconds", in addition, it also has the function of the school. Keywords: Single chip computer, electronic clock, assembly 1. The development of contemporary digital clock 1.1 We know electronic clock has a long history, from the electric clock of 19 years of the republic of China, began in the mid - design of domestic transistors, semiconductor tubular bells, quartz clocks to research began in the late 70s, and today we used in the intelligent electronic clock. Electronic clock before there are many drawbacks, the bulky 1 Shuhua Bai lecturer, master, research direction: information processing, ideological and political management, Nanchang Institute of Technology. Nanchang, Jiangxi 330044, China. 2 Su Ling Li, Nanchang Institute of Technology. 207

appearance, on the function has a walking dead place, when time is not long, the accuracy is not high faults. Now both in appearance, and on the function, electronic clock had greatly improved. 1.2 It should be said that the clock timing function and human behavior and activities have close relations, then the effect of clock, there are a lot of people in your life, because you want to work and forget the time, thus miss out on important arrangement or plan, cause irreparable loss, repent at leisure. We want to develop good concept of time, you need electronic clock reminds us. Therefore, electronic clock has become essential in People's Daily life, it has a very wide range of applications, applied to the family and the station, wharf, theater, office and other public places, to people's life, study, work, entertainment, bring great convenience. 1.3 Design basic idea and main content, design an electronic product, first understand it can realize the function, the most basic function is to realize the time clock system, design of digital electronic clock here, it can realize the function of timing and the school, to electronic clock with electric automatic timing, design a button to reset the clock and the three keys to adjust time. The hardware design is simple, mainly including: monolithic integrated circuit, key circuit, driver circuit, and the LED display four parts. Microcontroller AT89C51 chip, it does not need to external expansion program storage, design circuit is very simple. Because only four buttons, so adopt independent type button makes the design more simple. Is displayed, minutes and seconds add two separators, using 8 bit digital tube, use commonly used 74 ls244 to drive the LED digital tube display characters. Simple digital clock can be realized when the school and hour function, the software using C language to achieve, mainly includes the main program, the key input program, display program, program timer and interrupt routine software modules. The original application to join the schematic diagram, simulation of electronic clock, in seconds, minutes and seconds count and display. Including 60 seconds and can be divided into hexadecimal, counting for 24 hexadecimal. Can be realized through key clock reset and minutes and seconds, when the correction. 2. The overall design of simple digital clock system With microcontroller technology as the core, and fully apply various peripheral circuit components, design one through the display shows the time (hours, minutes, seconds) electronic clock display solution scheme 1: static display is when the CPU will display the word, or field code to output display can show to display the character, if the CPU not to rewrite it, it will continue; Static display hardware overhead is large, complex circuit, slow speed information refresh. Scheme 2: dynamic display is a one to take turns to light display individual bits (scan). For each display, every once in a while to light a; Dynamic display energy consumption is small, but the program is relatively complex. Dynamic display hardware connection is simple and fast information refresh. Because of this design is to display of time, such as the static display, is occupied by the 208

I/O port is more, the circuit is complex, so the choice is the second scheme, adopt the dynamic display. 3. The hardware design and analysis of the electronic clock 3.1 Hardware design principle, the clock circuit is the core of AT89C51, its internal wipe again and again read only with 2 KB Flash program memory data and 128 bytes of random access memory (RAM), without external program memory. Computer clock without a lot of operations and store data, the existing 128 b on chip RAM has been able to meet the requirements, also need not extended RAM. System equipped with eight LED digital tube display and three independent type key, P0 mouth was used as the keyboard interface circuit, P1 and P3 mouth as segment code and bit code output, and in the field code output to 74 ls245 chip, with the chip to drive the LED digital tube display. Using P0.0, P0.1 and P0.2 as the key input port. 3.2 The minimum clock circuit and reset circuit are the single chip microcomputer minimum essential in the single chip microcomputer application system clock circuit diagram, as shown in figure 3-1: XTAL1 and XTAL2 are the input and output of reverse amplifier. The reverse amplifier can be configured to the on-chip oscillator. Crystal and ceramic oscillations can be adopted. Such as driven by external clock source device, XTAL2 should not be answered. More input to the internal clock signal through a binary frequency trigger, so the external clock signal pulse width do not have any requirements, but must ensure that the pulse width of high and low level requirements. +5V C1 RST R1 TA98S51 Figure 3-1. MCU clock circuit diagram. Figure 3-2. On the reset circuit. Reset is to make the single chip microcomputer or other components in the system in a certain number of initial state. Reset the microcontroller's job is to start, when the microcontroller RST pin into high level and keep the two machine cycle, single chip microcomputer internal hold reset operation (continues to maintain a high level, if the pin MCU is in loop reset state). Practical applications, the reset operation there are two basic forms: one kind is on electric reset, another kind is to electricity and reset buttons are effective. Because of this design USES is power on reset, so here just introduced the 209

electric reset and shown in the figure 3-2 below: On electric reset request after turning on the power supply, microcomputer automatic reset operation. Commonly used on electric reset as shown in the above. Electric moment on the RST pin for high level, as the capacitor C1 charging, high level of RST pin will gradually decline. 3.3 The principle diagram of the single-chip microcomputer to realize electronic clock system. AT89C51 P1 mouth access three buttons, pair, minutes and seconds to adjust. P0 port output field code, control to display character, external 74 ls245 chip, drive LED display. P3 output bit code, to control to display, its principle diagram is shown in figure 3-3. 19 18 9 U1 XTAL1 XTAL2 RST P0.0/AD0 P0.1/AD1 P0.2/AD2 P0.3/AD3 P0.4/AD4 P0.5/AD5 P0.6/AD6 P0.7/AD7 39 38 37 36 35 34 33 32 D0 D1 D2 D3 D4 D5 D6 D7 D0 D1 D2 D3 D4 D5 D6 D7 2 3 4 5 6 7 8 9 U2 A0 A1 A2 A3 A4 A5 A6 A7 B0 B1 B2 B3 B4 B5 B6 B7 18 17 16 15 14 13 12 11 S0 S1 S2 S3 S4 S5 S6 S7 29 30 31 PSEN ALE EA P2.0/A8 P2.1/A9 P2.2/A10 P2.3/A11 P2.4/A12 P2.5/A13 P2.6/A14 P2.7/A15 21 22 23 24 25 26 27 28 19 1 CE AB/BA 74LS245 1 2 3 4 5 6 7 8 P1.0/T2 P1.1/T2EX P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 P3.0/RXD P3.1/TXD P3.2/INT0 P3.3/INT1 P3.4/T0 P3.5/T1 P3.6/WR P3.7/RD 10 11 12 13 14 15 16 17 B1 B2 B3 B4 B5 B6 B7 B8 AT89C52 Figure 3-3. System schematic diagram. When plugged into a power supply, digital electronic clock timing starts in seconds. Running state, press the control button S - SET, adjust seconds; Press the M - SET to adjust minute; Press the H - the SET of hours to adjust. So, through three key pair, to adjust the minutes and seconds, respectively, so as to realize adjustable. 4. Conclusion Because the types of MCU, and models of mixed, this also is the difficulty, so the MCS - 51 series products, is a typical method of learning. For similar microcontroller programming of assembly process, is also a very interesting process. Introduced from the first application circuit, and introduces their application method, so that can quickly grasp their application. In order to complete a single chip design work, must, in turn, do the following work: 1, the hardware circuit design, assembly and debugging; 2, the writing of the application software, debugging; 3, complete application software debugging, curing and offline run. And we should try to be in the hardware system design: 1, as far as possible choose typical circuit, the routine use of method and is in 210

line with the single chip microcomputer; 2, under the premise that fully meet the requirements of system function, make allowance for secondary development. 3, the hardware structure design and software design consideration together; 4, related parts must strive to match the performance of the whole system; 5, should have the reliability and anti-jamming hardware design; 6, give full consideration to MCU belt drive capacity. References [1]. Zhu Yongjin editor, such as the single-chip computer application technology, labor, social security of China Publishing House. [2]. Peng Dongming. WeiYouChun editor, the SCM experiment tutorial, University of Science and Technology Press. [3]. Zhu Gujian editor, the single-chip microcomputer principle and application, Mechanical Industry Publishing House. [4]. Hu Hancai editor, the single chip microcomputer principle and interface technology, Tsinghua University Press. [5]. Zhang Wei editor, the single-chip microcomputer principle and application, Mechanical Industry Publishing House. 211