Professional Documents
Culture Documents
Esap A2
Esap A2
1. Utilizing memory map illustration of ARM Cortex-M4 processor, discuss the following key
aspects of memory access:
(1) Important memory regions
ANS:
(3) Internal and external PPB allocation details System control space
2. Consider the memory map of ARM Cortex-M4 processor and analyse the same on the following
aspects:
3. Consider the memory map of ARM Cortex-M4 processor and analyse the same on the following
aspects:
ANS:
(1) Bit band memory regions and their corresponding aliasing regions
(2) Mapping bit band memory regions into their corresponding aliasing regions
(3) Mechanism of reading, writing, and updating bits in the bit band region with the aliasing
addresses
LDR R0,=0x22000008;
MOV R1,#1;
STR R1,[R0];
LDR R0,=0x22000008;
Ldr R1,[R0];
5. Develop assembly code sequence for inspecting 3rd bit of location 0x20000000 using bit band
aliasing address, if the bit is found to be set, then clear registers R1-R7 otherwise leave them
unchanged.
(1) Write the code without using bit band aliasing technique
(2) Write the code for achieving the same task using bit band aliasing technique
(3) Compare the two ways of coding in terms of speed and memory usage