Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The objective of my assignment is to create a program in CodeWarrior software. I was able to create a coding that represents the conditions of

The objective of my assignment is to create a program in CodeWarrior software. I was able to create a coding that represents the conditions of given goals and instruction, but I keep getting a minor error that is preventing me to complete this exercise. The LEDs8 and LEDs1 appears but it does not match the condition of instruction. I changed the coding multiple of times but the result remains the same. I need a step by step method of how to activate LEDs that match the instruction below. It is due today? Thank you

Goal: To become familiar with branch instructions, loops, using port H as an input port and port B as an output port, using dragon12-Light boards

When both DIP switches #8 and #1 are high, turn on all LEDs.

When both DIP switches #8 and #1 are low, turn off all LEDs

When DIP switch #8 is high and #1 is low, turn on all the even-numbered LEDs.

When DIP switch #1 is high and #8 is low, turn on all the odd-numbered LEDs.

Your program must to read DIP switches and turn on/off corresponding LEDs continuously until a Reset.

Note 1: The DIP switches on the boards are numbered 12345678 for bits 76543210.

Note 2: DIP switches are connected to port H, and LEDs are connected to port B.

image text in transcribed

image text in transcribed

Include derivative-specific definitions The microcontroller chip used by Dragon12-Light boards #include

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

Recommended Textbook for

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions