ARM MODULE 3 Write CP to blink the LED.

eceed2020 9 views 22 slides Jun 11, 2024
Slide 1
Slide 1 of 22
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22

About This Presentation

NOTES IN PPT


Slide Content

Combined Compare and Conditional Branch CBZ (compare and branch if zero) and CBNZ (compare and branch if nonzero).

Conditional Execution Using IT Instructions

Write C code

Instruction Barrier and Memory Barrier Instructions

Write IT code if (R1<R2) then R2 = R2+R1 R3 = R2/2 else R1=R2

Saturation Operations

if a 32-bit signed value is to be saturated into a 16-bit signed value, SSAT.W R1, #16, R0 if a 32-bit unsigned value is to saturate into a 16-bit unsigned value, USAT.W R1, #16, R0

Table Branch Byte and Table Branch Halfword Lsb bit is 0 for PC Hence offset value is multiplied by ? PC value is the current instruction address plus four the branch range for TBB is (2 × 255) + 4 = 514 the branch range for TBH is (2 × 65535) + 4 = 131074. TBB.W [Rn, Rm] Rn is the base memory offset and Rm is the branch table index The branch table item for TBB is located at Rn + Rm Rn + 2 x Rm TBB.W [Rn, Rm]

TBB.W [pc, r0]

Programs

Using Same program store the result in memory called the “result” Write a ALP to add, sub two 16-bit numbers stored in memory & store the result in memory, use appropriate directives

Write a C Program to blink the LED.

A TYPICAL DEVELOPMENT FLOW

CMSIS- Common Microcontroller Software Interface Standard

BENEFITS
Tags