Hi,
Can anyone help me to built a triangular wave using counter(in 16f877).
I am using asm code.Plz guide me.
Regards,
Raja.
Hi,
Can anyone help me to built a triangular wave using counter(in 16f877).
I am using asm code.Plz guide me.
Regards,
Raja.
use pwm, just ramp up and down with a counter and put a filter on the pin (RC).
Thanks for ur quick response,
i want fixed amplitude triangle wave of 2.5v,so how can i set a counter to generate the wave.
Plz give me the required steps to do this.
Regards,
Raja.
how about this as an example of a low frequency triangular wave:
loop:
for counter = 0 to 127
hpwm 1,counter,10000
pause 1
next counter
for counter = 127 to 0 step -1
hpwm 1,counter,10000
pause 1
next counter
goto loop
Of course all in PBP, not assembly, but this is a PBP forum as you may have observed.
Than you'v got the wrong forum.
You will need the PIC_assembly forum and not one of the picbasic forum's.
Bookmarks