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: Jump Table warning, code has no effect
shson

Replies: 3
Views: 9763

PostForum: General CCS C Discussion   Posted: Wed Feb 22, 2017 3:58 am   Subject: Jump Table warning, code has no effect
@PCM

Replacing SWSenseSel[i]; with (*SWSenseSel[i])(); made it work, rather simple oversight, the fact that it is a pointer itself rather than a straight array.

@Ttelmah

That makes sense, I'l ...
  Topic: General question about 12F510
shson

Replies: 2
Views: 8121

PostForum: General CCS C Discussion   Posted: Mon Feb 20, 2017 6:57 pm   Subject: General question about 12F510
First off, B3 is an input-only pin as per PIC12F510 datasheet so you cannot use output_high nor output_low with B3.

Also the datasheet says on reset, all I/Os are configured as input. So use FIXED_ ...
  Topic: Jump Table warning, code has no effect
shson

Replies: 3
Views: 9763

PostForum: General CCS C Discussion   Posted: Mon Feb 20, 2017 6:19 pm   Subject: Jump Table warning, code has no effect
CCS V5.065, PIC18F44K22

Hello

I have a couple of 8:1 analogue multiplexers, and in my program depending on the value of unsigned int8 variable 'number' I need to use 'output_high()' and 'output_ ...
  Topic: pass-by-pointer not changing values
shson

Replies: 3
Views: 8474

PostForum: General CCS C Discussion   Posted: Fri Nov 11, 2016 1:56 am   Subject: pass-by-pointer not changing values
I was writing a code for circular buffer to be used for handling incoming data packets on hardware UART on PIC18F25K80. The actual buffer seems to work perfectly, except buffer overflows randomly. Aft ...
  Topic: function input 'const' parameter
shson

Replies: 4
Views: 11551

PostForum: General CCS C Discussion   Posted: Fri Nov 04, 2016 11:45 pm   Subject: function input 'const' parameter
The standard for CCS is to put 'const' values in Flash memory ("ROM").

I see. It's a programming convention that I have used previously on other embedded platforms, mainly on Freescale MC ...
  Topic: function input 'const' parameter
shson

Replies: 4
Views: 11551

PostForum: General CCS C Discussion   Posted: Fri Nov 04, 2016 10:39 pm   Subject: function input 'const' parameter
Hi

Does CCS support using const in the input parameter of a function like so?:


#define UINT8 unsigned int8

UINT8 add(const UINT8 a, const UINT8 b) {
return a + b;
}
...
  Topic: Automatically load .c file when including .h
shson

Replies: 2
Views: 9846

PostForum: General CCS C Discussion   Posted: Sun Oct 30, 2016 4:11 am   Subject: Automatically load .c file when including .h
Ah yes, you're right. After reading the you provided at stackoverflow.com and digging through the CodeWarrier manual, it just "links" the files and the compiler automatically compiles all re ...
  Topic: Automatically load .c file when including .h
shson

Replies: 2
Views: 9846

PostForum: General CCS C Discussion   Posted: Sat Oct 29, 2016 7:29 pm   Subject: Automatically load .c file when including .h
Hi

*edit: forgot to mention I'm using CCS v5.061

I noticed that the include file behaviour is different with CCS when compared to NXP/Freescale CodeWarrier compiler. For example, with CodeWarrie ...
  Topic: Multiple interrupts on PIC18F, PIC hangs
shson

Replies: 5
Views: 17493

PostForum: General CCS C Discussion   Posted: Thu Aug 25, 2016 2:59 am   Subject: Multiple interrupts on PIC18F, PIC hangs

The compiler will clear the interrupt, but if there is still a character waiting to be read, it will set again immediately. Result the handler will be called and called, and called and called. Hang. ...
  Topic: Multiple interrupts on PIC18F, PIC hangs
shson

Replies: 5
Views: 17493

PostForum: General CCS C Discussion   Posted: Wed Aug 24, 2016 6:49 pm   Subject: Multiple interrupts on PIC18F, PIC hangs
PIC18F44K22, v5.061

Hello

I'm having trouble using multiple interrupts on PIC18F44K22, namely RDA, RDA2 and CCP3. After searching the forum I realised that the order of in which I enable interru ...
  Topic: Send data to PIC over RS232 and store in ROM
shson

Replies: 2
Views: 6293

PostForum: General CCS C Discussion   Posted: Mon Feb 15, 2016 11:13 pm   Subject: Send data to PIC over RS232 and store in ROM
Hi

I have a small hobby project that involves PIC reading ADC value through multiple multiplexers then sending the reading to PC via RS-232. The program so far works.

But I also need to send dat ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group