Fall 2010 CSCI 255 Homework 4

Due date

This assignment is due in class or to my office assistant in RH 215 by 3:00 pm on 2 December.

Problem 1

In your answers to the second set of problem, assume all of these instructions are executed independently.

Problem 2

Write a short sections of code that perform that following operations on the PIC24HJ32GP202 (Figure 8.2, p 253) processor.

  1. Make pin 10 a digital input pin.
  2. Make pin 18 a digital output pin.
  3. Make pin 21 an open drain driver.
  4. Read the digital value on pin 10.
  5. Output a digital 1 on pin 18.