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 CCS Technical Support

How to set bit CCP2MX

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







How to set bit CCP2MX
PostPosted: Thu Jul 14, 2005 3:42 pm     Reply with quote

Hello , how i set the bit CCP2MX , to use pin B3 with PWM.
Tank�s
[]s Pedro
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jul 14, 2005 4:12 pm     Reply with quote

You didn't say what PIC you're using, so I'll assume it's an 18F452.
Look in the 18F452.H file, in this folder: c:\Program Files\Picc\Devices
You will see a list of parameters for the CCS #fuses statement, like this:
Quote:
//////// Fuses: CCP2C1,CCP2B3,NOSTVREN,STVREN,NODEBUG,DEBUG,NOLVP,LVP,WRT

The one that you want is CCP2B3.

Example:
Quote:
#include <18F452.h>
#fuses XT, WDT, NOPROTECT,PUT,BROWNOUT,NOLVP,CCP2B3
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
Guest








PostPosted: Thu Jul 14, 2005 7:46 pm     Reply with quote

Tankyou....
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