Kuwait University Cpe-363: Introduction To Embedded Systems: Homework #3
Kuwait University Cpe-363: Introduction To Embedded Systems: Homework #3
_________________________________________________________________________________
Kuwait University
Computer Engineering Department
CpE-363: Introduction to Embedded Systems
Homework #3
(10 points)
Due Date: May 3, 2021
2. (2 points) Write a program to toggle P1.7, P1.5, and P2.3 continuously without
disturbing the rest of the bits.
3. (2 points) Write a program to find the number of zeros in register R, then store
it in R5.
4. (2 points) Write a program to set high all the bits of RAM locations 20H to 2FH
using the following methods:
a) byte addresses
b) bit addresses
6. (2 points) The following are bit addresses. Indicate where each one belongs.
a) 85H
b) A7H
c) 87H
d) B3H
e) 88H
f) D7H
g) 8DH
h) D4H
_________________________________________________________________________________