Hello everybody,
I use PIC16F628A for driving 3 outputs in PWM and i meet some problems with my C code.
I want to control 3 differents PWM, for the moment i've just connect 2 switchs (up and down) for control PWM hard only.
I don't understand, because when i push up switch i've just 3 differents duty cycles (same when i push down) but only 2 when i up again, and i locked at the 3rd cycle.
My wish was to obtain 10% for each push in "up switch" and same for "down switch" progress.
I've fixed F=500Hz and that is good.
I joined my program (Hitech C).
I hope some assistance, thanks by advance.
Powerman.
Moved to correct forum - moderator!
I use PIC16F628A for driving 3 outputs in PWM and i meet some problems with my C code.
I want to control 3 differents PWM, for the moment i've just connect 2 switchs (up and down) for control PWM hard only.
I don't understand, because when i push up switch i've just 3 differents duty cycles (same when i push down) but only 2 when i up again, and i locked at the 3rd cycle.
My wish was to obtain 10% for each push in "up switch" and same for "down switch" progress.
I've fixed F=500Hz and that is good.
I joined my program (Hitech C).
I hope some assistance, thanks by advance.
Powerman.
Moved to correct forum - moderator!
Attachments
Last edited by a moderator: