1. If you have experience in hardware and single-chip microcomputers, it is recommended that you make a minimum system board yourself: If you have never done ARM development, it is recommended that you do not be greedy for perfection at the beginning, and make all the applications well, because the startup method of ARM is different from that of DSP or single-chip microcomputers, and you often encounter various problems. Therefore, it is recommended to first build a small system board with only Flash, SRAM or SDRAM, CPU, JTAG, and reset signals, leaving an expansion interface. If the minimum system can run normally, your task is half completed. Fortunately, the peripheral interfaces of ARM are basically standard interfaces. If you have experience in wiring these hardware, this is a very easy thing for you.
2. Write the startup code. According to the hardware address, first write a small code that can be started, including the following parts:
initialize the port, shield the interrupt, copy the program to SRAM; complete the code remapping; configure the interrupt handle and connect it to the C language entry. Maybe you see that in some sample programs given to you, the bootloader will have a lot of things, but don't be bothered by these complicated programs, because you are not making a development board, your task is to make a small program to make your application run.
3. If you are making hardware, each manufacturer basically has a DEMO board schematic for the chip. Digest the schematic first. In this way, you will have a clear idea of resource allocation when you design in the future. The device's DATSHEET must be digested well.
4. Carefully study the information of the chip you are using. Although arm is compatible in the kernel, each chip has its own characteristics. These issues must be considered when writing programs. Especially girls, don't have a dependent mentality here. You always want to modify other people's sample programs, but the more you modify, the more messy it becomes.
5. Read more operating system programs. There are many open source programs in arm applications. If you want to improve yourself, you should read more programs from others. Linux, uc/os-II, etc. are all very good original codes.
6. If you are doing software, it is best to understand the mechanism of the operating system. Of course, this is a piece of cake for software engineers. But if you are a hardware engineer, it will be a bit difficult. [page]
Q: Is it better to make a minimum system board with 2 layers or 4 layers?
A: Only AT91 can use a two-layer board, and the others can use at least 4 layers; 44b0 ground and power supply can also be used with a two-layer board;
Talking about four-layer boards and 33 ohm resistors:
The selection of four-layer boards is not only a matter of power and ground, but also the impedance of the high-speed digital circuit has requirements for the impedance of the wiring, and it is not easy to control the impedance of a two-layer board. The 33 ohm resistor is generally added to the driver end, which also plays an impedance matching role; when wiring, the data address line and the high-speed line that needs to be guaranteed should be laid first;
at high frequencies, the wiring on the PCB board should be regarded as a transmission line. The transmission line has its characteristic impedance. Those who have studied the transmission line theory know that when there is a sudden impedance change (mismatch) somewhere on the transmission line, the signal will be reflected when it passes through, and the reflection will interfere with the original signal, which will seriously affect the normal operation of the circuit. When using a four-layer board, the outer layer usually has signal lines, and the middle two layers are power and ground planes. This isolates the two signal layers on the one hand, and more importantly, the outer layer's lines and the planes they are close to form a transmission line called a "microstrip", whose impedance is relatively fixed and can be calculated. This is more difficult to do for a two-layer board. The impedance of this transmission line is mainly related to the width of the line, the distance to the reference plane, the thickness of the copper cladding, and the characteristics of the dielectric material. There are many ready-made formulas and programs for calculation.
The high frequency mentioned here is not necessarily a circuit with a very high clock frequency. Whether it is a high frequency depends not only on the frequency, but more importantly on the rise and fall time of the signal. Usually, the rise (or fall) time can be used to estimate the frequency of the circuit. Generally, half of the reciprocal of the rise time is taken. For example, if the rise time is 1ns, then its reciprocal is 1000MHz, which means that the circuit should be designed based on a frequency band of 500MHz. Sometimes you need to deliberately slow down the edge time. The output slope of many high-speed IC drivers is adjustable!
A 33-ohm resistor is usually connected in series at one end of the driver (not necessarily 33 ohms, ranging from a few ohms to 50 or 60 ohms, depending on the specific circuit). Its function is to match the impedance of the trace after being connected in series with the output impedance of the transmitter, so that the reflected signal (assuming that the impedance of the receiving end is not matched) will not be reflected back again (absorbed), so that the signal at the receiving end will not be affected. The receiving end can also be matched, such as using resistors in parallel, but it is rarely used in digital systems because it is more troublesome, and many times one send and multiple receive, such as the address bus, is not as easy to do as the source end matching!
Previous article:Research on embedded service robot controller based on ARM
Next article:Power Management in ARM-Based Portable Systems
Recommended ReadingLatest update time:2024-11-16 16:37
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Semiconductor Device Physics (Shi Min)
- [Analysis of the topic of the college electronic competition] - 2019 National Competition G "Wireless transceiver system for dual-channel voice simultaneous interpretation"
- USB Type-c charging and music listening two-in-one adapter solution
- Prize-winning quiz | Xuanzhi Technology—High-performance, highly integrated motor control solutions
- Playing with Zynq Serial 41——[ex60] Image smoothing processing of OV5640 camera
- Thank you + thank you EEWORLD community
- Medical electronics popular data download collection
- Tailing Micro B91 Development Kit --- Testing Power Consumption in BLE Connections
- Application areas of Bluetooth Low Energy
- GaN Power Devices