ELEC 5260_6260 hw8 Interrupts

ELEC 5260_6260 hw8 Interrupts - ELEC 5260/6260 Homework #8...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ELEC 5260/6260 Homework #8 Due Monday, 3/1/2010 (30 points) To practice with subroutines and interrupt setup, write a program that creates and displays one of two patterns on two sets of 4 LEDs (the old “Thunderbird” tail lights): Right turn pattern: 0000-0001-0011-0111-1111-0000-0001-…. (repeat) Left turn pattern: 0000-1000-1100-1110-1111-0000-1000-…. (repeat) On the uCdragon board, the right-turn LEDs are D4-D3-D2-D1 (the four LEDs to the right) and the left-turn LEDs are D8-D7-D6-D5 (the four LEDs to the left). Button S9 is to initiate/terminate a turn signal, and button S2 selects the direction. Button S9 should trigger an external interrupt when pressed, to indicate when the turn indicator should start and stop. Press S9 once to start the pattern, and again to stop the pattern. Note that button S9 is connected to pin P0.30, which also has function EINT3 (External INTerrupt pin #3). If button S2 is pressed when an interrupt occurs to initiate a turn, turn to the right; otherwise turn to the left. The program is to contain the following modules:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/23/2011 for the course ELEC 6260 taught by Professor Nelson,v during the Summer '08 term at Auburn University.

Page1 / 3

ELEC 5260_6260 hw8 Interrupts - ELEC 5260/6260 Homework #8...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online