#include sfr DACDATA = P1 void main() { unsigned char WAVEVALUE[12] = {128,192,238,255, 238,192,128,64, 17,0,17,64} unsigned char x while(1) { for(x=0 { DACDATA = WAVEVALUE[x] } } }