bignick270
Joined: 11 Sep 2008 Posts: 44
|
16F690 undefined identifier |
Posted: Thu Sep 11, 2008 1:43 pm |
|
|
I am using a PIC16F690 on the 4.074 compiler and when I try to run PWM setup functions I get a compiler error of the undefined identifier. It looks like the header file for the device does not include information regarding the functions.
Can this be added? If it can be, how?
Below is the a sniplet of the code, you can see the setup_power_pwm_pins(...) is used and is clearly shown as usuable in the manaul. When I opened the 16F690 header I found no defines for any of the PWM functions.
Code: |
setup_ccp1(CCP_OFF); // May also be needed for compiler bug
setup_power_pwm_pins(PWM_OFF, PWM_OFF, PWM_OFF, PWM_OFF);
setup_comparator(NC_NC_NC_NC); // Needed for compiler bug
set_tris_a(0xFF);
set_tris_b(0xBF);
set_tris_c(0x61);
ext_int_edge(L_TO_H);
enable_interrupts(INT_RA2);
enable_interrupts(GLOBAL);
setup_spi(FALSE);
|
|
|