Title: Input using logic switches
1Input using logic switches
In this project, we will use port a as both input
and output, by connecting three input bits to
logic switches, and connecting three output bits
to LEDs. Your assignment will be to extend an
example program. Port_a bits 4,5,6 for output,
will be wired to LEDs (as before). Port_a bits
0,1,2 for input, will be wired to three of the
0-1 logic switches on the IDL-800.
2(No Transcript)
3You may choose to use SW0-2
4Example inputtst.asm
5Example cont.
6Example cont.
7Your Assignment
- Lab Preparation
- Create and test the inputtst.asm program on the
wookie simulator. - Modify your program, so that input PA_0 controls
PA_4 output differently instead of determining
whether PA_4 will be on or not, it will determine
how fast PA_4 flashes. 0-slow, 1-fast. The
other inputs/outputs can work to echo the state
of the switches without flashing. - Test your program on the wookie.
- Modify your program to work on the
68HC11/Microstamp. - Hands-On portion next Monday
- Wire your input switches, assembly, download, and
test/debug your program from step 4 on the
MicroStamp. - Demonstrate your working program to your
instructor.