ECE 3551 MICROCOMPUTER SYSTEMS 1 Lab 3—Learn audio input/output OBJECTIVE: Learn audio input/output in ADSP-BF533 EZ-Kit Lite Learn how to control the audio input/output. Create the Project 1. Before applying power to the board, make sure that switch SW9 pin1, pin2, pin3, pin4, pin5 and pin6 are in on position. Thus, all pins in SW9 should be on. 1 2. 2 3 4 5 6 Copy content of “C:\Program Files\Analog Devices\VisualDSP 4.0\Blackfin\EZ-KITs\ADSP-BF533\Examples\Audio codec talkthrough\C\I2S” to “u:\ece3551\labs\lab5” Modify the Project 1. In this lab-exercise, you will use the buttons (PF8-PF11) to control the input/output, and the LEDs ( LED4-9) to indicate the states of the board as follows: PF8 is used to activate/deactivate all outputs. When the outputs are active, the LED4 should be on, otherwise LED4 should be off. PF9 is used to control the inputs. Pressing PF9 will toggle processing of the audio inputs 1 and 2. Pressing once PF9, should cause input 1 to be active that must be indicated by LED5 being turned-on. LED6 must be off indicating inactive audio input 2. By pressing PF9 second time, audio input 1 should be turned inactive, while audio input 2 active. Switching processing of the audio stream from input 1 to input 2 must also be indicated by LED5 being turned-off and LED6 turned-on. Pressing PF9 again, both inputs should be active, and both LED5 and LED6 must indicate it by being turned-on. Further pressing of the PF9 should re-cycle through the states as described. PF10 is used to control the outputs. By pressing PF10 the audio outputs 1 and 2 are toggled. Pressing once PF10 should cause audio output 1 to be active also indiciated by LED7 being turned-on. Also, audio output 2 will be not active indicated by LED8 being off. Pressing PF10 again, should cause output 1 to be inactive while output 2 will become active. This change in output audio stream also must be indicated by LED7 being in off, while LED8 being on. Pressing PF10 again, should activate both audio output streams. This change in output stream processing must be indicated by both LED7 and LED8 being turned-on. Further pressing of the PF10 should re-cycle through the states as described. Useful Hints This lab is a combination of talk through and previous Lab#4. To accomplish the exercise code of lab #4 is useful in controlling the input/output stream processing and LEDs. Initially (the original copy of the talk through code), all inputs/outputs are active, so the LED4-LED8 should be all on. To make PF8-PF11 work, you need to initialize them first, so make sure to initialize pFlashA_PortB_Dir and Init_Flags() first. Experiment Hook-up Connect Audio Output (light green) of the Workstation to RCS audio input 1 of the BF533 EZ-Kit Lite. Use 3.5mm male stereo jack to RCA male adapter. See picture below. Audio Interface with Workstation. 3.5mm male stereo jack to RCA male adapter Connect Microphone’s male 3.5mm male stereo jack to audio input 2 of BF533 EZ0Kit Lite using 3.5mm female stereo jack to RCA male adapter shown in the picture below. Microphone & 3.5mm female stereo jack to RCA male Connect output(s) of the BF533 EZ-Kit Lite to stereo speakers using 3.5mm female stereo jack to RCA male adapter. Speakers. Connections: Lab report is needed for this lab.