














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















1.1 History of ARM microprocessor ARM, previously Advanced RISC Machine, originally Acorn RISC Machine, is a family of reduced instruction set computing (RISC) architectures for computer processors, configured for various environments. Arm Holdings develops the architecture and licenses it to other companies, who design their own products that implement one of those architectures—including systems-on-chips (SoC) and systems- on-modules (SoM) that incorporate memory, interfaces, radios, etc. It also designs cores that implement this instruction set and licenses these designs to a number of companies that incorporate those core designs into their own products. Figure 1.1 Image of ARM Processor Processors that have a RISC architecture typically require fewer transistors than those with a complex instruction set computing (CISC) architecture (such as the x processors found in most personal computers), which improves cost, power consumption, and heat dissipation. These characteristics are desirable for light, portable, battery-powered devices—including smartphones, laptops and tablet computers, and other embedded systems. For supercomputers, which consume large amounts of electricity, ARM could also be a power-efficient solution. ARM Holdings periodically releases updates to the architecture. Architecture versions ARMv3 to ARMv7 support 32-bit address space (pre-ARMv3 chips, made
before ARM Holdings was formed, as used in the Acorn Archimedes, had 26-bit address space) and 32-bit arithmetic; most architectures have 32-bit fixed-length instructions. The Thumb version supports a variable-length instruction set that provides both 32- and 16 - bit instructions for improved code density. Some older cores can also provide hardware execution of Java bytecodes. Released in 2011, the ARMv8-A architecture added support for a 64-bit address space and 64-bit arithmetic with its new 32-bit fixed- length instruction set. With over 100 billion ARM processors produced as of 2017, ARM is the most widely used instruction set architecture and the instruction set architecture produced in the largest quantity. Currently, the widely used Cortex cores, older "classic" cores, and specialized SecurCore cores variants are available for each of these to include or exclude optional capabilities..
1. 2 ARM architecture ARM machines have a 32 bit Reduced Instruction Set Computer (RISC) Load Store Architecture. (Also read article on CISC & RISC Architecture) The relative simplicity of ARM machines for low power applications like mobile, embedded and microcontroller applications and small microprocessors make them a lucrative choice for the manufacturers to bank on. The direct manipulation of memory isn’t possible in this architecture and is done through the use of registers. The instruction set offers many conditional and other varieties of operations with the primary focus being on reducing the number of cycles per instruction featuring mostly single cycle operations.
three Instruction sets are now the three states on an ARM core and to shift from one state to another, directives like ARM, THUMBX and THUMB are given to the assembler. The evolution of ARM architectures is shown in the figure below: Figure 1.3. Diagram Explaining Evolution Of ARM Architecture The nomenclature of ARMs is based on the type and features used in it. For example in ARM7TDMI, ‘T‘ stands for Thumb, ‘D’ and ‘I’ together comprise the on chip debugging facilities and ‘M’ signifies support for an enhanced multiplier and support for 64 - bit results. ARMx7z like the ARM1176JZ-S indicates AXI bus, physically mapped caches and MMU, has version 6Z architecture. In this way, there is a naming convention for ARM devices. ARM architectures used various stages of pipelining to enhance the flow of instructions to the processors. This allows several operations to be performed simultaneously which would otherwise be performed serially. For example, the ARM7TDMI used 3 stages, ARM9TDMI uses 5 stages and the ARM10TDMI use 6 stages of pipeline to speed up delivery and faster clocking. Cores up to ARM7 followed a Von Neumann type architecture which is essentially memory mapped architecture. ARM9 and its successors shifted to Harvard Architecture which is port mapped. They also provide a robust debugging environment like the Embedded ICE Logic which
connects with the external world through a Test Access Port or a standard IEEE 1149. JTAG connection. This helps shorten the development cycle
1. 3 ARM Registers In general ARMs have 37 registers arranged in partially overlapping banks, with separate register banks for each processor mode thus providing rapid context switching for special operations. The various modes in an ARM can be summarized in the figure below. Figure 1.4. Table Summarizing Various Modes of ARM Registers Each register is 32 bits in size. The registers are roughly divided into: 30 General Purpose Registers: Only 15 GPRs are visible any one time depending on the mode of operation and are numbered R0-R12, Stack Pointer and Link Register. While the stack pointer is essentially used by the compliers like those of C/C++, its use as any other GPR is deprecated. Link register stores return addresses in subroutines or exceptions depending on the mode of operation. Program Counter: Loads the address of destinations on branching operations and may be manually set while doing subroutine calls. Application Program Status Register: It contains a copy of flags from the ALU to check if the conditional instructions were executed.
2. Register Load and Store instructions: Loading the values of single registers to and from the memory are covered under this type of instructions. The values may be 32 bit word, a 16-bit half word or an 8 bit unsigned value. 3. Multiple Register Load and Store Instructions: Facilitate the to and fro movement between the contents of the multiple registers, used in block operations and stack operations. 4. Data Processing Instructions: Operations like addition, subtraction or bitwise logic on the contents of the registers are performed by this type of instructions. 5. Status Register access Instructions: These instructions primarily move the contents between the status registers and the GPRs. 6. Coprocessor Instructions: These provide a general framework to extend the ARM architectures. Anyone with a prior knowledge of basic microprocessor architectures will recognize the striking resemblance between the various classifications and also the instruction set. However there are a few features which cannot be customized by the user himself in ARMs and the job is left to the compiler itself. With the evolution of the Cortex machines, the processors have been now divided into 3 profiles based on the type of application they handle: 1. Application profile: These are application specific processors like the Cortex- A8 which feature Memory management support (MMU) and high performance at low power. 2. Real-time profile: Made for real time processors like the Cortex-R4 which has a protected memory (MPU), and low latencies required for real time applications. 3. Microcontroller profile: These devices are meant for mobile devices like the Cortex-M3. Predictable behavior is the main priority with low gate count and finds use in embedded specific applications. Starting with the old ARMs working at slow cycle speeds, the machines have eventually evolved into high performance machines offering better battery performance and less power consumption. A brief chart of a few architecture families is shown below.
Figure 1.6. Chart Showing Architecture Families of ARM Processor The ARM9 worked on 130-220 MHz clocks typically, which grew to 225- 333MHz in ARM10, 412 MHz in ARM11, 600MHz in ARM Cortex A8 and to 1 GHz in the ARM Cortex A9 line of architectures. Each generational leap is marked with drastic performance improvements just like a generational jump in Pentium machines.
1. 5 Current Scenario & Future ARM has found wide acceptance among the mobile device manufacturers with more that 98% devices being shipped having at least one ARM core. At least 90% of the embedded 32 bit processors are based on ARM. They find use in a multitude of applications ranging from consumer electronics like PDAs, mobile phones etc. and hand held gaming consoles to networking solutions like routers. ARM based customizable microcontrollers developed by licensees like the AT91CAP9 Atmel find use in DSP devices as in FPGAs. ARM processors offer the best MIPS per watt, MIPS per Dollar and best code density in the industry with the smallest die sizes with contemporary RISC processors. Applications in robotics like the ARM Rubik’s Speedcuber are gaining popularity. With the rising popularity of smart phones as their market penetration increases, the ARM cores are gaining more popularity with giants like Google, HTC, Nokia, Adobe, Acer, Nvidia, Motorola, LG and many others all set to standardize the ARM processors for the operating system Android. Over 1.15 billion ARM chips have been placed in tablets and smart phones. Dual cores like the LG Optimus 2X have
2.1 Study of Arm based temperature measurement and control system using CPLD 2.1.1 Introduction
2 .1.2 Block diagram of system Today, there is fast development in the field of microelectronics. Embedded micro processor and other kinds of chips are increasingly used to monitor and control the signals. Embedded system has many advantages, first is it takes much lower manufacturing cost and other is it is portable. ARM9 series micro processor as a signal processing unit is selected. It is a typical RISC CPU with pipeline work mode which
accelerates its operational performance. Also, its characteristics comprise small size, low power consumption. After receiving signal from ADC, CPU computes related signal parameters. The final result will be shown by using display unit. CPLD is used as the central control unit, mounts on the address and data bus of CPU to employ communication between both of them. It is also responsible for coordinating the work of the entire circuit in an orderly manner. Before CPLD gets the signal, it goes two ports: i) voltage conversion; ii) signal filtering. The signal parameters will be sent to the CPU after being analyzed by CPLD. The Fig. 2.1 shows the block diagram of control and measurement system. Figure 2.1 Block Diagram of System The output of temperature sensor is given to ADC MCP3201.Before that signal amplification and filtering is carried out by Precision operational amplifier OP constitutes a signal amplification unit. MAX7403 is a highorder low-pass active filter, It has signal gain 0dB in transmission bands, the signal gain corresponding to the frequency which was higher than the cut-off frequency attenuated by - 80dB. As the temperature is the signal with relatively slow changes, set the cut-off frequency of filter around 38Hz, which can effectively filter out the 50Hz power-line interference caused by system power supply. 2.1. 3 Software implementation The Software is implemented for measuring element of the system. It consists a sensor LM35D from National semiconductor, whose output is sensor is given to ADC input to convert analog voltage to digital data. Clock signal is given from the CPU and the temperature value is read through Dout line of ADC serially. Before collecting the data, the ADC is enabled through chip select line triggered by the CPU. After acquiring
2. 2 .2 System Design The main purpose of the design is to make traditional monitoring system have the capabilities of remote monitoring or data transmission by introducing Ethernet interface it. In the design, structured modular design method is adopted and the system is mainly composed of SPI communication module, processor module and Ethernet interface module, as shown in Fig. 2.2. Figure 2. 2 System structure
SPI communication module is the interface between central processing unit and RF transceiver module nRF24E1. Its work is to receive data form nRF24E1 and then transmit them to the microcontroller LM3S8962. Processor module is the core part of the design, in which the ARM chip LM3S8962 is used to complete the complex operations and receive a lot of data from nRF24E1 as a slave. In the module, data link between SPI port and Ethernet is established, SPI data stream format is specified, the transmission rate between serial data stream and IP data packets is controlled and IP packet is received or sent through reading or writing Ethernet interface module. In the Ethernet interface module, the collected data are uploaded to a PC via Ethernet interface by using the fuctons of OS μC/OS-П and the commands from the host computer are received commands to control the data acquisition system.
2. 2. 3 Communication Module Design
SPI interface is used to realize synchronous serial data transmission between CPU and low-speed peripheral devices by way of full-duplex communication. Its data transfer rate is up to several Mbps. SPI interface works in master-slave mode and it includes four signals: SCLK, MOSI, MISO, and / SS. SCLK is the common clock in the entire SPI bus, MOSI is the master output, slave input, MISO is the host input, slave output and /SS is used to mark slave. In two devices which communicate with each other via SPI bus, the slave is low level and host is high level in / SS pin. In the design, because the front-end RF transceiver module nRF24E1 can only be used as host in SPI communication, the microcontroller LM3S8962 is used as a slave and the mode of a single master and multi-slave are adopted, which is shown in Fig. 2.3.
In the Ethernet interface module, Ethernet controller are divided into two layers according to its functions and it is shown in Fig. 2.5. One is media access controller (MAC) layer and the other is network physical (PHY) layer. They correspond to Layer 2 and Layer 1 in ISO model. MAC layer provides the treatment on data sending and receiving. It also provides an interface to PHY through an internal medium independent interface. Figure 2.5 Ethernet controller and Ethernet interface
Figure 2. 4 SPI interface circuit between LM3S8962 and nRF24E
2. 2. 4 Conclusion