CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

16F690 undefined identifier

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bignick270



Joined: 11 Sep 2008
Posts: 44

View user's profile Send private message

16F690 undefined identifier
PostPosted: Thu Sep 11, 2008 1:43 pm     Reply with quote

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);
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Sep 11, 2008 2:05 pm     Reply with quote

The 16F690 doesn't have a Power Control PWM module. It only has
an "Enhanced PWM" module. They're different.
See this post for 16F690 sample code:
http://www.ccsinfo.com/forum/viewtopic.php?t=31162&start=9
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group