No OC2 with 30f3012?
Posted: Wed Jun 10, 2009 11:37 pm
Hi Lubin,
I have a problem when compiling a mdl with 2 PWM (using OC for 30f3012). With just 1 PWM (OC1), all is perfect. But with 2 PWM (OC1 and OC2 by using [1 2] in the OC block), I have the following error message for my double_PWM_test.mdl :
double_PWM_test.c:118: error: structure has no member named `LATD1'
double_PWM_test.c:122: error: structure has no member named `LATD1'
gmake: *** [double_PWM_test.o] Error 255
with 30f3013 (same datasheet as 30f3012 but different pinout : 28pins instead of 18pins) it works.
with 30f2011 (same datasheet as 30f3012 and same pinout, just the memory is different) : same error message.
Thanks a lot if you can help!
John
I have a problem when compiling a mdl with 2 PWM (using OC for 30f3012). With just 1 PWM (OC1), all is perfect. But with 2 PWM (OC1 and OC2 by using [1 2] in the OC block), I have the following error message for my double_PWM_test.mdl :
double_PWM_test.c:118: error: structure has no member named `LATD1'
double_PWM_test.c:122: error: structure has no member named `LATD1'
gmake: *** [double_PWM_test.o] Error 255
with 30f3013 (same datasheet as 30f3012 but different pinout : 28pins instead of 18pins) it works.
with 30f2011 (same datasheet as 30f3012 and same pinout, just the memory is different) : same error message.
Thanks a lot if you can help!
John