Adventure Project (3)

Source: Internet
Author: User
ArticleDirectory
    • Ten years a day
Bronn

Today is Friday. It was a good weekend, but Xiao Zhu was a bit "disappointed ". The new season's drama was launched in 1st day of next month. After a year, the drama set began again. However, "It is easy to decide, and it is difficult to wait." The long waiting period between the episodes on Monday is both expected and tangled.

Ten years a day

Two days ago, on Wednesday, Xiao Zhu completed the fifth version of the mix design and handed it to John blankenbake, the R & D director of the factory. Then he began to create a small batch of prototypes.

Adventure's electronics assembly plant in Shenzhen (Sze) is far from the city, but the transportation is very convenient. Every day, there are 24 hours of operation to design and manufacture various electronic devices. When Zhu was just here at the beginning of the year, he still had nothing to know, and he was confused about how he got into the R & D center. "Probably, I don't have any experience. Are you willing to work hard ?" He can only laugh at himself like this.

John, the director of Sze, arranged Xiao Zhu to participate in the Smart car project. Although later, it should be called the "mentally retarded vehicle" project, for Xiao Zhu, one month, what else can he do? The key is, he is a newbie!

The car project uses the c51 single-chip microcomputer as the core controller. This type of single chip microcomputer was originally Intel's Programmable Control Integrated Circuit 1980 developed for Embedded Systems in 8051 (C was added to 80 and 51 after being changed to a CMOS process ). The previous generation of C51 was developed by Intel as the control chip 8048 for the PC keyboard, which is used to convert keys into serial electrical signals that can be recognized by computer processors.

What a beautiful integrated circuit is the clone product of USSR km1816be48 and 8048 EPROM!

 

Although intel stopped 80C51 in 2007, its compatible IC is still very popular today, and it is widely used as a low-cost controller solution. John decided to use this controller because, thanks to the continuous accumulation since 1980, 80C51's peripheral external devices are very rich and there is a huge amount of development resources for learning, for beginners like Xiao Zhu, It is very suitable as a starting point.

A wide range of external devices (clock, relay switch, digital voice, etc)

However, the 80C51 series provides a simple editor with relatively low performance (generally 12 MHz clock, enhanced performance up to 22 MHz, and each instruction requires an average of 12 clock cycles) weak I/O port capabilities, lack of effective software encryption, and low performance and energy consumption ratio make subsequent new products surpass it one by one.

The mix project was launched one week after the "mentally retarded vehicle" project was suspended.

The mix project integrates a variety of functions (such as USB communication), which is the origin of the project name mix. This time, Sze uses the atmel avr microcontroller. The AVR Microcontroller was developed in 1996 (but it was actually bought from Norwegian Institute of Technology and was designed by two students studying at Norwegian Institute of Technology, the source of the AVR name is the first letter of the two people, a, V, and A, which is not officially recognized by ATMEL ).

 
I think it's the most cost-effective version of the mega Series.

Originally, it was uncomfortable for Xiao Zhu to switch the developed hardware platform when he was a little familiar with the 80C51 series. Discard familiar tools such as Keil and serial download tool to get familiar with new tools. Xiao Zhu started the mix project with such emotions.

The configuration of the AVR series microcontroller is more complex than that of the 51 Series (although it is nothing compared with the later arm ). This increases Zhu's dissatisfaction. Of course, he won't say it directly. I agree that JTAG debugging is available, but the actual prices are very expensive. the cheap ones cannot be connected with open tools!

However, everything changed quickly because Atmel provided a powerful development IDE for AVR: AVR Studio 6.0. Based on Microsoft Visual Studio, AVR studio is dedicated to the development of ATMEL's AVR and arm series microprocessor. Compared with Keil, It is heaven and earth. The most useful one is to directly prompt the variables and function definitions of the contained library or header files, you can intuitively see whether the variable is read or written (the variable names are distinguished by different background colors ). The software debugging function is provided to view the changes of various registers.

With AVR Studio 6.0, leaving 51 is not so painful, and, soon, those seemingly complex settings gradually become a habit, even Let Xiao Zhu be more clear about what he is doing, not as vague as he used to use 51.

The mix project is still in progress, because there are too many functions involved, and many devices are still waiting for the production and supply of factories and suppliers to continue, four months after Xiao Zhu's arrival in Sze, it was rare to see the idle waiting time.

The mix USB communication function in the experiment state directly simulates the USB device with AVR. It is now in the process of waiting for factory supply to transplant the test. Thanks to the V-USB project, we can design USB devices by ourselves!

 

In order not to waste time, Xiao Zhu decided to learn something by himself. Saw online arm is more popular, it gets a piece of stm32f103brt6 arm Cortex-M3 chip tamping. Although director John asked him to complete the work during this timeCompositionFile, and upload it to the inner SharePoint document library of adventure, but these work can be done during the day, he plans to use night time back to learn stm32.

If 80c50 and AVR are eight-bit microcontroller, arm is 32-bit. It has a higher memory and data processing speed. At present, many controllers in mobile phones are arm's (it may be called "microprocessor" at this time. It is more appropriate because of its powerful computing and processing capabilities, especially the Cortex-M4 series with FPU ). Arm is a chip design company in Cambridge, England, but it sells its design to companies like intel and St instead of making chips.

St officially released in June 2007 based on ARM Cortex-M3 core stm32 series microprocessor, almost 10 years after the AVR.

With experience in 80C51 and AVR, Xiao Zhu did not plan to purchase learning boards online from the very beginning. Xiao Zhu intends to create a minimum stm32 system from scratch. You know, the cheapest online learning board for the minimum system based on stm32 also costs 100 yuan, and a stm32 chip is about 15 yuan. Moreover, stm32 supports serial download.ProgramIt is used to download the serial port when we used to learn 80C51 and AVR.

Stm32 minimum system

 

So starting from Wednesday, every night, Xiao Zhu will spend 1 ~ Two hours of research and production of stm32 learning board, so that until Friday night, a total of 4 ~ Five hours later, the minimum stm32 system was created and the program can be burned.

"Oh, that's great !" Zhu was very happy, as if another door was opened to him.

 

However, after a short period of excitement, a loss came. Although the chip has been upgraded, there are no external devices, including the keyboard, serial port, serial port, LCD, and LCD. The Protocol remains the same. You only need to change the chip to do the same thing. Or, we should look at this problem from another perspective because we have a high requirement for using these technologies, so we will upgrade. Just like Lego blocks and small blocks (although imported products are n times more elaborate than domestic counterparts), people's ideas can be transformed into more new things.

An American TV series is waiting. You can only watch one episode in a week. However, in the past, these electronic technologies were displayed in front of Xiao Zhu in just four months until the latest stm32 microcontroller, you can get started in just five hours in three nights. "Ten years a day !" Xiao Zhu sighed and turned off the computer and stood up. He planned to take a bath and meet another weekend.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.