Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 21948

MSP432P401R: UART data corruption

$
0
0

Part Number:MSP432P401R

Hello,

My setup consists of an MSP432 Launchpad and an optical sensor. I am basically reading data from the sensor's data registers via I2C. After I read these registers, I want to send this data to the computer and have it shown on an IDE called Processing via UART. The problem I am having is that the data shown on Processing is corrupted. Processing is able to show the correct values only sometimes. But most of the time, the data jumps around as random positive and negative numbers. Sometimes, it is only displayed as -8224 (such as the image shown below).

I have used a Saleae to see the hex values that are being read from the data registers and being sent over UART and verified that they are the same values as the registers reads on CCS. 

1) I2C data register reads

2) UART TX

3) CCS DEBUG

4) Processing

What could be causing this issue? Any help is appreciated! I have also attached my C and Processing code to this post.

(Please visit the site to view this file)

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 21948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>