Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 7th November 2009, 06:26 AM   #1
Default Regarding the pic16f877 and the Ccs-picc compiler and ide

I am using the ccs compiler and ide to write and compile some code for the pic16f877. One of the functions within my code is called void spwm (void). This function is used to set my pwm output to a certain frequency and duty cycle. I went about this code by setting the particular registers to the correct values.eg.PR2=0b00001100; CCPR1L= etc etc. But the problem is when i try to compile, it does not compile because it gets stuck at this function. The compiler says it does not recognise the register names. I had also included the <pic16f877.h> file. Why am i having this problem? Please help me. Thanks.
mischa is offline  
Reply

Tags
ccspicc, compiler, ide, pic

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
mplab and picc c compiler. t.man General Electronics Chat 0 7th July 2009 08:47 AM
CCS compiler help khwoo Micro Controllers 19 1st July 2009 05:51 PM
Serial port with hi tech picc compiler fernandomierhicks Micro Controllers 3 24th February 2008 06:56 AM
Regarding the CCS Compiler 3v0 Micro Controllers 5 24th March 2007 10:22 PM
Global Variables and PICC compiler NJ Roadmap Micro Controllers 2 9th December 2006 06:53 AM



All times are GMT. The time now is 11:05 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker