1 / 34

Serial Communication

Serial Communication. Key Concepts and Terms bit rate and baud rate simplex, half duplex, full duplex Synchronous vs. Async Space vs. Mark UART, USART. Basic Music Synthesizer. Speaker. Microprocessor System. Lab10: Our Version of a Music Synthesizer. MSP430. LCD. Audio in.

henrik
Télécharger la présentation

Serial Communication

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Serial Communication

  2. Key Concepts and Terms bit rate and baud rate simplex, half duplex, full duplex Synchronous vs. Async Space vs. Mark UART, USART

  3. Basic Music Synthesizer Speaker Microprocessor System

  4. Lab10: Our Version of a Music Synthesizer MSP430 LCD Audio in P4.4 Amp Freq=440Hz PC USB-> UART P5.6 P5.7 USB UART USB “a”

  5. PC Mini USB cable ¼’’ audio cable

  6. Tasks to complete the lab: MCU PC LCD Send a character from PC to MCU using UART. 2. Generate a digital signal. 3. Display status to LCD. Divide the problem into smaller pieces, division of labor.

  7. Issue 1: UART PC MCU LCD Send a character from PC to MCU using UART. UART USB MCU PC USB->UART UART USB MCU P5.6 P5.7 TUSB3410UF

  8. Issue 2: Square wave MCU PC LCD 2. Generate a digital signal.

  9. Frequencies of musical notes Where For example, Note: for the lab, you may use a look-up table or math.h.

  10. Example: A “true” DSP-based synthesizer uP

  11. What is the difference between a DSP-based system and ours? MCU data[15:0] 16-bit Data Bus “analog” out MCU 1-bit Data line Amp LPF

  12. DSP system Our system POUT=fundamental CLK=25Xfund

  13. Tasks to complete the lab: MCU PC LCD 3. Display status to LCD.

  14. LCD Examples halLcdPrintLine(“Hi86", 1, 0x04); Hi86

  15. By using a string char string[]=“Hi86”; halLcdPrintLine(string, 1, 0x04); Hi86

  16. By using a character array char string[]={‘H’,’i’,’8’,’6’,’\0’}; halLcdPrintLine(string, 1, 0x04); Hi86

  17. By using a pointer char string[]={‘H’,’i’,’8’,’6’,’\0’}; char *stringPtr= &string[0] halLcdPrintLine(stringPtr, 1, 0x04); Hi86

  18. By using a more pointers char string[]={‘H’,’i’}; char *stringPtr= &string[0] char nums[]={‘8’,’6’,’\0’}; char *numsPtr=&nums[0]; numsPtr++; (*numsPtr)++; halLcdPrintLine(stringPtr, 1, 0x04); ! Hi87

More Related