70 likes | 285 Views
ECE 3551 MICROCOMPUTER SYSTEMS 1 Final. By: Jafar alrashdi Instructor: Dr. Kepuska. Purpose:. I use Blackfin BF533 Processor, to Program the buttons pF8, pF9, pF10, pF11) to do the following: PF8: turn on and off the Blackfin BF533 Processor. PF9: Switches the sound between speakers.
E N D
ECE 3551MICROCOMPUTER SYSTEMS 1Final By: Jafaralrashdi Instructor: Dr. Kepuska
Purpose: • I use Blackfin BF533 Processor, to Program the buttons pF8, pF9, pF10, pF11) to do the following: • PF8: turn on and off the Blackfin BF533 Processor. • PF9: Switches the sound between speakers. • PF10: Increase Volume. • PF11: Decrease Volume. • And the LED’s were programmed to correspond to the gain levels. The LED’s increment up along with the amount of times the PF10 and PF11 buttons are pushed
Procedure: • if (*pFIO_FLAG_D == 0x0100) // checks if bit 8 was pressed or changed to 0 • { • pf8++; • if (pf8 == 2) • { • pf8 = 0; • } • *pFIO_FLAG_C = 0x100; • mute(); • }
if (*pFIO_FLAG_C == 0x0200) • { • *pFIO_FLAG_C = 0x0200; • change++; • if (change > 2) • { • change = 0; • } • }
if (*pFIO_FLAG_C == 0x0400) • { • *pFIO_FLAG_C = 0x0400; • if (nasser< 3) • { • nasser++; • } • }
if (*pFIO_FLAG_C == 0x0800) • { • // confirm PF11 interrupt handling • *pFIO_FLAG_C = 0x0800; • //PF11 : Volume Down • if (nasser != 0) • { • nasser--; • } • }
Concluding • The project was successfully completed and implemented.