0

I have a wav file(PCM format), which sample rate is 250Khz, i want to output it by PWM in my ARM board, how can i control the duty cycle of PWM. I mean, the ducy cycle is value in 0~100, but when i read the file out, eache sample value is record by 16bit, so i don't how to convert a 16bit value to a value range 0~100; Maybe i post the question wrong place, but i will appriaciate it so much if someone give an answer or example.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.