12/21/10 More testing

Overclocked mbed and got DAC sample rate to 226 Ksps

248 Ksps with 17, 1

controller maxes out at 17,1 18,1 produces no results

#include "mbed.h"
#include "math.h"
#include "ClockControl/ClockControl.h"

AnalogOut signal(p18);
float step;

int main() {
setSystemFrequency(0x3, 0x1, 16, 1);
while(1)
{
step = 0;  
for(int i=0; i<3599; i++)
{
signal.write_u16((.5 * sin(.1*step)+.5)*65536);
step++;

}
}
}


0 comments

You need to log in to post a comment