Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Keil ARM uVision5 for the program PROGRAM1 To exercise the logical operations, write a program that works with three one-byte data variables labeled STATUS,

Using Keil ARM uVision5 for the programimage text in transcribed

PROGRAM1 To exercise the logical operations, write a program that works with three one-byte data variables labeled STATUS, CONTROL and PERIPH. The program is to perform the following operations -If bit 0 of STATUS is 1, set bit 6 of CONTROL to 1, otherwise set bit O of CONTROL to O. -If bit 7 of STATUS is 0 and bit 3 of STATUS is 0, set bit 2 of CONTROL to 1, otherwise set bit 2 of CONTROL to 0. If bit 5 of STATUS is 1, complement bit 5 of CONTROL Replace bits 5-2 of PERIPH with the hex digit 5, without changing the other four bits of PERIPH Data are stored in "little endian" format (bits are numbered 7 down to O, from left to right, within each byte.) Test the program by initializing STATUS to the value 0x43, CONTROL to 0x00, and PERIPH to 0x77. Display these values in a watch window and/or memory window (as bytes), and capture and print that window to show the final values of STATUS, CONTROL, and PERIPH Repeat for STATUS initialized to 0x88, CONTROL to Oxff, and PERIPH to Oxb5 PROGRAM1 To exercise the logical operations, write a program that works with three one-byte data variables labeled STATUS, CONTROL and PERIPH. The program is to perform the following operations -If bit 0 of STATUS is 1, set bit 6 of CONTROL to 1, otherwise set bit O of CONTROL to O. -If bit 7 of STATUS is 0 and bit 3 of STATUS is 0, set bit 2 of CONTROL to 1, otherwise set bit 2 of CONTROL to 0. If bit 5 of STATUS is 1, complement bit 5 of CONTROL Replace bits 5-2 of PERIPH with the hex digit 5, without changing the other four bits of PERIPH Data are stored in "little endian" format (bits are numbered 7 down to O, from left to right, within each byte.) Test the program by initializing STATUS to the value 0x43, CONTROL to 0x00, and PERIPH to 0x77. Display these values in a watch window and/or memory window (as bytes), and capture and print that window to show the final values of STATUS, CONTROL, and PERIPH Repeat for STATUS initialized to 0x88, CONTROL to Oxff, and PERIPH to Oxb5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Enclose your business card and any other relevant documents.

Answered: 1 week ago