0% found this document useful (0 votes)
166 views1 page

Kuwait University Cpe-363: Introduction To Embedded Systems: Homework #3

1) This document contains the homework assignment for CpE-363 Introduction to Embedded Systems. It has 6 questions related to ports, toggling bits, counting zeros, setting RAM bits using different addressing modes, and identifying bit addresses for the 8051 microcontroller. 2) Students are asked to write programs to toggle specific port bits continuously, count the zeros in a register and store in another, and set all RAM bits high from locations 20H to 2FH using byte and bit addressing. 3) The questions cover topics like bit addressable ports, toggling port bits, addressing modes, and identifying bit addresses for the 8051.

Uploaded by

Hazem Almasry
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
166 views1 page

Kuwait University Cpe-363: Introduction To Embedded Systems: Homework #3

1) This document contains the homework assignment for CpE-363 Introduction to Embedded Systems. It has 6 questions related to ports, toggling bits, counting zeros, setting RAM bits using different addressing modes, and identifying bit addresses for the 8051 microcontroller. 2) Students are asked to write programs to toggle specific port bits continuously, count the zeros in a register and store in another, and set all RAM bits high from locations 20H to 2FH using byte and bit addressing. 3) The questions cover topics like bit addressable ports, toggling port bits, addressing modes, and identifying bit addresses for the 8051.

Uploaded by

Hazem Almasry
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Spring 2021 CpE-363/06

_________________________________________________________________________________

Kuwait University
Computer Engineering Department
CpE-363: Introduction to Embedded Systems
Homework #3
(10 points)
Due Date: May 3, 2021

1. (1 point) Which ports of the 8051 are bit addressable?

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

5. (1 point) What addressing mode is used to access the SFR?

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

_________________________________________________________________________________

You might also like