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 11 matches
CCS Forum Index
Author Message
  Topic: CCS program syntax question
ebarnes

Replies: 1
Views: 2641

PostForum: General CCS C Discussion   Posted: Mon Apr 14, 2008 9:54 am   Subject: CCS program syntax question
In the file LM75CIM3.c provided with the compliler there is a line i dont understand

It is " data=(signed long)datah*10; "

Why use the "Signed long" in parentheses here? th ...
  Topic: I2C slave transmitting data
ebarnes

Replies: 47
Views: 93268

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 2:07 pm   Subject: I2C slave transmitting data
Ahh! yes, how simple. Thank-you for enlighting me on this.
You are da-man! Very Happy
  Topic: I2C slave transmitting data
ebarnes

Replies: 47
Views: 93268

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 11:47 am   Subject: I2C slave transmitting data
I have 2 pic16f690 talking as master transmitting to a slave continously in a loop.
what i want to do is reverse this where the slave will tramsmit to the master when the master requests data.
i did ...
  Topic: I2C lines keep getting damaged on chip
ebarnes

Replies: 2
Views: 3335

PostForum: General CCS C Discussion   Posted: Tue Oct 09, 2007 2:34 pm   Subject: Re: I2C lines keep getting damaged on chip
The project I'm doing uses 6 pumping motors separated by opto couplers which are turned on with 5V from PIN B2. Then I have servo motors which use PIN0. I also have analog to digital using pins AN0 an ...
  Topic: I2C slave transmitting data
ebarnes

Replies: 47
Views: 93268

PostForum: General CCS C Discussion   Posted: Tue Oct 09, 2007 2:23 pm   Subject: I2C slave transmitting data
I must be having a brain freeze.
Could someone write a few lines if pseudo code for transmitting data via I2C when in slave mode?

I know that a master can send data to a slave by sending the slave ...
  Topic: RA4 and RA5 on the PIC16F690
ebarnes

Replies: 3
Views: 5654

PostForum: General CCS C Discussion   Posted: Thu Apr 26, 2007 1:22 pm   Subject: RA4 and RA5 on the PIC16F690
I cannot seem to get RA4 or RA5 to act as general I/O.
I think it has something to do with the internal oscelator.
any Ideas?

RA0-RA2 work fine and RA3 as input is also fine.
  Topic: Global variables.
ebarnes

Replies: 7
Views: 10844

PostForum: General CCS C Discussion   Posted: Thu Apr 19, 2007 10:16 am   Subject: Global variables.
what is the syntax for defining a global variable? I cannot find it in the help sections.
  Topic: Global variables.
ebarnes

Replies: 7
Views: 10844

PostForum: General CCS C Discussion   Posted: Thu Apr 19, 2007 9:36 am   Subject: Global variables.
Thank-you for your Critique, but You didn't address why I am getting the error.
  Topic: Global variables.
ebarnes

Replies: 7
Views: 10844

PostForum: General CCS C Discussion   Posted: Thu Apr 19, 2007 8:55 am   Subject: Global variables.
I am using "Static" to define variable "RfidReq", but I still get this error message.

"Undefined identifier
The specified identifier is being used but has never been defin ...
  Topic: Returning from an interupt
ebarnes

Replies: 5
Views: 5376

PostForum: General CCS C Discussion   Posted: Tue Apr 17, 2007 1:10 pm   Subject: Returning from an interupt
Anyway, you don't return a value from an isr. You just use a global
variable which is updated inside the isr.[/quote]


It was interesting how if I don't begin the interrupt with a void, a warnin ...
  Topic: Returning from an interupt
ebarnes

Replies: 5
Views: 5376

PostForum: General CCS C Discussion   Posted: Tue Apr 17, 2007 12:32 pm   Subject: Returning from an interupt
I am confused on how to acquire a return value from an interrupt.

Normally to return a value would be

value = subroutine()



int Subroutine() {
some statements;
return (int);
}


but ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group