I want to use pwm in pic16f877a
when I wrote this code :
unsigned short i;
void main() {
PORTC = 00; // Set PORTC to $FF
TRISC = 0; // PORTC is output
Pwm_Init(5000); // Initialize PWM module
Pwm_Start(); // Start PWM
while (1) { // Endless loop
for(i=0;i<=255;i++)
{ Pwm1_Change_Duty(i);
delay_ms(10); }
} }
there are some errors which tells that the compiler could not identify the expressions
the messages are:
Undeclared identifier 'Pwm_Init' in expression pwm.c
Undeclared identifier 'Pwm_Start' in expression pwm.c
Undeclared identifier 'Pwm1_Change_Duty' in expression pwm.c
Finished (with errors): 01 Jan 2010, 04:43:12 pwm.mcppi
How can I solve this problem ?
Thanks in advance
when I wrote this code :
unsigned short i;
void main() {
PORTC = 00; // Set PORTC to $FF
TRISC = 0; // PORTC is output
Pwm_Init(5000); // Initialize PWM module
Pwm_Start(); // Start PWM
while (1) { // Endless loop
for(i=0;i<=255;i++)
{ Pwm1_Change_Duty(i);
delay_ms(10); }
} }
there are some errors which tells that the compiler could not identify the expressions
the messages are:
Undeclared identifier 'Pwm_Init' in expression pwm.c
Undeclared identifier 'Pwm_Start' in expression pwm.c
Undeclared identifier 'Pwm1_Change_Duty' in expression pwm.c
Finished (with errors): 01 Jan 2010, 04:43:12 pwm.mcppi
How can I solve this problem ?
Thanks in advance