ANSWER IN PLP ASSEMBLY CODE ONLY I need help getting a UART to read a char in PLP assembly The following files are given. Only get_char should be modified: Need to fulfill the following requirements: Polling Loop: Reading Status Register The value of the status register is successfully read into a register Polling Loop: Reading Status Register The value read from the status register is masked to isolate the ready bit Polling Loop: Condition Check A loop is created through control flow instructions where the loop is only exited if the status register's ready bit is set Receive Buffer Read The receive buffer is successfully read after exiting the polling loop Write Clear Status A clear status command is successfully written to the command register after a character has been read from the receive buffer PLEASE ANSWER WITH CODE FOR get_char IN PLP ASSEMBLY CODE OR THUMBS DOWN THANK YOU IN ADVANCE LOVE YOU

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 18RQ
icon
Related questions
Question

ANSWER IN PLP ASSEMBLY CODE ONLY

I need help getting a UART to read a char in PLP assembly

The following files are given. Only get_char should be modified:

Need to fulfill the following requirements:

Polling Loop: Reading Status Register

The value of the status register is successfully read into a register

Polling Loop: Reading Status Register

The value read from the status register is masked to isolate the ready bit

Polling Loop: Condition Check

A loop is created through control flow instructions where the loop is only exited if the status register's ready bit is set

Receive Buffer Read

The receive buffer is successfully read after exiting the polling loop

Write Clear Status

A clear status command is successfully written to the command register after a character has been read from the receive buffer

PLEASE ANSWER WITH CODE FOR get_char IN PLP ASSEMBLY CODE OR THUMBS DOWN
THANK YOU IN ADVANCE LOVE YOU

main.asm <main program>
TEMAFEENHAIN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.org 0x10000000
# Goal:
#
#
# NOTE: A solution will not be provided for this activity
# Initializations
lui $s0, 0xf000
Implement the subroutine, get_char in the
in the second ASM file, get_char.asm. This
subroutine should wait for a new character
to be received, then copy it into $v0 and
tell the UART the character has been read.
main:
jal get_char
nop
# UART Address
#### Place break point at line 20 (The "j main") ####
j main
nop
Transcribed Image Text:main.asm <main program> TEMAFEENHAIN 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 .org 0x10000000 # Goal: # # # NOTE: A solution will not be provided for this activity # Initializations lui $s0, 0xf000 Implement the subroutine, get_char in the in the second ASM file, get_char.asm. This subroutine should wait for a new character to be received, then copy it into $v0 and tell the UART the character has been read. main: jal get_char nop # UART Address #### Place break point at line 20 (The "j main") #### j main nop
get_char.asm:9
1234567
8
9
10
11
12
# Register Usage:
#
#
$50 - UART address
$v0 Received character
get_char:
# TODO: implement UART receive process here
jr $ra
nop
Transcribed Image Text:get_char.asm:9 1234567 8 9 10 11 12 # Register Usage: # # $50 - UART address $v0 Received character get_char: # TODO: implement UART receive process here jr $ra nop
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage