Problem with C code
Posted: Mon Jan 29, 2007 8:52 pm
I use pic 18f4550 and I am trying to output PWM using this code:
{
ccpr2l = FCV_speed;
}
{
ccpr1l = FCV_speed;
}
the two channels are implemented in two different C code blocks. However when I try to convert the flowchart into assembly I get the folowing errors:
C:\Documents and Settings\Administrator\Desktop\Flowcodeprog\Flowcodetest.c(382): error: missing semicolon
C:\Documents and Settings\Administrator\Desktop\Flowcodeprog\Flowcodetest.c(383): error: missing semicolon
C:\Documents and Settings\Administrator\Desktop\Flowcodeprog\Flowcodetest.c(448): error: missing semicolon
C:\Documents and Settings\Administrator\Desktop\Flowcodeprog\Flowcodetest.c(449): error: missing semicolon
Can anyone help? Thank you in advance.
{
ccpr2l = FCV_speed;
}
{
ccpr1l = FCV_speed;
}
the two channels are implemented in two different C code blocks. However when I try to convert the flowchart into assembly I get the folowing errors:
C:\Documents and Settings\Administrator\Desktop\Flowcodeprog\Flowcodetest.c(382): error: missing semicolon
C:\Documents and Settings\Administrator\Desktop\Flowcodeprog\Flowcodetest.c(383): error: missing semicolon
C:\Documents and Settings\Administrator\Desktop\Flowcodeprog\Flowcodetest.c(448): error: missing semicolon
C:\Documents and Settings\Administrator\Desktop\Flowcodeprog\Flowcodetest.c(449): error: missing semicolon
Can anyone help? Thank you in advance.