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 41 matches
CCS Forum Index
Author Message
  Topic: how to interpret the list file
C Turner

Replies: 2
Views: 5763

PostForum: General CCS C Discussion   Posted: Fri Jan 24, 2014 11:34 am   Subject: how to interpret the list file
The things for which I find the list file to be most useful are:

- Optimizing code produced by the compiler.
- Divining the nature of compiler bugs.

On the first one, consider the following two ...
  Topic: INT_RDA not firing off.
C Turner

Replies: 5
Views: 8480

PostForum: General CCS C Discussion   Posted: Tue Jan 21, 2014 4:20 pm   Subject: INT_RDA not firing off.
I see that you are using the flag "rx_flag" to indicate when a character is ready.

In your main() function, you haven't included the reset of that flag within the conditional statement so ...
  Topic: HELP, RTC on Timer1 32768.
C Turner

Replies: 5
Views: 13489

PostForum: General CCS C Discussion   Posted: Thu Jan 16, 2014 11:53 am   Subject: HELP, RTC on Timer1 32768.
The first time I used a 32.768 kHz crystal in an RTCC application (it wasn't even on a PIC) I had a problem with the crystal being too slow by 15-20 seconds a day, but I'd neglected to pay attention t ...
  Topic: RAM Re-use and "scratch" variables
C Turner

Replies: 7
Views: 10882

PostForum: General CCS C Discussion   Posted: Sun Jan 05, 2014 12:05 pm   Subject: RAM Re-use and "scratch" variables
Very good point about the organization of the code - and were it organized that way, that would explain it: Although *I* know that those RAM locations aren't going to conflict if re-used in another m ...
  Topic: RAM Re-use and "scratch" variables
C Turner

Replies: 7
Views: 10882

PostForum: General CCS C Discussion   Posted: Sat Jan 04, 2014 5:11 pm   Subject: RAM Re-use and "scratch" variables
The math used in the DSP to just shifts and adds, so the 18F part really would not be of much benefit from the standpoint of increased execution time: More RAM would be of help, of course, but one of ...
  Topic: RAM Re-use and "scratch" variables
C Turner

Replies: 7
Views: 10882

PostForum: General CCS C Discussion   Posted: Fri Jan 03, 2014 5:00 pm   Subject: RAM Re-use and "scratch" variables
I have a head-scratcher:

Using a 16F1847 along with the current V5 compiler, I have a project that does two separate things:

- Tone generation, etc.
- DSP filtering of audio.

When operating, ...
  Topic: PIC12F675 Timer PWM + UART input
C Turner

Replies: 10
Views: 19390

PostForum: General CCS C Discussion   Posted: Fri Nov 01, 2013 4:14 pm   Subject: PIC12F675 Timer PWM + UART input
I've implemented "software" UARTs inside ISRs, but it takes a bit of planning before-hand.

If at all possible, set the ISR rate to be an integer multiple of the baud rate of the UART. If ...
  Topic: [Solved] Since when does "sprintf" disable interru
C Turner

Replies: 12
Views: 17383

PostForum: General CCS C Discussion   Posted: Thu Oct 24, 2013 10:14 am   Subject: [Solved] Since when does "sprintf" disable interru
I'm happy to report that as of 5.013, the bug where interrupts are disabled when sprintf() is used has been fixed.

I didn't test it extensively with all possible combinations, but I do know that va ...
  Topic: [Solved] Since when does "sprintf" disable interru
C Turner

Replies: 12
Views: 17383

PostForum: General CCS C Discussion   Posted: Thu Oct 10, 2013 1:25 pm   Subject: Since when does "sprintf" disable interrupts?
I reported this problem to CCS and this is what they sent back:

"The problem you reported has been fixed and will be in the next compiler release. "

As soon as >5.012 appears, I'll ...
  Topic: [Solved] Since when does "sprintf" disable interru
C Turner

Replies: 12
Views: 17383

PostForum: General CCS C Discussion   Posted: Sat Oct 05, 2013 5:42 pm   Subject: Since when does "sprintf" disable interrupts?
Since the compiler with which this occurred (Version 5.012) *is* the newest version of the compiler as of today's date, I guess that I will report this "feature" and wait, doing work-arounds ...
  Topic: [Solved] Since when does "sprintf" disable interru
C Turner

Replies: 12
Views: 17383

PostForum: General CCS C Discussion   Posted: Sat Oct 05, 2013 2:08 pm   Subject: [Solved] Since when does "sprintf" disable interru
I recently updated from the V3/V4 compiler to V5.012 and was surprised when some code that I'd compiled for the PIC16F88 with the older versions blew up.

Tracking it down, I figured out that " ...
  Topic: Making PIC18F2620 2nd PWM work correctly...
C Turner

Replies: 1
Views: 3051

PostForum: General CCS C Discussion   Posted: Thu Nov 05, 2009 12:03 pm   Subject: Making PIC18F2620 2nd PWM work correctly...
I have a hair-pulling problem:

I'm using a PIC18F2620 with both PWM's enabled in the standard (not "enhanced" mode and I have the timing/divisors set up so that all 10 bits of resolution ...
  Topic: Trying to get the 4620's PLL to work with the internal clock
C Turner

Replies: 7
Views: 12852

PostForum: General CCS C Discussion   Posted: Thu Apr 30, 2009 10:22 am   Subject: Trying to get the 4620's PLL to work with the internal clock
I see the problem: You *can't* turn on OSCCON bits 0 or 1 and expect it to work. In other words, "Primary Oscillator" should be enabled, and NOT "Internal Oscillator Block."

S ...
  Topic: Trying to get the 4620's PLL to work with the internal clock
C Turner

Replies: 7
Views: 12852

PostForum: General CCS C Discussion   Posted: Wed Apr 29, 2009 6:59 pm   Subject: Trying to get the 4620's PLL to work with the internal clock
Ok, I've pulled out my hair for long enough.

I've searched the forms and can find nothing obvious, but I've not been able to figure out why I can't get the '4620 to run at 32 MHz using the internal ...
  Topic: Storing large lookup tables
C Turner

Replies: 9
Views: 15440

PostForum: General CCS C Discussion   Posted: Wed Feb 07, 2007 3:43 pm   Subject: Storing large lookup tables
>... I am indeed using a PTC thermistor,

That's interesting. It must be a special-purpose PTC: A lot of PTC thermistors have rather nasty curves that don't nicely follow formulas (possibly exp ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group