i am a beginner and i hope to find out how PWM works. How it produce sounds or duty cycle. hope someone can help me with the programm thanks.
BLAH_BLAH Guest
Posted: Thu Jan 17, 2008 9:46 am
1) search the forum
2) look at the ex_pwm.c file in your examples directory
3) read the manual
4) read the datasheet
5) try writing the code. If it doesn't work, post your (very simple) code and ask specific questions.
1-4 aren't necessarily in the correct order, but 5 should be the last step you try!
i only have sounds coming out but it does no sound like a fire engine sound? how do i edit it to make it sound more like it?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Jan 18, 2008 12:00 pm
You should always tell us your overall purpose in your first post.
Put it in the title of your post.
Your purpose is to make music or play a simple tune with the PIC.
CCS has an example file for this. It's in this directory:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum