CPTR-215 Assembly Language Programming HW# 14. Due Friday
The goal of this homework is to learn about general purpose I/O
(gpio) port zero. Specifically, 1) how, in a program, to specify if a port bit is
an input port or an output port, 2) how to set port bits to
logic one, and 3) how to clear port bits to logic zero.
I have created an example program named demo_gpio.s that you can
download, run with the simulator, and learn how to view the
gpio bits with the debugger. An accompanying document describes
how to view the gpio bits with the debugger. Look at these
before doing HW#14.
HW#14 definition-
Write a program that will do the following:
- Configure port zero bits 8 to 15 as output bits
- Set two bits, bits 8 and 15, to logic one with one store
- Set two more bits, bits 9 and 14, to logic one wiht one store
- Set bit 11 to logic one
- clear bits 15 and 9 to logic zero with one store
Run the program with the debugger (single stepping) and observe
the gpio bits.
Turn in a hardcopy of your program and note on it any issues
or problems you may have had.
And one more thing. Copy the cptr215.ova file on the linux machines
from the /home/classes/cptr215 directory to your own directory. On
Thursday I will put a note here on the web site detailing that.
Larry Aamodt PhD, PE
Professor of Engineering and Computer Science
Walla Walla College
Contact:
via email: AamoLa (at) wallawalla.edu
via phone: x2058