Question: Question 2 : [ 1 0 points ] a ) The program given below has several errors and it consumes extra memory due to some
Question : points
a The program given below has several errors and it consumes extra memory due to some instructions in the program. Rewrite the program to remove the errors and make it efficient so that it consumes less memory.
points
tableLDI R ; initialize loop counter,LDI R ; clear RBACK: LDS R $ADD RRLDS R $SUB RRSTS $RLDI RSUB RRBREQ DONE,JMP BACK,DONE: JMP DONE,
Hint: To reduce memory consumption, recall the memory map of the data address space
b Write an assembly program to generate two square waves simultaneously one on each pin PB and PB respectively, as indicated below. Subroutine called DELAY is available for use. Don't use timers here. points
tableSquare wave of duty cycle on PB
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
