Simulation Design of Single Chip Microcomputer Real-time Clock Based on Proteus

Publisher:mancozcLatest update time:2010-10-19 Source: 科技资讯 Keywords:Proteus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Proteus is one of the most advanced MCU CPU and peripheral circuit simulation tools. This article introduces the characteristics of the MCU simulation software Proteus, and introduces the process and method of circuit design and simulation using Proteus in detail with the example of real-time clock circuit, aiming to provide a good learning platform for MCU enthusiasts and technicians.

Single-chip microcomputer technology is applied to all walks of life and is a practical intelligent control technology. The development of single-chip microcomputer technology has greatly promoted the rapid development of electronics, communications, computers, mechatronics and other industries, and has become a popular technology in current teaching and scientific research. This article introduces a new type of single-chip microcomputer simulation software Proteus in detail, which can be used to realize the simulation of many port-oriented and peripheral device expansion control experiments in single-chip microcomputer teaching, improve teaching effects, and further shorten the distance between teaching and engineering practice.

1 Introduction to Proteus

ProteusISIS is a circuit analysis and physical simulation software developed by Lacenterelec-tronics in the UK. It has a wide range of applications, including PCB plate making, Spice circuit simulation, microcontroller simulation, and simulation of ARM7/LPC2000. Proteus is mainly composed of two modules, ARES and ISIS. ARES is mainly used for the design of printed circuit boards (PCBs) and their circuit simulation, and ISIS is mainly used for the design and simulation of schematic diagrams. It runs on the Windows operating system and can simulate and analyze (SPICE) various analog devices and integrated circuits. The characteristics of this software are: ① It realizes the combination of microcontroller simulation and SPICE circuit simulation. It has simulation of analog circuit simulation, digital circuit simulation, and simulation of systems composed of microcontrollers and their peripheral circuits; there are various virtual instruments, such as oscilloscopes, logic analyzers, signal generators, etc. ② It supports the simulation of mainstream microcontroller systems. The types of microcontrollers currently supported are: 68000 series, 8051 series, AVR series, ARM series, PIC12 series, PIC16 series, PIC18 series, Z80 series, HC11 series, and various peripheral chips. ③ Provide software debugging function. The software simulation system has debugging functions such as full speed, single step, and breakpoint setting. At the same time, you can observe the current status of various variables, registers, etc.; it also supports third-party software compilation and debugging environments, such as KeilC51uVision2 and other software. ④ Has powerful schematic drawing function. In short, this software is a simulation software that integrates single-chip microcomputer and SPICE analysis, and its functions are extremely powerful.

Taking the microcontroller real-time clock circuit as an example, the following introduces the process of designing and simulating the microcontroller real-time clock circuit using Proteus.

2 Hardware circuit diagram design

The hardware of the real-time clock circuit is mainly composed of AT89C51 single-chip microcomputer, clock chip DS1302, digital tube display driver chip MAX7219 and other components. The real-time clock circuit schematic is shown in Figure 1.

After running ProteusISIS, the main window interface of the program appears. Click the Component button in the component toolbar on the left side of the window with the left mouse button, and then click the PickDivices. button in the component selection area on the left side of the window. The PickDevices window pops up. After clicking the MicroProcessorICs item in the Category column, various types of CPU devices will appear in the Results column. After finding AT89C51, double-click it, and AT89C51 will be added to the component list area on the left side of the current window. Use the same method to add DS1302, MAX7219, digital tube, crystal oscillator, and multiple resistors and capacitors to the device list area. Then click the devices in the list area in turn, click the left button to put them in the drawing area, right-click to select the components, and edit their properties. After reasonable layout, connect them. After all the wires are drawn, add the power and ground symbols, and the drawing of the schematic is completed. Save the design file in the C: ProgramFile Lacenter Electronics Proteus7 Professional clock folder, and the file name is clock.DSN.

3 Software Design and Implementation

The main functions of the software of this real-time clock circuit include the setting of the clock chip DS1302 and the reading of the time, and the digital tube display driver chip MAX7219 driving the time display, etc. The software is written in assembly language. After editing in the WAVE3.2 integrated debugging software, it is saved with the file name DS1302.asm and compiled to generate a hexadecimal target file DS1302.hex. It is also saved in the C:ProgramFileLacenterElectronicsProteus7Professionalclock folder.

4 System simulation analysis

After the circuit schematic is designed in ISIS and the system software is compiled into a .hex file, the virtual simulation of the real-time clock circuit can be performed. In the schematic diagram of ISIS, right-click AT89C51 to select it, then click the left button to open the EditComponent dialog box of AT89C51, select the file DS1302.hex in the ProgramFile option, and click the OK button to complete the simulation settings. Click the Run button of the simulation button below ISIS, the system starts running, and the current time is displayed in real time.

Circuit Schematic

5 Conclusion

Through the example of using Proteus software to realize the simulation design of single-chip real-time clock circuit in this paper, it can be concluded that introducing Proteus software into single-chip computer course for auxiliary teaching is a reform of teaching method. It is a comprehensive application of virtual simulation technology and computer multimedia technology, which is conducive to promoting curriculum and teaching reform, and is more conducive to cultivating students' innovative quality and creativity. At the same time, Proteus's constantly improving functions and powerful simulation capabilities are loved by more and more designers, and it has also been gradually promoted in student electronic design competitions.

Keywords:Proteus Reference address:Simulation Design of Single Chip Microcomputer Real-time Clock Based on Proteus

Previous article:Design of serial communication based on MPC860 and ST16C654
Next article:Design of domestic wastewater treatment system based on single chip microcomputer

Recommended ReadingLatest update time:2024-11-16 23:31

ARM virtual development technology based on Proteus
introduction Nowadays, embedded devices exist in every corner of people's lives, such as digital cameras, mobile phones, TV set-top boxes and PDAs. Most of these embedded devices use 32-bit RISC embedded processors as core components. Among them, embedded processors based on ARM cores are the best, accounting for mo
[Microcontroller]
ARM virtual development technology based on Proteus
Multiphysics Simulation Helps Solve Increasingly Complex Design Problems
Growing consumer demand for miniaturized electronics and Internet of Things (IoT) products is creating new challenges for experts in the design of micro components such as actuators, controllers, drives, sensors, and transmitters. From responsive devices and wearable monitors to energy-efficient office lighting and fa
[Internet of Things]
Multiphysics Simulation Helps Solve Increasingly Complex Design Problems
AVR microcontroller proteus simulation lesson 3: single digital tube
Select 7SEG-MPX1-CC for the digital tube, a common cathode digital tube. That is, low level selection (rightmost pin), the 8 pins on the left side of the digital tube, from left to right, from low to high, are connected to PC0---PC7 respectively. The c program is as follows: #include avr/io.h #include util/delay.h
[Microcontroller]
AVR microcontroller proteus simulation lesson 3: single digital tube
AT24C1024 proteus 2-wire Serial EEPROM 1
The i-th address is written to i Note that when reading data, if((TWSR & 0xF8) != 0x10) //0x10 Repeat START has been sent... not 0x08. There is also a slight delay between the 2 reads and writes. Otherwise, no results will be obtained.   The data sheet for avr is well written, and there are many program source cod
[Microcontroller]
AT24C1024 proteus 2-wire Serial EEPROM 1
ATmega16 LCD12864 display program and proteus simulation project files
  #include iom16v.h #include macros.h #include"12864.h" #include"main.h" void port_init(void) { DDRC=0xFF; //12864 data port, set to output PORTC=0xFF; en_out; //Set EN output rw_out; //set rw output rs_out; //set rs output cs1_out; //set cs1 output cs2_out; //set cs2 output  } /*** ******12864 write command
[Microcontroller]
ATmega16 LCD12864 display program and proteus simulation project files
Proteus and Keil Cx51 microcontroller simulation (timer application 1)
Use a timer to make the LEDs connected to P0, P!, P2, and P3 ports flash 10 times every 10 seconds; set the low and high level lights of P0, P!, P2, and P3 ports to be on, otherwise the lights will be off. Circuit diagram: C program:   #include reg51.h #include intrins.h #define uchar unsigned char bit fl
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号