2009-06-24 04:04 AM
2009-06-24 04:04 AM
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