cancel
Showing results for 
Search instead for 
Did you mean: 

Is this due o baud rate?

nabeen
Associate II
Posted on June 24, 2009 at 13:04

Is this due o baud rate?

1 REPLY 1
nabeen
Associate II
Posted on June 24, 2009 at 13:04

Hi

I have a color sensor connected to ST7FLITE35. The uC takes readings from sensor does some calculation and is supposed to give a matrix output as follows.

0.555 0.666 01E3.4D

0.666 0.777 04E5.21

0.777 0.888 96.57

But I get the output as follows.

0.555 0.*)+ 01E3.4D

0.666 0.777 04E5.21

0.777 0.888 0096.57

0.555 0.666 01E3.4D

0.666 0.*'' 04E5.21

0.777 0.888 0096.57

0.555 0..') 01E3.4D

0.666 0.000 04E5.21

0.777 0.888 0096.57

0.555 0.666 01E3.4D

0.666 0.777 04E5.21

0.770 0.888 0096.57

Why don't I get correct output all the time.

I am setting baud rate to be 19200.

The register settings are as follows.

SCIBRR = 0x5B; //baud rate of 19200 at 7.3728 MHz

SCICR1 = 0x00;

SCICR2 = 0x2C;

Is there any way to fix this or any idea what might be causing this problem.

Thanks

Nabeen