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

30f3010 header file question

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








30f3010 header file question
PostPosted: Tue Feb 19, 2008 2:37 pm     Reply with quote

in 30f3010.h header file there is not any power pwm definition like 18f2431.h's pwm lines as;

// CCP Functions: SETUP_POWER_PWM()
// Constants used for SETUP_POWER_PWM() are:
#define PWM_CLOCK_DIV_4 0x00
#define PWM_CLOCK_DIV_16 0x04
#define PWM_CLOCK_DIV_64 0x08
#define PWM_CLOCK_DIV_128 0x0C

#define PWM_OFF 0x0000
#define PWM_FREE_RUN 0x8000
#define PWM_SINGLE_SHOT 0x8001
#define PWM_UP_DOWN 0x8002
#define PWM_UP_DOWN_INT 0x8003

#define PWM_OVERRIDE_SYNC 0x10000

#define PWM_UP_TRIGGER 0x00000
#define PWM_DOWN_TRIGGER 0x80000

#define PWM_DEAD_CLOCK_DIV_2 0x000000
#define PWM_DEAD_CLOCK_DIV_4 0x100000
#define PWM_DEAD_CLOCK_DIV_8 0x200000
#define PWM_DEAD_CLOCK_DIV_16 0x300000

// Constants used for SET_POWER_PWMx_DUTY() are:
#define PWM_UPDATE_DISABLE 0x20000
#define PWM_UPDATE_ENABLE 0x00000

// Constants used for SETUP_POWER_PWM_PINS() are:
//#define PWM_OFF 0
#define PWM_ODD_ON 1
#define PWM_BOTH_ON 2
#define PWM_COMPLEMENTARY 3

so can i use power pwm functions of 30f3010 chip, without add any definitions to its header file...
Thanks for pay attention...
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