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 35 matches
CCS Forum Index
Author Message
  Topic: More and more instructions are displayed as address...
blowtorch

Replies: 15
Views: 47192

PostForum: General CCS C Discussion   Posted: Tue May 03, 2022 12:28 am   Subject: More and more instructions are displayed as address...
OK got it, thanks.
  Topic: More and more instructions are displayed as address...
blowtorch

Replies: 15
Views: 47192

PostForum: General CCS C Discussion   Posted: Sun May 01, 2022 11:08 am   Subject: More and more instructions are displayed as address...
Using the CCS IDE, under Options, Project, Output files, ticking "Symbolic" when compiling for PIC16 provides for more info, register names etc in the .lst file. Example:
BCF TRISA.TRIS ...
  Topic: More and more instructions are displayed as address...
blowtorch

Replies: 15
Views: 47192

PostForum: General CCS C Discussion   Posted: Tue Apr 26, 2022 9:15 am   Subject: More and more instructions are displayed as address...
Agreed more better info would be great. I am trying to debug some code that worked on another chip, now ported over to the PIC16LF18877. Having problems with hardware SPI and wanted to check what is ...
  Topic: SSD1306 driver for use with less RAM
blowtorch

Replies: 64
Views: 370145

PostForum: Code Library   Posted: Fri Aug 27, 2021 12:49 pm   Subject: 128 x 32 changes
Hi Ttelmah

Thank you for your great library - I have it working with a tiny 128 x 32 display. The changes required for this was to modify the value in the init_sequence for the command S_SETCOMPIN ...
  Topic: Multiple clock sources and clock switching
blowtorch

Replies: 27
Views: 57526

PostForum: General CCS C Discussion   Posted: Wed May 15, 2019 9:14 am   Subject: Multiple clock sources and clock switching
Loosely related, how can one calculate the time taken to service a timer based ISR? I put the isr code into the sim, and used the stopwatch feature to time the 2 different paths through the code. Th ...
  Topic: Multiple clock sources and clock switching
blowtorch

Replies: 27
Views: 57526

PostForum: General CCS C Discussion   Posted: Wed May 15, 2019 8:38 am   Subject: Multiple clock sources and clock switching
Problem with the subtraction approach is it'll be slower on larger numbers.
Test with 49999, and you may find it is not as good as you think....


Agreed, it is measurably slower. The numbers ar ...
  Topic: Multiple clock sources and clock switching
blowtorch

Replies: 27
Views: 57526

PostForum: General CCS C Discussion   Posted: Wed May 15, 2019 6:11 am   Subject: Multiple clock sources and clock switching
OK here is some updated code, designed for the sim in order to easily get timings etc, without external (think interrupts) messing with the numbers...

Earlier last night a google search found some ...
  Topic: Multiple clock sources and clock switching
blowtorch

Replies: 27
Views: 57526

PostForum: General CCS C Discussion   Posted: Tue May 14, 2019 5:34 pm   Subject: Multiple clock sources and clock switching
So, results are very encouraging. Thank you for the idea of using BCD...

I wrote some test code in the sim, then ported into my main code. This involved quite a few changes, so more than likely I ...
  Topic: Multiple clock sources and clock switching
blowtorch

Replies: 27
Views: 57526

PostForum: General CCS C Discussion   Posted: Tue May 14, 2019 12:40 pm   Subject: Multiple clock sources and clock switching
OK that gives me something else to consider. I assumed (!) that the printf function would have been coded so efficiently I would not be able to improve on it. Never actually looked at the code.

I ...
  Topic: Multiple clock sources and clock switching
blowtorch

Replies: 27
Views: 57526

PostForum: General CCS C Discussion   Posted: Tue May 14, 2019 10:09 am   Subject: Multiple clock sources and clock switching
Sorry Jay, to illustrate the point I created some dummy code just to show the printf statement. I edited the post to correct the declaration.

I use a 32 bit int, holding time in milliseconds. T ...
  Topic: Multiple clock sources and clock switching
blowtorch

Replies: 27
Views: 57526

PostForum: General CCS C Discussion   Posted: Tue May 14, 2019 9:02 am   Subject: Update
OK after some more testing I am happy with menu operation at 4MHz, but not the main loop. During normal, main loop execution I need to react to various triggers, and display info on the screen. Thes ...
  Topic: Multiple clock sources and clock switching
blowtorch

Replies: 27
Views: 57526

PostForum: General CCS C Discussion   Posted: Wed May 08, 2019 11:08 am   Subject: Multiple clock sources and clock switching
All good points. I am using 2 x AA, thinking about moving to a single lithium cell. The 18650's are cheap but bulky, the flat cells are great but expensive...but that's another discussion!

Screen ...
  Topic: Multiple clock sources and clock switching
blowtorch

Replies: 27
Views: 57526

PostForum: General CCS C Discussion   Posted: Wed May 08, 2019 3:26 am   Subject: Multiple clock sources and clock switching
OK so I have some questions relating probably more to PIC architecture than coding specifically in CCS C so apologies in advance. I am a relative newbie and to date have always used the internal osci ...
  Topic: Change to Fuses in device file for PIC16LF18856
blowtorch

Replies: 7
Views: 18052

PostForum: General CCS C Discussion   Posted: Tue Mar 26, 2019 3:31 am   Subject: Change to Fuses in device file for PIC16LF18856
Yes. Afraid I am guilty of omitting a thorough read of the readme.

CCS support emailed me a new devices file, problem fixed.

I need to install updates to separate folders I think. Choosing to ...
  Topic: Change to Fuses in device file for PIC16LF18856
blowtorch

Replies: 7
Views: 18052

PostForum: General CCS C Discussion   Posted: Mon Mar 25, 2019 4:42 pm   Subject: Change to Fuses in device file for PIC16LF18856
Thanks Ttelmah. Nice tip!

I have logged it BTW.
 
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