Академический Документы
Профессиональный Документы
Культура Документы
Unit - I
Introduction to Embedded
Computing and ARM Processors
V. VIJAYARAGHAVAN,
Assistant Professor - ECE,
Adithya Institute of Technology,
Coimbatore - 641 107.
Complex
p
systems
y
and microprocessors
p
Embedded system design process
Design example: Model train controller
Instruction sets preliminaries-ARM Processor
CPU: programming input and output
supervisor mode, exceptions and traps
Co-processors
Memory system mechanisms
CPU performance
CPU power consumption.
7/1/2016
x = (a + b) - c;
Assembler:
ADR r4,a
; get address for a
LDR r0,[r4]
; get value of a
ADR r4,b
; get address for b, reusing r4
LDR r1,[r4]
; get value of b
ADD r3,r0,r1
3 0 1
; compute a+b
b
ADR r4,c
; get address for c
LDR r2[r4]
; get value of c
SUB r3,r3,r2
; complete computation of x
ADR r4,x
; get address for x
STR r3[r4]; store value of x
7/1/2016
The negative
g
(N)
( ) bit is set when the result is negative
g
in twos-complement
p
arithmetic.
The zero (Z) bit is set when every bit of the result is zero.
The carry (C) bit is set when there is a carry out of the operation.
The overflow (V) bit is set when an arithmetic operation results in an overflow.
Modebits
M4M3M2M1M0
Modes
10000
UserMode(usr)
bl
I=1,Disableirq
10001
C Carry
F fiq mode
10010
NormalInt Mode(irq)
V Overflow
F=1,Disablefiq
10011
SoftwareInt Mode(svc)
TThumb
10111
AbortMode(abt)
11011
UndefinedInstMode(und)
11111
SystemMode(sys)
N Negative
I irq mode
Z Zero
T=1,ThumbInst.State
T=0,ARMInst.State
7/1/2016
TheinstructionMOVr0,r1setsthevalueofr0tothecurrentvalueofr1.TheMVN
instructioncomplementstheoperandbits(onescomplement)duringthemove.
7/1/2016
7/1/2016
7/1/2016