ARM7 (lpc2146) study notes-0606

Publisher:冰山火影1977Latest update time:2015-10-21 Source: eefocusKeywords:ARM7  lpc2146 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1. ADS
1. Save the file name in full (including the extension)
2. If the *.tdt file is deleted, the entire project will be recompiled
3.*.axf is the debugging file of the project
4. *.scf   scatter loading description file
5. The RelinFLASH version of ADS sets JTAG encryption. After downloading this version of the code, JTAG debugging cannot be used. Use the LCP ISP software provided by Zhou Ligong to erase the program in the chip and it will be OK.
 
2.ARM instructions
6. Little-endian mode: lower bytes are stored at lower addresses (arm7)
  Big endian: lower bytes are stored at higher addresses
7. By performing the same write operation twice on a cell, the data can be written after reset. Because the SRAM controller contains a write-back buffer, the previous data is not actually written into the SRAM until the second write operation is performed.
8.VHB: 0xffe00000~0xffffffff, 16KB for each peripheral
  VPB: 0xe0000000~0xe01fffff, the first peripheral 16KB
9. The basic concept of memory mapping is that each memory group has a "physical" location in the memory map.
10. BOOT Block is a piece of code that the chip design manufacturer solidifies inside the LPC2000 series ARM. It is run first after the chip is reset. Its main functions are to determine which program on the memory is running, check whether the user code is valid, determine whether the chip is encrypted, and the chip's in-application programming (IAP) and in-system programming (ISP) functions. Some of these programs can be called by users, such as the IAP code for erasing the on-chip FLASH. In order to increase the portability of user code, it is best to fix the BOOT Block code at a certain address. However, because the on-chip FLASH size of each chip is different, if the address of the BOOT Block is arranged at the end of the on-chip FLASH, then the BOOT Block address cannot be fixed. Therefore, the chip manufacturer remaps the address of the BOOT Block to the highest point of the on-chip memory space, that is, close to 2G (0x80000000), so that no matter how large the on-chip memory is, it will not affect the address of the BOOT Block. This allows user code containing IAP operations to run on different LPC2000 series ARMs without modifying the IAP operation address.
11.
 — MRS Program Status Register to General Register Data Transfer Instruction
 — MSR general register to program status register data transfer instruction
The format of the MSR instruction is:
MSR {condition} Program Status Register (CPSR or SPSR); field, operand
The MSR instruction is used to transfer the contents of the operand to a specific field of the program status register. The operand can be a general register or an immediate value. The field is used to set the bits in the program status register that need to be operated. The 32-bit program status register can be divided into 4 fields:
Bit [31:24] is the conditional flag bit field, represented by f;
Bit [23:16] is the status bit field, represented by s;
Bit [15:8] is the extended bit field, represented by x; 
Bit [7:0] is the control bit field, represented by c;
This instruction is usually used to restore or change the contents of the program status register. When used, the domain to be operated should generally be specified in the MSR instruction.
12. The BIC instruction is used to clear certain bits of operand 1 and place the result in the destination register.
13. The SPACE directive is used to allocate a continuous storage area and initialize it to 0. The expression is the number of bytes to be allocated.
 

Keywords:ARM7  lpc2146 Reference address:ARM7 (lpc2146) study notes-0606

Previous article:stm32 fsmc function explanation
Next article:ARM7 (lpc2146) study notes-0607

Recommended ReadingLatest update time:2024-11-16 13:44

Development of Remote Intelligent House Control Device Based on ARM7
1 Overall design As shown in Figure 1, the smart home appliance control system consists of a home smart control module, a home internal network system, and a GPRS module. (1) Home smart controller: This part is the core of the system. It adopts embedded system design, can automatically run, process
[Microcontroller]
Development of Remote Intelligent House Control Device Based on ARM7
Pedometer algorithm based on ARM7 ADUC7020+MPU6050
The microcontroller source program is as follows: /********************************************************************* Author        : J Scarlett Date: November 2006 Files          : main.c, display.c, ped.c Hardware      : ADuC7020 Description   : Implements a simple pedometer based on application        
[Microcontroller]
ARM7 Architecture
1. Words and Halfwords of Memory 1. Two consecutive bytes starting from an even address constitute a half-word. 2. Four consecutive word orders of addresses divisible by 4 constitute a word The length of an ARM instruction is exactly one word, and the length of a Thumb instruction is exactly one half word. 2. Memory s
[Microcontroller]
ARM7 Architecture
Image acquisition system based on OV7620 and ARM
OV7620 is a CMOS image sensor, which is widely used in products such as webcams and camera phones. The more common design method for the image acquisition system composed of it is to match OV7620 with OV511+ or CPLD/FPGA. The image data collected by OV511+ or CPLD/FPGA is output to PC or MCU (ARM, DSP, etc.) through US
[Microcontroller]
Image acquisition system based on OV7620 and ARM
Discussion and Implementation of the Method of Porting Based on μC/OS-Ⅱ on ARM7
With the rapid development of embedded technology, real-time multi-tasking operating system as a software platform has gradually become the mainstream of international embedded systems. At present, there are a large number of mature real-time embedded operating systems in the world. Usually, the basic requirements f
[Microcontroller]
Discussion and Implementation of the Method of Porting Based on μC/OS-Ⅱ on ARM7
Design of Human-Machine Interface Module Based on ARM7
0 Introduction With the development of power systems, the system capacity is getting larger and larger, the structure is getting more and more complex, and the information that the automatic control and relay protection devices in the system need to process is increasing, which puts higher requirements on the
[Microcontroller]
Design of Human-Machine Interface Module Based on ARM7
Analysis and Design of ARM7 Startup Code Writing
    Preface     With the improvement of living standards and the advancement of IT technology, the processing power of 8-bit processors can no longer meet the needs of embedded systems; and 16-bit processors have not made great breakthroughs in performance and cost. In addition, in the development of 8-bit machines, a
[Microcontroller]
ARM7 LPC2378 remote upgrade ---- ISP and IAP
       Recently I have been learning the remote upgrade of ARM7. Here I would like to share my learning process with you. If there are any mistakes, please point them out so that I can correct them!          ISP (In-System Programming) means that blank devices on a circuit board can be programmed with end-user code
[Microcontroller]
ARM7 LPC2378 remote upgrade ---- ISP and IAP
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号