This is an code warrior assignment to be done in assembly language and C programming. Use the tutorial file to correctly format code warrior. File project 1 is the code you'll have to alter to satisfy the instructions below. I also put the lecture and tips in the files to help. You cant use "brset" in the code.
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 LRDs continuously until a Reset.
Note 1: The DIP switches on the boards are numbered XXXXXXXXXXfor bits XXXXXXXXXX.
Note 2: DIP switches are connected to port H, and LEDs are connected to port B.
Note 3: For a discussion on C Programming, please read Chapter 7 of your textbook, and the “Unit 1 CodeWarrior Tutorial for C Programming”.