Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sound Note using DSP-BF533 EZ-KIT Lite Boards Communicating over RS232 UART Port Emin Emre OZANDAC Sukru SAGBANKALEM.

Similar presentations


Presentation on theme: "Sound Note using DSP-BF533 EZ-KIT Lite Boards Communicating over RS232 UART Port Emin Emre OZANDAC Sukru SAGBANKALEM."— Presentation transcript:

1 Sound Note using DSP-BF533 EZ-KIT Lite Boards Communicating over RS232 UART Port Emin Emre OZANDAC Sukru SAGBANKALEM

2 Introduction The purpose of this project is to setting up the communication between two boards (Receiver & Transmitter) Then transferring the audio input from the transmitter to receiver and record the audio to the SD-Ram.

3 State Diagram for Sound Note - SW5: Play - SW6: Annotate - Any Switch: Waiting Wait Playing Note Timer 0 SW6 Annotate Any SW SW5 Play

4 Preparation and Requirement ADSP-BF533 boards. This can provide full duplex communication. DMA block transfers are an option, and can provide data transfer to/from the SPORT without processor intervention.

5 ISR #define BUFFERLEN300000 #define BUFFERLEN300000 unsigned int audio[BUFFERLEN]; unsigned int audio[BUFFERLEN]; int audio_index = 0; int audio_index = 0;

6 Cont… Transmitter Board: UART transmit function. Receiver Board: UART receive function.

7 ISR switch(state) { case waiting: return; case annotating: if(*pFlashA_PortB_Data & 0x10) { // LED 8 is ON *pFlashA_PortB_Data = led_flash| 0x20; } else { *pFlashA_PortB_Data = led_flash|0x10; }break;

8 ISR case playing: if(*pFlashA_PortB_Data & 0x20) { // LED 9 is ON *pFlashA_PortB_Data = led_flash|0x00; } else { *pFlashA_PortB_Data = led_flash|0x20; }break;} // confirm interrupt handling *pTIMER_STATUS |= 0x0001; }

9 Main //mu law expansion functions will take 8 bit data and exapnd it short mu_exp[2] = {0,0}; short rx_exp[2] = {0,0}; mu_exp[0] = (short)rx_buffer[0]; mu_exp[0] = (short)rx_buffer[0]; mu_exp[1] = (short)rx_buffer[1]; mu_exp[1] = (short)rx_buffer[1]; mu_expand(mu_exp, rx_exp, 2);

10 Conclusion This project was kind of a updated version of the labs that we worked on during the semester. Our additional part is adding the recording option to the receiver board. We had quite hard time while implementing it but Za helped us to understand and solve the little problems that we had during the project.


Download ppt "Sound Note using DSP-BF533 EZ-KIT Lite Boards Communicating over RS232 UART Port Emin Emre OZANDAC Sukru SAGBANKALEM."

Similar presentations


Ads by Google