Basic knowledge of operating UCOS on S3C2410 (3)-knowledge of arm9-chip related to operating UCOS.

Source: Internet
Author: User

Http://blog.csdn.net/zhanglianpin

Before reading this article, I hope you have some simple concepts about computers. You 'd better have learned the computer composition principles and some basic concepts. If you have learned 51 series of single-chip microcomputer and used 51 series of single-chip microcomputer for some development, it is very easy to read these contents. It doesn't matter if you don't have this knowledge. Based on my learning experience, I can give you a suggestion on how to learn the computer composition principle. You can take a rough look at the computer composition principle. After learning it, you will generally have a general understanding of the computer. During this course, the Computer Major will generally arrange a computer composition principle experiment, this experiment should be well performed to dispel your mysterious understanding of computers. With these foundations, we recommend that you learn the 51 series of single-chip microcomputer and make some development on this small computer, in this way, you will have a more real and profound understanding of the Computer composition principles. After learning 51 series of single-chip microcomputer, you also have a further understanding of computer languages.

Now, we will introduce the knowledge of arm9-chip related to running UCOS.

Generally, a single-chip microcomputer or an on-chip system has the following important knowledge points:

Registers, andProgramThe most direct link to running. It mainly includes General registers inside the CPU, control registers used to control program running, and special function registers.

The main content of the storage system is how to store programs and data and how to organize memory.

Chip Operating mode, which provides different operating environments for program running on hardware.

Interruption and exception systems are a very important concept. interruption is an important means of interaction between people and computers.

 

Use of On-Chip resources, such as timer and serial port resources. These resources are generally programmable. The so-called "programmable" means that they can set their working methods and initialization environment through special concept registers. Of course, the use of these hardware resources does not belong to the knowledge of the arm9-chip, but should be peripherals for the CPU.

 

Of course, to learn any kind of chip, we need to learn its assembly language. assembly language is the only excuse that the chip gives us. We can only issue commands to the chip through the assembly language, let it work as we wish. I will not talk about learning the assembly language of the arm9-chip here. Reference material: arm9's common Instruction Set

 

Also, I will learn the datasheet document of a chip manufacturer. I will learn the chip produced by Samsung Based on arm9-. of course, it is s3c2410datasheet. If your English level is poor, you can refer to the Chinese Document-S3C2410.

Oh, by the way, you can refer to Baidu for the relationship and difference between the ARM chip and the S3C2410 chip.

Now, let's get down to the truth. About hardware related to running UCOS. In fact, the information I listed above is already very detailed. You can certainly understand it by reading these materials. Here I will focus on the connection between these knowledge and UCOS, my main purpose is to introduce how UCOS runs on S3C2410, but I want to clarify the running environment first.

Let's first explain the knowledge about the processor running mode, including the register knowledge, and the exception and interruption knowledge.

From the programmer's point of view, ARM920T has two kinds of compilation excuses: arm instruction and thumb instruction. The knowledge and switching methods of these two commands are not described here. For details, refer to s3c2410datasheet.

The following describes the registers in the arm State and the seven operating modes of the chip.

ARM920T supports 7 operation modes:

Not complete ........

 

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.