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 21 matches
CCS Forum Index
Author Message
  Topic: Are pointers to functions supported in Ver. 3.173?
arga

Replies: 1
Views: 10738

PostForum: General CCS C Discussion   Posted: Sun Feb 15, 2004 11:06 pm   Subject: Are pointers to functions supported in Ver. 3.173?
//sample basic code

int process1();
int process2();
int process3();

//create a table of pointers to functions
int (*pFunc)() processFunc[] = { process1, process2, process3 }; //compiler er ...
  Topic: Cof file and CCS maintenance fee
arga

Replies: 13
Views: 29592

PostForum: General CCS C Discussion   Posted: Sun Feb 15, 2004 9:03 pm   Subject: Cof file and CCS maintenance fee
I don't question CCS charging for maintenance fee for updates. And surely, no one can *fully* guarantee a totally bug-free software.

However, CCS just has to be extra careful before releasing any ...
  Topic: I regret my comments.
arga

Replies: 14
Views: 30595

PostForum: General CCS C Discussion   Posted: Fri Jan 16, 2004 4:50 pm   Subject: I regret my comments.
I am, and I'm sure just about every one here in this forum, appreciate its existence. It's here where all of us with a common interest can find solutions to problems related to PIC and the CCS compile ...
  Topic: I regret my comments.
arga

Replies: 14
Views: 30595

PostForum: General CCS C Discussion   Posted: Thu Jan 15, 2004 9:25 pm   Subject: I regret my comments.
I wouldn't call it "bashing". It's outpouring of grief.

Users here are simply stating their experience. Just because people have something negative to say doesn't mean the end of it all.

I use ...
  Topic: After updating to v3.183 I have error "Target not in de
arga

Replies: 10
Views: 23920

PostForum: General CCS C Discussion   Posted: Thu Jan 15, 2004 4:55 pm   Subject: After updating to v3.183 I have error "Target not in de
All this time I still can't understand why CCS rushes out to post an update of their compiler only to release another update to fix a bug from the last release, which was not there in the first place ...
  Topic: Pointer Address
arga

Replies: 4
Views: 14658

PostForum: General CCS C Discussion   Posted: Wed Jan 14, 2004 3:30 am   Subject: Pointer Address
The problem I have is that the array is in bank 1.

The array is type int, and so is the pointer.

#device *=16 is included.

I'm using the pic16f877, compiler ver. 3.173
  Topic: Pointer Address
arga

Replies: 4
Views: 14658

PostForum: General CCS C Discussion   Posted: Tue Jan 13, 2004 9:47 pm   Subject: Pointer Address
How do you ABSOLUTELY make sure that the pointer holds the correct address if it is pointing to an array.

Sample of this code below presents a problem with addressing. The pointers seems to be conf ...
  Topic: RX Buffer...futile search so far
arga

Replies: 9
Views: 21960

PostForum: General CCS C Discussion   Posted: Tue Jan 13, 2004 5:01 pm   Subject: RX Buffer...futile search so far
To simplify reading the code I attached previously here are the relevant declarations made outside main()

#byte RCREG = 0x1A // offset of RCREG register

#bit oerr = 0x18.1 // O ...
  Topic: RX Buffer...futile search so far
arga

Replies: 9
Views: 21960

PostForum: General CCS C Discussion   Posted: Tue Jan 13, 2004 3:20 pm   Subject: RX Buffer...futile search so far
Thanks for all your replies.

By me saying not much code in the rda routine could still be too much.
So, in view of this here's the code :

#int_rda
void serial_isr()
{
if(!flag.m_FifoFul ...
  Topic: RX Buffer...futile search so far
arga

Replies: 9
Views: 21960

PostForum: General CCS C Discussion   Posted: Tue Jan 13, 2004 2:51 am   Subject: RX Buffer...futile search so far
The problem I am having is this:

I have a circular buffer in the form of an array of 55 elements (type int). I use int_rda, which simply moves incoming data to the buffer. Not much code in the int_ ...
  Topic: Internal Error On Compilation
arga

Replies: 1
Views: 10164

PostForum: General CCS C Discussion   Posted: Mon Jan 12, 2004 4:14 pm   Subject: Internal Error On Compilation
When I sometimes compile my program the following message comes up:

Internal Error - Contact CCS DEBUG FILE

The thing is, even wihout changing the code and recompiling it again, it compiles succ ...
  Topic: Shift Issue
arga

Replies: 6
Views: 17579

PostForum: General CCS C Discussion   Posted: Thu Jan 08, 2004 10:24 pm   Subject: Shift Issue
One other thing. There was a typo error. The second line s/b OR'ed.

aFinal[0] = aTemp[0] ;
aFinal[0] |= aBuff[2]<<aBuff[1] ;
aTemp[0] = aFinal[0] ;
PORTD = aFinal[0] ;
  Topic: Shift Issue
arga

Replies: 6
Views: 17579

PostForum: General CCS C Discussion   Posted: Thu Jan 08, 2004 10:22 pm   Subject: Shift Issue
Basically, what I'm trying to do is change bit values. aTemp[0] is used as a temporary storage. Each bit of PORTD is used to address a lamp via a transparent latch.

I want to be able to toggle a la ...
  Topic: Shift Issue
arga

Replies: 6
Views: 17579

PostForum: General CCS C Discussion   Posted: Thu Jan 08, 2004 9:00 pm   Subject: Shift Issue
Consider the following:


aFinal[0] = aTemp[0] ;
aFinal[0] = aBuff[2]<<aBuff[1] ;
aTemp[0] = aFinal[0] ;
PORTD = aFinal[0] ;


The array aBuff[2] holds the bit value, the aBuff[1] holds ...
  Topic: Modular Programming: #include .h file
arga

Replies: 12
Views: 33003

PostForum: General CCS C Discussion   Posted: Wed Sep 03, 2003 4:24 am   Subject: Re: Modular Programming: #include .h file
:=I'm assuming that you want to call the function within main().
:=Somehow, main() needs to know that the function exists
:=before you call it. You can do this by putting the function
:=above main(), ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group