Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

LAUNCHXL-F28379D: The Sine wave that I sample using DAC-B and output from GPIO pin 70 disappears after ~100 seconds

$
0
0

Part Number:LAUNCHXL-F28379D

I am using Simulink Embedded Coder to program my microcontroller, I am trying to generate a 25kHz sine wave for my speaker. 

I am monitoring the signal by connecting an oscilloscope to GPIO pin 70.

When the frequency is 25kHz there is no signal. The result is as follows: 

Then I tested the system by reducing the frequency to 250Hz. The result is as follows: 

Then I changed the step size from "auto" to 1/(5e5) and the result is as follows:

But as I said this signal disappears in about 100 seconds. In the video below, I captured this weird behaviour.

(Please visit the site to view this video)

Why is this signal not continuous and it disappears after a while? Why does i not appear like a proper sine wave when the fixed step size is configured as "auto"?

Finally I will share some screenshots to help with the troubleshooting.

This is my code. First I generate a sine wave with Amplitude 1 and Frequency 250Hz. Then I amplify it by 2047 times and shift it up by 2047 in order to create a sine wave in the range of 0-2^12..

This is the configuration parameters window where I changed the Fixed-step size. Note the solver type is "Fixed-step" and Solver Type is "discrete (no continuous states)".


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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