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

Search found 9 matches
CCS Forum Index
Author Message
  Topic: #bit directive not working
jksor1234

Replies: 2
Views: 4074

PostForum: General CCS C Discussion   Posted: Thu Feb 15, 2007 3:03 pm   Subject: #bit directive not working
I must have stared at the manual for a half an hour before I wrote this post... can't believe I didn't see there wasn't a semi-colon.

Thanks
  Topic: #bit directive not working
jksor1234

Replies: 2
Views: 4074

PostForum: General CCS C Discussion   Posted: Thu Feb 15, 2007 2:09 pm   Subject: #bit directive not working
Compiler: PCWH 4.024
Part #: PIC16F913
Oscillator: 20MHZ

Why when I try to use the #bit directive multiple times inside a function, the compiler gives me the error "A numeric expression mus ...
  Topic: PWM on 16F877
jksor1234

Replies: 27
Views: 161089

PostForum: General CCS C Discussion   Posted: Mon Feb 12, 2007 8:01 am   Subject: PWM on 16F877
The L is needed to tell the compiler you want a 10-bit PWM... otherwise it will assume 8-bit.

From the equations I posted earlier, a 50% duty cycle needs a value of 125... set_pwm1_duty(125);

1 ...
  Topic: C instruction time
jksor1234

Replies: 6
Views: 6765

PostForum: General CCS C Discussion   Posted: Fri Feb 09, 2007 8:55 am   Subject: C instruction time
I am using a PIC16F913. Where is the hardware interrupt address?

From the LST file:
.................... #int_TIMER1
.................... void TIMER1_isr(void) //setup to interrupt ev ...
  Topic: C instruction time
jksor1234

Replies: 6
Views: 6765

PostForum: General CCS C Discussion   Posted: Thu Feb 08, 2007 4:05 pm   Subject: C instruction time
Where in the LST file can you see the instructions required to get into an interrupt and the instructions required to get out of an interrupt? I want to calculate the amount of time my interrupt rout ...
  Topic: PWM on 16F877
jksor1234

Replies: 27
Views: 161089

PostForum: General CCS C Discussion   Posted: Wed Jan 24, 2007 3:18 pm   Subject: PWM on 16F877
What does the upper case L do?
  Topic: PWM on 16F877
jksor1234

Replies: 27
Views: 161089

PostForum: General CCS C Discussion   Posted: Wed Jan 24, 2007 1:43 pm   Subject: PWM on 16F877
The duty value is a fraction of the middle number in setup_timer_2().
Look at the example program.

31/124 = 25% duty cycle

62/124 = 50% duty cycle

In your modified code, you have picked 249 ...
  Topic: PIC16F913 PWM question
jksor1234

Replies: 1
Views: 3128

PostForum: General CCS C Discussion   Posted: Mon Jan 22, 2007 11:16 am   Subject: PIC16F913 PWM question
I am using compiler version PCWH 4.020

I am trying to set up the PIC16F913 to output a PWM. When I use the CCS PIC Wizard and set up CCP1 as a PWM, it says the PWM output is on pin C2. However, i ...
  Topic: C instruction time
jksor1234

Replies: 6
Views: 6765

PostForum: General CCS C Discussion   Posted: Thu Jan 18, 2007 9:06 am   Subject: C instruction time
Is there a document which outlines how much time it takes to execute every 'C' instruction.

In the datasheet for the PIC16F913, it states that the Instruction Cycle Time equals four divided by the ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group