Attachment # 00005939 - ECET_330_Homework_4.docx
ECET_330_Homework_4.docx (36.71 KB)
Raw Preview of Attachment:
(refer to the detailed question and attachment below)
Homework 4Question 1. Write a program to get eight-bit data from PORTA and send it to PORTB and PORTC. Make sure to define each port as input or output.             Question 2. Write a program to toggle all bits of PORTA continuously by sending $55 and $AA to it.              Question 3. Write a program to toggle PB3, PB7, and PB5 continuously without disturbing the rest of the bits. Assume that there is a delay procedure that you can call.             Question 4. Write a program to monitor Bit PJ3, which is connected to a switch. When it is HIGH, send 55H to the output port, PORTB. You also need to define the PJ3 bit as an input port, and PORTB as an output port.       Question 5. Eight switches are connected to PORTB and eight LEDs are connected to PORTA. We would like to monitor the first two least significant bits of PORTB (use masking technique).  Whenever both of these bits are set, switch all LEDs of Port A on for one second. Assume that the name of the delay subroutine is DELAY. You do not need to write the code for the delay procedure.

ECET 330 Homework / Lab

Question # 00072956 Posted By: saabsaab Updated on: 05/26/2015 04:53 PM Due on: 05/31/2015
Subject Computer Science Topic Microprocessor Systems Tutorials:
Question
Dot Image
Complete the attached documents. For lab use instructions for procedure and coversheet for answers.
Dot Image
Tutorials for this Question
  1. Tutorial # 00067612 Posted By: neil2103 Posted on: 05/26/2015 07:16 PM
    Puchased By: 3
    Tutorial Preview
    The solution of ECET 330 Homework / Lab...
    Attachments
    ECET330_W4_iLab.docx (40.91 KB)
    ECET_330_Homework_4_(1).docx (37.23 KB)
Whatsapp Lisa