need audible pulse out that varies "on time"
Hello,
PBP
16F88
4MHz int osc
I need to send a pulse out to a buzzer that will vary in on time. I need the program to continue running/taking readings while the pulse is generated. I have a variable that ranges from 1-64. I want to beep a piezo slowly at a reading of one, say 500ms. At a variable reading of 64 it would be a constant tone.
I have no idea where to begin with this. Would I use HPWM?. Do I need to use timer1 with INT instead? Please help set me on the right track here.
Thanks,
Mark