100 likes | 233 Views
Aaron Worob. Surround Sound Emulation. Abstract. Create a program using the Blackfin BF533 that allows the user to “move” the source of input sound. . Specifications. PF9: Move Left Direction PF10: Return to Center PF11: Move Right Direction
E N D
Aaron Worob Surround Sound Emulation
Abstract • Create a program using the Blackfin BF533 that allows the user to “move” the source of input sound.
Specifications • PF9: Move Left Direction • PF10: Return to Center • PF11: Move Right Direction • Lights indicate which of the 6 speakers are “on.” • 1:Front Left • 2:Front Right • 3:Front Center • 4:Back Center • 5:Back Left • 6:Back Right
Implementation • TWI vs TDM • TDM is used as TWI does not allow all 3 output channels to be used. • SW9 pins 5 and 6 MUST be switched off to allow TDM mode
Implementation • 9 Total “Zones” • Switch/Case statements used
Implementation • Light Address Table
Implementation • Modified TDM Talkthrough Example • Initialize • Init_Flash • Added *pFlashA_PortB_Dir = 0x3f; to initialize the Flash Memory for the lights • Init_Interrupts • Modified SIC values to allow buttons and sound • Added register handler for Button Flags • Init_Flags • Added entire function to initialize flags for buttons
Implementation • ISR • Added variables for Channel 2 Left and Right Out. • Added Interrupt Handler for FlagA • Created algorithm to handle button presses • Included switch/case for lights in FlagA interrupt handler • Main • Added Init_Flags(); • Added variables for counter, and Channel 2 Left and Right out
Implementation • Process_Data • Created Switch/Case algorithm to change zones when buttons are pressed • Added Prototype Functions and Variables to header “Talkthrough.h”
Thank You • Thank you for your time and consideration.