Keil-protues simulation (easy to use)

Publisher:haoyingLatest update time:2021-07-05 Source: eefocusKeywords:keil  protues  simulation Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

I remember that when I was in school, I often used Keil and Protues to study C51 microcontrollers in the laboratory. Now it has been nearly a year and a half since I said goodbye to 51. These days, I am learning UCOSII and want to transplant UCOS to 51 microcontrollers, so I need the previous Keil and Protues, but I have forgotten them all. . . Well, let's briefly review:

1: Download Keil 4 from the Internet

   Download protues from the Internet

2: Installing the above two software may require cracking (this should be known to everyone)

3: Write a simple LED flashing program in Keil 4

#include "AT89X51.H" 

void sleep(int num) 

    while(num) 

    { 

        num--; 

    } 

void main() 

    while(1) 

    { 

        P1_0 = 1; 

        sleep(100000); 

        P1_0 = 0; 

        sleep(100000); 

    } 

 

}

4: Modify the output file type in Keil 4

5: Generate an executable program (suffix .hex)

6: Run ISIS (Protues simulation software)

Draw the simplest "circuit diagram"

Double-click AT89c51, AT89c52

 

Just select the xxx.hex file just generated by keil4

7: Click the Run button in ISIS to view the phenomenon

 

 appendix:

Protues component name

Component Name Chinese Name Description  

7407 Drive Door  

1N914 diode  

74Ls00 NAND Gate  

74LS04 NOT Gate  

74LS08 AND Gate  

74LS390 TTL Dual Decade Counter  

7SEG 4-pin BCD-LED output from 0-9 corresponds to the BCD code of 4 lines  

7SEG 3-8 decoder circuit BCD-7SEG conversion circuit  

ALTERNATOR  

AMMETER-MILLI mA Ammeter  

AND Gate  

BATTERY  

BUS  

CAP capacitor  

CAPACITOR  

CLOCK Clock signal source  

CRYSTAL  

D-FLIPFLOP D Flip Flop  

FUSE  

GROUND  

LAMP  

LED-RED Red LED  

LM016L 2 rows and 16 columns LCD can display 2 rows and 16 columns of English characters, with 8-bit data bus D0-D7, RS, R/W, EN three control ports (a total of 14 lines), working voltage is 5V. No backlight, the function and pins are the same as the commonly used 1602B (except for the two pins for adjusting the backlight)  

LOGIC ANALYSER  

LOGICPROBE Logic probe  

LOGICPROBE[BIG] Logic probe is used to display the logic status of the connection location  

LOGICSTATE Logical state Click with the mouse to change the logical state of the connection position of the box  

LOGICTOGGLE Logic trigger  

MASTERSWITCH button is closed manually and opens automatically immediately  

MOTOR  

OR Gate  

POT-LIN Three-lead variable resistor  

POWER  

RES resistor  

RESISTOR  

SWITCH button manually presses a state  

SWITCH-SPDT Two-way one-button  

VOLTMETER  

VOLTMETER-MILLI mV voltmeter  

VTERM Serial port terminal  

Electromechanical Motors  

Inductors Transformers  

Laplace Primitives Laplace Transform  

Memory ICs  

Microprocessor ICs  

Miscellaneous various devices AERIAL-antenna; ATAHDD; ATMEGA64; BATTERY; CELL; CRYSTAL-crystal oscillator; FUSE; METER-meter;  

Modelling Primitives Various simulation devices are typical basic component simulations, not indicating specific models, only used for simulation, no PCB  

Optoelectronics Various light-emitting devices Light-emitting diodes, LEDs, LCDs, etc.  

PLDs & FPGAs  

Resistors  

Commonly used devices in Simulator Primitives  

Speakers & Sounders  

Switches & Relays Switches, Relays, Keypads  

Switching Devices  

Transistors Transistors (Triodes, Field Effect Transistors)  

TTL 74 series  

TTL 74ALS series  

TTL 74AS series  

TTL 74F series  

TTL 74HC series  

TTL 74HCT series  

TTL 74LS series  

TTL 74S series  

Analog Ics Analog circuit integrated chip  

Capacitors Capacitors  

CMOS 4000 series  

Connectors  

Data Converters ADC,DAC  

Debugging Tools  

ECL 10000 Series Various commonly used integrated circuits 

 

 

 

Discrete component library component names and Chinese-English comparison  

AND Gate  

ANTENNA  

BATTERY DC Power Supply  

BELL bell  

BVC Coaxial Cable Connector  

BRIDEG 1 Rectifier bridge (diode)  

BRIDEG 2 Rectifier Bridge (Integrated Block)  

BUFFER  

BUZZER  

CAP capacitor  

CAPACITOR  

CAPACITOR POL Polarized capacitor  

CAPVAR adjustable capacitor  

CIRCUIT BREAKER  

COAX Coaxial Cable  

CON Socket  

CRYSTAL Crystal Oscillator  

DB parallel socket  

DIODE  

DIODE SCHOTTKY Zener Diode  

DIODE VARACTOR  

DPY_3-SEG 3-segment LED  

DPY_7-SEG 7-segment LED  

DPY_7-SEG_DP 7-segment LED (with decimal point)  

ELECTRO Electrolytic Capacitors  

FUSE  

INDUCTOR  

INDUCTOR IRON  

INDUCTOR3 Adjustable Inductor  

JFET NN channel field effect transistor  

JFET PP channel field effect transistor  

LAMP  

LAMP NEDN Starter  

LED Light Emitting Diode  

METER  

MICROPHONE  

MOSFET MOS tube  

MOTOR AC  

MOTOR SERVO Servo motor  

NAND Gate  

NOR Gate  

NOT Gate  

NPN NPN transistor  

NPN-PHOTO Photosensitive Transistor  

OPAMP  

OR Gate  

PHOTO Photodiode  

PNP transistor  

NPN DAR NPN transistor  

PNP DAR PNP transistor  

POT Slide Wire Rheostat  

PELAY-DPDT Double Pole Double Throw Relay  

RES1.2 resistor  

RES3.4 variable resistor  

RESISTOR BRIDGE? Bridge resistor  

RESPACK ? Resistance  

SCR Thyristor  

PLUG ?  

PLUG AC FEMALE Three-phase AC plug  

SOCKET?  

SOURCE CURRENT  

SOURCE VOLTAGE  

SPEAKER  

SW ? Switch  

SW-DPDY ? Double Pole Double Throw Switch  

SW-SPST ? Single Pole Single Throw Switch  

SW-PB button  

THERMISTOR  

TRANS1 Transformer  

TRANS2 Variable Transformer  

TRIAC ? Three-terminal bidirectional thyristor  

TRIODE ? Triode vacuum tube  

VARISTOR  

ZENER ? Zener diode  

DPY_7-SEG_DP digital tube  

SW-PB Switch  


Keywords:keil  protues  simulation Reference address:Keil-protues simulation (easy to use)

Previous article:Zigbee learning path (VI): Time3 (query method) 1. Introduction
Next article:Three modes of serial communication

Recommended ReadingLatest update time:2024-11-21 20:47

Keil's auxiliary tools and some advanced techniques
In the previous lectures, we introduced the methods of project establishment and common debugging methods. In addition, Keil also provides some auxiliary tools such as peripheral interfaces, performance analysis, variable source analysis, code function analysis, etc., to help us understand the performance of the progr
[Microcontroller]
Keil's auxiliary tools and some advanced techniques
Keil's software logic analyzer (logic analyzer) usage tutorial
Keil's software logic analyzer (logic analyzer) usage tutorial  In Keil MDK, the software logic analyzer has powerful functions, which can analyze digital signals, analog signals, CPU buses (UART, IIC and other output pins), and provide debugging function mechanisms for generating custom signals, such as Sin, triangle
[Microcontroller]
Keil's software logic analyzer (logic analyzer) usage tutorial
Use Keil C software and AVR Atmega series downloader
Keil is the first choice for electronic engineers because it currently covers both C51 and STM32 development platforms. 51 MCU is an 8-bit MCU (AT89C51, STC89C51 and AT89S51), AVR Atmega is also an 8-bit MCU (Atmega328p-pu (Arduino-URO main control chip) STM32, as the name implies, is also a 32-bit chip. Most pe
[Microcontroller]
Use Keil C software and AVR Atmega series downloader
Proteus7.7+Keil2 simulation 80C51 control intersection signal light (with left turn signal light)
In order to design a traffic light with a left turn signal at an intersection, one must first thoroughly understand the control logic of the circular traffic light. In the design process of this example, I designed the signal control logic of this intersection: north-south straight-through release - east-west straig
[Microcontroller]
Proteus7.7+Keil2 simulation 80C51 control intersection signal light (with left turn signal light)
Some experience of using keil c51 compiler
Memory is not as expensive as it was seven or eight years ago, but RAM is still more expensive than ROM and EEPROM, so saving memory in programs is still very important. There are several reasons for this: 1. The access speed of RAM is many times faster than that of EEPROM, but not on the same order of magnitude. This
[Microcontroller]
STM32 code debugging on RAM in Keil MDK5 environment
Steps and diagrams: 1. First, let me give you the CPU data. You should pay attention to the three red circles, architecture, model, Flash and SRAM size as shown in Figure 1     (STM32F107VC 256KB FLASH, 64KB SRAM) figure 1   2. Target settings   1) Check the box to use micro libraries to reduce the size of generated
[Microcontroller]
STM32 code debugging on RAM in Keil MDK5 environment
Keil C51 Data Overlaying
  Generally, compilers dynamically allocate local variables in a function to the stack, and release the space when the function ends. Because the internal memory of 8051 is very small, only 128 or 256 bytes, and the stack also shares this memory. In order to save stack space, local variables are basically statically a
[Microcontroller]
Introduction to Keil debugging commands, online assembly, breakpoint setting and other debugging methods
3. Breakpoint settings When debugging a program, some program lines must meet certain conditions before they can be executed (such as a variable in the program reaches a certain value, a button is pressed, data is received at the serial port, an interrupt occurs, etc.). These conditions often occur asynchronously or
[Microcontroller]
Introduction to Keil debugging commands, online assembly, breakpoint setting and other debugging methods
Latest Microcontroller Articles
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号