Learn these things about microcontrollers

Publisher:MagicGardenLatest update time:2021-06-23 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

First of all, every microcontroller programming software has a software simulation function. We can learn some functions of the microcontroller through this software simulation function.

For example, the software simulation function can be used to realize the high and low level output of the microcontroller port, and then the corresponding port can be observed.

We can check the value of the register to see whether the program is executed correctly; we can also write a timing program to implement the output function of the port at a fixed time (for example, 1 second), and use software simulation to see whether the interrupt is entered according to the set time, etc. However, the function of software simulation is really limited. At most, we can only see whether the corresponding register is executed correctly. Because there is no cooperation with the hardware circuit, we can't see whether the circuit is executed correctly.


Therefore, the software simulation function of the microcontroller programming software can only be used to learn about microcontrollers to a limited extent.


The first software I recommend in this regard is Proteus, which is the software I have seen and used so far, and can simulate many types of microcontrollers.

Piece.

The microcontrollers supported by the proteus software include: 51 microcontroller, PIC microcontroller, MSP430 microcontroller, Freescale microcontroller, and also supports ARM7 of the LPC21xx series and some cortex m3 chips.


Especially for 51 single-chip microcomputer, proteus has embedded 51 single-chip microcomputer programming software keil into it, which can be used in

Proteus is used for program writing, circuit construction, system simulation, PCB generation, etc. It is equivalent to realizing all functions of a single-chip microcomputer, such as software design, hardware design, PCB drawing, etc., which is very convenient.


Proteus is very powerful. We can draw the circuit diagram first, then load the compiled MCU burning file into the MCU in the circuit diagram, and then run the entire MCU system to observe whether each part of the circuit is the same as the software function we designed, such as whether the LED is lit, the LCD is displayed, the key is detected, and the IIC device accesses data normally, etc. Proteus even provides a lot of virtual instruments, such as virtual oscilloscopes, voltmeters, ammeters, logic analyzers, etc. These instruments can be used to observe the operation of programs and circuits. For example, an oscilloscope can be used to observe whether the output waveform of the PWM we designed meets the design requirements.

Keywords:MCU Reference address:Learn these things about microcontrollers

Previous article:Comparison of some abbreviations of single chip microcomputer
Next article:Preparatory tasks for studying single chip microcomputer

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号