Can anybody show different way of doing the same???
Can anybody show different way of doing the same???
Well yes, but why? It doesn't work or what?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
But if just to say I want to add pause i cannot.
I added a coulpe of 0 to get silence but it gives whistle.
so i need something with supporting pause command
thanks in advance
where do you want to add pause? between some FREQOUT?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Stieve is it possible to put as duration in sound command figure beetween 0-1
for examle
sound portb.0[0.2 ,115]
because when you put 1 sound comes out nearly 12 milliseconds but i need less
Sure, easy way is to break the LOOKUP2 in few different tables, or add a second one, the second one will hold the PAUSE value.
I could disgress and say use a variant of "embedded string in your code space". This build a huge table in which you store, the frequency & the PAUSE values. Later you just read it, and apply it.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
PBP don't allow float point values.
You could use HPWM out and PAUSEUS/PAUSE, or a variant of it.
Some
High pin
PAUSE(us) HalfPeriodDelay
LOW pin
PAUSE(us) HalfPeriodDelay
would replace Sound, Freqout, PWM etc etc hapilly here
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks