Regarding the pic16f877 and the Ccs-picc compiler and ide

Status
Not open for further replies.

mischa

New Member
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.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…