15) Using the GPR assignments from the previous page, indicate which LEDS connected to PORTD will be lit: CLRF WREG CLRF TRISD 0,0X01 FSROL,4 SKIP LFSR AGAIN: BTFSC BRA INDFO, W SKIP2 ANDWF BRA INDFO, W FSROL,F CTR1 SKIP: IORWF SKIP2: INCF DECF BNZ AGAIN MOVWF PORTD ndicate the LED that are lit by filling in the appropriate circle: (LSB on right)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
**Transcription for Educational Website**

---

**Activity: Using the GPR Assignments to Determine LED Status**

You need to determine which LEDs connected to PORTD will be lit based on the following assembly code instructions:

```
15) Using the GPR assignments from the previous page, indicate which LEDs connected to PORTD will be lit:

          CLRF        WREG
          CLRF        TRISD
          LFSR        0,0X01
AGAIN:    BTFS0       FSR0L,4
          BRA         SKIP
          ANDWF       INDF0,W
          BRA         SKIP2 
SKIP:     IORWF       INDF0,W
SKIP2:    INCF        FSR0L,F
          DECF        CTR1
          BNZ         AGAIN
          MOVWF       PORTD
```

**Task:**
Indicate the LED(s) that are lit by filling in the appropriate circle(s) below. Remember, the Least Significant Bit (LSB) is on the right.

```
[○] [○] [○] [○] [○] [○] [○] [○]
```

**Instructions Overview:**
- Execute the provided assembly language snippet.
- Identify which operations affect the PORTD register that controls the LEDs.
- Determine the LED states and indicate which circles correspond to lit LEDs.

---

**Note:**
This activity helps in understanding how microcontroller registers and assembly language instructions impact connected hardware components like LEDs. Be sure to revisit and thoroughly understand the GPR (General Purpose Register) assignments from the previous page before proceeding with this exercise.
Transcribed Image Text:**Transcription for Educational Website** --- **Activity: Using the GPR Assignments to Determine LED Status** You need to determine which LEDs connected to PORTD will be lit based on the following assembly code instructions: ``` 15) Using the GPR assignments from the previous page, indicate which LEDs connected to PORTD will be lit: CLRF WREG CLRF TRISD LFSR 0,0X01 AGAIN: BTFS0 FSR0L,4 BRA SKIP ANDWF INDF0,W BRA SKIP2 SKIP: IORWF INDF0,W SKIP2: INCF FSR0L,F DECF CTR1 BNZ AGAIN MOVWF PORTD ``` **Task:** Indicate the LED(s) that are lit by filling in the appropriate circle(s) below. Remember, the Least Significant Bit (LSB) is on the right. ``` [○] [○] [○] [○] [○] [○] [○] [○] ``` **Instructions Overview:** - Execute the provided assembly language snippet. - Identify which operations affect the PORTD register that controls the LEDs. - Determine the LED states and indicate which circles correspond to lit LEDs. --- **Note:** This activity helps in understanding how microcontroller registers and assembly language instructions impact connected hardware components like LEDs. Be sure to revisit and thoroughly understand the GPR (General Purpose Register) assignments from the previous page before proceeding with this exercise.
Please use the following GPR register names and contents when answering the following questions: (let the GPRs be reset to the table values upon entering each question)

| GPR NAME | ADDRESS | CONTENTS (HEX) |
|----------|---------|----------------|
| DATA1    | 01      | 5A             |
| DATA2    | 02      | 59             |
| DATA3    | 03      | F9             |
| DATA4    | 04      | DB             |
| DATA5    | 05      | 4E             |
| CTR1     | 06      | 03             |
| CTR2     | 07      | 02             |
Transcribed Image Text:Please use the following GPR register names and contents when answering the following questions: (let the GPRs be reset to the table values upon entering each question) | GPR NAME | ADDRESS | CONTENTS (HEX) | |----------|---------|----------------| | DATA1 | 01 | 5A | | DATA2 | 02 | 59 | | DATA3 | 03 | F9 | | DATA4 | 04 | DB | | DATA5 | 05 | 4E | | CTR1 | 06 | 03 | | CTR2 | 07 | 02 |
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Processes of 3D Graphics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education