Unit 1 - ARM7
Unit 1 - ARM7
Unit 1 - ARM7
Prof. M. N. Kakatkar
Sinhgad College of Engineering
Unit- I:ARM7,ARM9,ARM11 Processors
2
Syllabus:
• ARM and RISC design philosophy
• Introduction to ARM processors and its versions
• ARM7, ARM9 & ARM11 features, advantages &
suitability in embedded application
• ARM7 :-
• data flow model
• programmer’s model, Registers , CPSR, SPSR
• modes of operations
• Introduction to Tiva TM4C123G Series Overview
• Programming model
• Tivaware Library
Text Book: “ARM System Developer’s Guide”, Andrew Sloss ( T1)
RISC PROCESSORS
It is a design philosophy aimed at delivering
simple but powerful instruction set that execute
within a single cycle at high clock speed.
RISC is an acronym for Reduced Instruction
Set Computers
1. Instructions
• Reduced number of instruction classes to provide simple
operations that can each execute in a single cycle.
• Each instruction is a fixed length to allow the pipeline to
fetch future instructions before decoding the current
instruction. (Unlike CISC)
2. Pipelines
• The processing of instructions is broken down into smaller
units that can be executed in parallel by pipelines.
• Ideally the pipeline advances by one step on each cycle for
maximum throughput. Instructions can be decoded in
one pipeline stage.
The RISC Philosophy…
(four major design rules)…
5
3. Registers
• RISC machines have a large general-purpose register set.
• Any register can contain either data or an address.
• (CISC : Have dedicated registers for specific purposes)
4. Load-Store Architecture
• The processor operates on data held in registers.
• Separate load and store instructions : transfer data
between the register bank and external memory. Because
memory accesses are costly.
RISC vs. CISC
RISC CISC
1. Simple instruction taking 1. Complex instruction may
one cycle. take one or more clock
cycles.
2. Large symmetric register 2. Few registers to store
file data.
3. Less instructions to access 3. More instructions to
memory. access memory.
4. Few addressing modes. 4. More addressing modes.
RISC vs. CISC
ARMxyzTDMIEJFS
• x: series - 7/9/11/cortex
• y: Memory management, protection unit
• z: cache
• T: Thumb 16 bit instruction set
• D: On chip Debug support
• M: Enhanced Multiplier
• I: Embedded ICE (built-in debugger hardware-)
• E: Enhanced instruction
• J: Jazelle (JVM): - 8 bit mode
• F: Floating-point
• S: Synthesizable version (source code version for EDA tools)
ARM Variants
T – Thumb Variant
M – Long multiplication instruction variant
D- The ARM core supports debug via JTAG interface.
E- The ARM core supports Enhanced DSP instructions.
F- ARM core supports hardware Floating point unit.
I- ARM core supports hardware breakpoints and watchpoints via
Embedded ICE cell.
J – ARM core supports Jazzle architecture.
Note : All ARM core after ARM 7TDMI supports features,
even name is not given.
ARM7 - Features
19
Java acceleration
DSP extensions
Optional floating point unit
Flexible local memory system with cache and exceptional
Tightly Coupled Memory (TCM) integration
Binary compatibility with the ARM7TDMI® processor
ARM9 - Applications
22
The ARM processor : uses a load-store architecture & has two instruction
types for transferring data in and out of the processor.
a. Load instructions copy data from memory to registers in the core, and
b. Store instructions copy data from registers to memory.
c. No data processing instructions that directly manipulate data in memory.
cpsr
spsr spsr spsr spsr spsr spsr
Special Purpose
Condition Flags
Interrupt Masks
T bit
The T bit reflects the operating state:
• when the T bit is set, the processor is executing in Thumb state
• when the T bit is clear, the processor executing in ARM state.
Processor modes
1. Privileged
2. non-privileged
Note
You can only enter System mode from another privileged
mode by modifying the mode bit of the Current Program
Status Register (CPSR).
Exceptions…
Abort
53
MOVS PC,R14_und
This action restores the CPSR and returns to the next instruction after the
undefined instruction.
Priorities of Exceptions
55
• Factory automation
• Fire and security
• Intelligent lighting control
Features:
• Core- ARM Cortex-M4 processor core
• Performance- 80-MHz operation; 100 DMIPS
• Flash- 256 KB single-cycle Flash memory
• System SRAM 32 KB single-cycle SRAM
• EEPROM 2KB
• Communication Interfaces-
Universal Asynchronous Receivers/Transmitter- Eight UARTs
Synchronous Serial Interface (SSI) Four SSI modules
TIVA Microcontrollers
59