Question: 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.

The objective of my assignment is to create a program in CodeWarrior

software. I was able to create a coding that represents the conditions

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!