View previous topic :: View next topic |
Author |
Message |
oran
Joined: 04 Sep 2010 Posts: 9
|
program in C |
Posted: Mon Sep 06, 2010 3:06 pm |
|
|
Hello,
I have a program to do in C, thanks to two push buttons one increment and one decrement the input of a port in PIN_B0 16F877A and PIN_B1 a variable, then thanks to the "if" manage # duty cycle, the output PIN_C1.
I am not a specialist in programming
Can someone help me find the solution |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Sep 06, 2010 4:01 pm |
|
|
This program shows how to increase or decrease the PWM duty cycle
by pressing the F, R, and S keys on your keyboard. These keys are for
"Forward", "Reverse", and "Stop". This program requires a serial port
connection between your PIC board and your PC, and it requires a
terminal program (such as TeraTerm) to be running on your PC.
http://www.ccsinfo.com/forum/viewtopic.php?t=40467&start=1 |
|
|
oran
Joined: 04 Sep 2010 Posts: 9
|
program in c |
Posted: Thu Sep 09, 2010 4:47 pm |
|
|
Hello, and sorry
But I have 2 button on the outside of pic 16F877A which increment and decrement the duty cycle of the chopper, is that someone can modify the program.
help me |
|
|
|