Prakasit Man
Newbie level 4
- Joined
- Jul 18, 2013
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 40
Hello All kind experts,
I am a newbie for PIC24F series. :---(
Does anyone can give me the sample code for the application as mentioned on thread subject? I want to have the PWM period about 10 kHz approximately. I planned to use the internal RC oscillator. Machine frequency is 8MHz. below is my starting code but the rest I need your help. These 4 PWMs will use to drive 4 motors. Thanks in advance.
I am a newbie for PIC24F series. :---(
Does anyone can give me the sample code for the application as mentioned on thread subject? I want to have the PWM period about 10 kHz approximately. I planned to use the internal RC oscillator. Machine frequency is 8MHz. below is my starting code but the rest I need your help. These 4 PWMs will use to drive 4 motors. Thanks in advance.
Code:
#include <24FJ16GA002.h>
#FUSES FRC,NOWDT
#FUSES ICSP1
#FUSES NOIOL1WAY //Allows multiple reconfigurations of peripheral pins
#FUSES OSCIO //OSC2 is general purpose output
#FUSES NOPR //Pimary oscillator disabled
#USE delay(clock=8000000,internal)
void main (void)
{
// Disturb you to help me to create PWM //
}