Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 4 months ago.
How to use digitalout to generate a nonperiodic waveform as shown in the photo below?
Is there anyone who can show me the specific code? Thank you !
1 Answer
11 years, 4 months ago.
Looks like you are shifting out a simple countervalue (0,1, 2,...15, 0,) A freq of 48 Mhz is pretty high for mbed to use a simple DigitalOut pin since it has has a clock of only (!) 96 MHz. Maybe you could look into the I2S serial output and prepare a set of values that you then move from memory to I2S using DMA.