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 682 matches
CCS Forum Index
Author Message
  Topic: How can use temp_seconds
Wayne_

Replies: 7
Views: 8862

PostForum: General CCS C Discussion   Posted: Thu Jan 19, 2012 10:33 am   Subject: How can use temp_seconds
This must be a joke or a homework assignment.
sahu77has answered his own question within the question itself.
There are no variable definitions.
There is an error in the third condition in the inte ...
  Topic: One Wire One Way Custom Comm. Protocol
Wayne_

Replies: 6
Views: 9724

PostForum: General CCS C Discussion   Posted: Wed Jun 15, 2011 1:54 am   Subject: One Wire One Way Custom Comm. Protocol
is this a homework project?

As the opto's are one way (a slave has no way of knowing if another slave is transmitting) and you turn ALL slaves on and off at the same time then there is only one way ...
  Topic: I need help in coding
Wayne_

Replies: 6
Views: 7347

PostForum: General CCS C Discussion   Posted: Thu Jun 02, 2011 3:56 am   Subject: I need help in coding
I biggest error I can see is that your function Final_Delay_Time () definition does not include a return type!

Not sure how the compiler would handle that.

float Final_Delay_Time () ?????????
  Topic: 4094 Shift Register 3 wire LCD - Driver By (Fattah-Tafreshi)
Wayne_

Replies: 8
Views: 71676

PostForum: Code Library   Posted: Mon Apr 18, 2011 8:53 am   Subject: 4094 Shift Register 3 wire LCD - Driver By (Fattah-Tafreshi)
You expect me to download that zip file? Why?
it would be nice if you actually asked a question and explained why you posted this.

If it is, as I expect a driver you have written which you wish to ...
  Topic: 4094 Shift Register 3 wire LCD - Driver By (Fattah-Tafreshi)
Wayne_

Replies: 8
Views: 71676

PostForum: Code Library   Posted: Mon Apr 18, 2011 8:36 am   Subject: 4094 Shift Register 3 wire LCD - Driver By (Fattah-Tafreshi)
So errrr, whats wrong with it ?
  Topic: PIC 16F1827 not running
Wayne_

Replies: 10
Views: 15661

PostForum: General CCS C Discussion   Posted: Thu Apr 14, 2011 8:08 am   Subject: PIC 16F1827 not running
also
output_toggle(PIN_B3);

should work just as well Smile

And set_tris should not be required in this situation.
  Topic: Problem with library of utility functions- CCS Example
Wayne_

Replies: 5
Views: 7144

PostForum: General CCS C Discussion   Posted: Wed Apr 13, 2011 5:22 am   Subject: Problem with library of utility functions- CCS Example
So if you dont call the wait_for_one_press() function in main the leds flash ?

I suspect your putton is not working, prob due to hardware.
how have you got it wired up?
Pull UP, Pull down?
  Topic: Problem with library of utility functions- CCS Example
Wayne_

Replies: 5
Views: 7144

PostForum: General CCS C Discussion   Posted: Wed Apr 13, 2011 1:50 am   Subject: Problem with library of utility functions- CCS Example
What are the warnings?
What does it do?

Your problem is most likely due to bounce.
Do you find that when you press the button that the LEDS count up realy fast, prob too fast to notice and then s ...
  Topic: is it "forgetting" the interrupt enable bit??? :o
Wayne_

Replies: 9
Views: 11826

PostForum: General CCS C Discussion   Posted: Tue Apr 12, 2011 1:52 am   Subject: is it "forgetting" the interrupt enable bit??? :o
This is always true

if (cmd != 0x09 || cmd !=0x11)

cmd cannot be 0x09 and 0x011 at the same time so at least one of these conditions will allways be true Smile

What are the symptoms of i ...
  Topic: PIC16F1824 Optimization error
Wayne_

Replies: 5
Views: 9254

PostForum: General CCS C Discussion   Posted: Tue Apr 05, 2011 1:57 am   Subject: PIC16F1824 Optimization error
As PCM programmer states, it is almost impossible to help you without a test program but saying that I would say your problem is in the LED_On function ;)

I expect it is doing something it shouldn ...
  Topic: LCD 16x2 with pic16f877a
Wayne_

Replies: 17
Views: 25379

PostForum: General CCS C Discussion   Posted: Fri Apr 01, 2011 1:37 am   Subject: LCD 16x2 with pic16f877a
This line will compile but is most likely wrong :-


if(r1=r2)

What you are doing is an assignment, set r1 to have the same value as r2 and if it is not 0 (not FALSE but TRUE >0) ...
  Topic: Interruption priority problem
Wayne_

Replies: 20
Views: 24568

PostForum: General CCS C Discussion   Posted: Mon Mar 28, 2011 8:53 am   Subject: Interruption priority problem
is lenbuff2 a var or a #define or const ?

in this case it would usually be a #define which would reduce the code required when compiled. if it is a var then the compiler has to treat it as a variab ...
  Topic: make8() help
Wayne_

Replies: 6
Views: 16553

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2011 8:25 am   Subject: make8() help
You also have another problem
From the help.

Syntax:
i8 = MAKE8(var, offset)

Parameters:
var is a 16 or 32 bit integer.

offset is a byte offset of 0,1,2 or 3.


It appears MAKE8 does ...
  Topic: make8() help
Wayne_

Replies: 6
Views: 16553

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2011 8:18 am   Subject: make8() help

void send_packet (float *data) //
{
int i;
tx_buffer[0]=stx;
tx_buffer[1]=0x12;//cop_send temp
tx_buffer[2]=address;
tx_buffer[3]= ...
  Topic: Calculations are too long,how to reduce it
Wayne_

Replies: 21
Views: 19585

PostForum: General CCS C Discussion   Posted: Thu Mar 03, 2011 4:24 am   Subject: Calculations are too long,how to reduce it
Something like this should do what you want.
I have not tested it. I don't know if it reduces your code.
It may be possible to improve on this based on the rest of your code.
Someone here may have ...
 
Page 1 of 46 Goto page 1, 2, 3 ... 44, 45, 46  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group