MATLAB Answers

Getting waveform by using UART on Raspberry Pi and ADC on Ti F28335

14 views (last 30 days)
Yue Ma
Yue Ma on 20 Mar 2020 at 0:31
Edited: Pranav Murali on 27 Mar 2020 at 6:57
I am using Serial communication UART on Raspberry Pi to get waveform from ADC of Ti F28335 bacause there is no ADC on Raspberry Pi.
The results is shown below, in which, the middle one is correct waveform but the other two with spikes are wrong (they are supposed to be similar).
The ADC sampling frequency is from 1KHz-10KHz and UART is a bit larger than that.

  0 Comments

Sign in to comment.

Answers (1)

Pranav Murali
Pranav Murali on 27 Mar 2020 at 6:48
Edited: Pranav Murali on 27 Mar 2020 at 6:57
I see that your waveforms from the ADC aren’t similar as they are supposed to. Since they sampling frequencies are different, If you are using Simulink, you will be needing a Rate Transition block which will ensure there is no loss or corruption of data. In MATLAB, make sure your sampling frequency is higher than the UART frequency.

  0 Comments

Sign in to comment.

Sign in to answer this question.