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 46 matches
CCS Forum Index
Author Message
  Topic: Merry Christmas
kWoody_uk

Replies: 10
Views: 21752

PostForum: General CCS C Discussion   Posted: Thu Dec 27, 2018 3:52 am   Subject: Merry Christmas
Yep, Happy Christmas to you all, and have a very merry New Year.

(ahh Giles, the memories!)

Keith
  Topic: More pointer confusion [SOLVED]
kWoody_uk

Replies: 10
Views: 24638

PostForum: General CCS C Discussion   Posted: Tue Oct 11, 2016 8:58 am   Subject: More pointer confusion [SOLVED]
Thanks for the tips jeremiah. I'll watch out for those things.

I must admit, I've never used reference parameters - I'm not much of a C++ guy so just haven't found a use for them yet.

It certai ...
  Topic: More pointer confusion [SOLVED]
kWoody_uk

Replies: 10
Views: 24638

PostForum: General CCS C Discussion   Posted: Tue Oct 11, 2016 3:11 am   Subject: More pointer confusion [SOLVED]
Thanks Ttelmah - much appreciated.

Keith
  Topic: More pointer confusion [SOLVED]
kWoody_uk

Replies: 10
Views: 24638

PostForum: General CCS C Discussion   Posted: Tue Oct 11, 2016 2:51 am   Subject: More pointer confusion [SOLVED]
Thanks jeremiah,

That's exactly what I wanted to do. I did try to use pointer to pointer syntax, but I didn't get it quite right. I was using MPLAB sim to help me understand the C but it was flum ...
  Topic: More pointer confusion [SOLVED]
kWoody_uk

Replies: 10
Views: 24638

PostForum: General CCS C Discussion   Posted: Mon Oct 10, 2016 9:27 am   Subject: More pointer confusion [SOLVED]
Hi Ttelmah,

Sorry, I didn't make myself clear: I have edited my first post to correct my simplification of function names. And you are correct: I did intend to call func2.

I do understand what ...
  Topic: More pointer confusion [SOLVED]
kWoody_uk

Replies: 10
Views: 24638

PostForum: General CCS C Discussion   Posted: Mon Oct 10, 2016 6:13 am   Subject: More pointer confusion [SOLVED]
Hi guys,

I thought I had a reasonable understanding of pointers until the following problem popped up:-


void func1( void )
{
int8 * srcDataPtr;

// Set up pointer ...
  Topic: Not correct running without the ICD3 attached
kWoody_uk

Replies: 6
Views: 11679

PostForum: General CCS C Discussion   Posted: Tue Jun 07, 2016 6:46 am   Subject: Not correct running without the ICD3 attached
Could be anything: your circuit design/layout, power rails etc.

However.. sounds like it could be an uninitialised variable in your code. Very easy to miss.


Keith
  Topic: Are function prototypes valid in CCS? [SOLVED]
kWoody_uk

Replies: 13
Views: 26940

PostForum: General CCS C Discussion   Posted: Fri Jun 03, 2016 5:34 am   Subject: Are function prototypes valid in CCS? [SOLVED]
Ahhhhh, I see. Now it becomes clear! Sometimes, Google just doesn't cut it!

Thanks to all who replied to my probably fundamental questions.

Once again, I'm surprised and glad that busy and obv ...
  Topic: Are function prototypes valid in CCS? [SOLVED]
kWoody_uk

Replies: 13
Views: 26940

PostForum: General CCS C Discussion   Posted: Fri Jun 03, 2016 4:29 am   Subject: Are function prototypes valid in CCS? [SOLVED]
Thanks for the comments so far guys; very interesting.

I know I'm labouring the point but why doesn't the following produce an error?:-

#include <18f46k22.h>

#fuses INTRC_IO, NOWDT, BRO ...
  Topic: Are function prototypes valid in CCS? [SOLVED]
kWoody_uk

Replies: 13
Views: 26940

PostForum: General CCS C Discussion   Posted: Fri Jun 03, 2016 3:47 am   Subject: Are function prototypes valid in CCS? [SOLVED]
I've obviously got the wrong end of the stick then, especially regarding compilation.

My understanding was if all other functions were after the main they needed to have function prototypes.. is th ...
  Topic: Are function prototypes valid in CCS? [SOLVED]
kWoody_uk

Replies: 13
Views: 26940

PostForum: General CCS C Discussion   Posted: Fri Jun 03, 2016 3:35 am   Subject: Are function prototypes valid in CCS? [SOLVED]
Ahh.. but the code still runs without errors even if I comment out the func1 prototype... surely this isn't correct, especially as it's after the main function?

And I am using func1.. I'm calling ...
  Topic: Are function prototypes valid in CCS? [SOLVED]
kWoody_uk

Replies: 13
Views: 26940

PostForum: General CCS C Discussion   Posted: Fri Jun 03, 2016 2:47 am   Subject: Are function prototypes valid in CCS? [SOLVED]
Thanks for the advice. However, I have played around a bit and found that even in a single file, you can still circumvent the system...

If you do the following:-


#include <18f46k22.h>
...
  Topic: Are function prototypes valid in CCS? [SOLVED]
kWoody_uk

Replies: 13
Views: 26940

PostForum: General CCS C Discussion   Posted: Thu Jun 02, 2016 9:44 am   Subject: Are function prototypes valid in CCS? [SOLVED]
Hi all,

I'm creating a large project with multiple files, in the usual CCS approach of one main.c file which includes the other files in it.

The main thing is, where do I put the function protot ...
  Topic: How to fprintf in ISR?
kWoody_uk

Replies: 10
Views: 22021

PostForum: General CCS C Discussion   Posted: Fri May 27, 2016 4:59 am   Subject: How to fprintf in ISR?
Yes, but NOT in the INT_TBE (Uart transmit interrupt).

Which interrupt are you currently using the fprintf() function?

Use:-

printf( functionName, cstring, values )

.. in the f ...
  Topic: How to fprintf in ISR?
kWoody_uk

Replies: 10
Views: 22021

PostForum: General CCS C Discussion   Posted: Fri May 27, 2016 4:37 am   Subject: How to fprintf in ISR?
OK, sounds like you'll have to re-prioritise your code.

If, the rest of your code can take a back seat when the ACK is needed, then I would say to follow my suggestion of buffering your ACK bytes f ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group