slide1 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Serial Communication PowerPoint Presentation
Download Presentation
Serial Communication

Loading in 2 Seconds...

play fullscreen
1 / 34

Serial Communication - PowerPoint PPT Presentation


  • 87 Views
  • Uploaded on

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.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Serial Communication' - henrik


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide2

Key Concepts and Terms

bit rate and baud rate

simplex, half duplex, full duplex

Synchronous vs. Async

Space vs. Mark

UART, USART

slide17

Basic Music Synthesizer

Speaker

Microprocessor

System

slide18

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”

slide19

PC

Mini USB cable

¼’’ audio cable

slide20

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.

slide21

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

slide22

Issue 2: Square wave

MCU

PC

LCD

2. Generate a digital signal.

slide23

Frequencies of musical notes

Where

For example,

Note: for the lab, you may use a look-up table

or math.h.

slide25

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

slide26

DSP

system

Our

system

POUT=fundamental

CLK=25Xfund

slide29

Tasks to complete the lab:

MCU

PC

LCD

3. Display status to LCD.

slide30

LCD Examples

halLcdPrintLine(“Hi86", 1, 0x04);

Hi86

slide31

By using a string

char string[]=“Hi86”;

halLcdPrintLine(string, 1, 0x04);

Hi86

slide32

By using a character array

char string[]={‘H’,’i’,’8’,’6’,’\0’};

halLcdPrintLine(string, 1, 0x04);

Hi86

slide33

By using a pointer

char string[]={‘H’,’i’,’8’,’6’,’\0’};

char *stringPtr= &string[0]

halLcdPrintLine(stringPtr, 1, 0x04);

Hi86

slide34

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