This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problems using ePWM block (SIMULINK) to run F28335

Hello,

I'm working with the F28335 microcontroller and with Matlab Simulink (IDE CCSv5). I want to use this µC for an acoustic test station and therefore I need a sine wave or some more difficult continuous signals at the output of the microcontroller. For this purpose I want to use the ePWM block (F28x3x) in Simulink. I tried to work with the following two different examples, but after a few weeks of work I still not sure which one is more suitable for my application:

http://www.mathworks.de/de/help/rtw/examples/adc-pwm-synchronization-via-adc-interrupt.html

The second one you can find in Matlab Help. It’s called
“ADC-PWM Synchronization via ADC Interrupt”

I’m able to run some easy models like blinking the LED on my microcontroller. But I did not succeed in implementing a sine wave or a more complex model in one of these examples. I apparently don’t understand how the pulse width modulation blocks in Simulink work.

I also would like to use the ADC pins to have a microphone signal as an input signal for my Simulink model. Is it possible to drag and drop an ADC block in an existing model to use it as a source, or is it a bit more difficult?

With kind regards

Max