SP.711: "Homework Two" ... Due Next Monday, 10/22


1) Re-wire your first PIC (this is a change to make the wiring
      neater too, but only if you want to...) according to the
      following plan:

RB0-RB7: nothing connected to them

RC6: serial transmit (to TTL transmit on the MAX chip)
RC7: serial receive  (to TTL receive  on the MAX chip)

RC2: PWM output, connected to the PWM pin of the LMD18200 (see below))
RC3: direction output, connected to the DIR pin of the LMD18200

RA0-RA2: reserve these for analog inputs (don't connect them yet).

an LED on some pin of your choice (for debugging)




2) Wire a second PIC onto your board,
   with I/O pins connected as follows:

RB0-RB7: connected (via an 8-pin ribbon cable?) to RB0-RB7
         on your first PIC.

the clock pins: connected to the same clock chip used by the
  first PIC.

an LED on some pin of your choice (for debugging)

optional: RC6, RC7 to serial transmit and receive on the
  other channel of the MAX chip (for debugging).



3) Wire the LMD18200 motor driver chip to your board.
   Connect the pins according to what seems reasonable
    from browsing the datasheet (hint: tie the BRAKE pin
    to ground). This is purposefully vague to get you
    to try to puzzle through parts of the datasheet.



4) we have some "serial cable sheaths" you can put on your serial
   connector to make it more robust.