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 216 matches
CCS Forum Index
Author Message
  Topic: PIC16F819 Memory game
pmuldoon

Replies: 13
Views: 18774

PostForum: General CCS C Discussion   Posted: Wed Apr 03, 2024 1:17 pm   Subject: PIC16F819 Memory game
Well, in the spirit of overthinking this, what about using one of the adc inputs to drive one of the leds? won't an led create a voltage when it's exposed to light? This could be read at startup, ma ...
  Topic: PIC16F819 Memory game
pmuldoon

Replies: 13
Views: 18774

PostForum: General CCS C Discussion   Posted: Wed Apr 03, 2024 12:31 pm   Subject: PIC16F819 Memory game
It's funny that it seems so hard to generate a random number, yet a large amount of posts on this site are about random events occurring in a seemingly deterministic design.

Kinda reminds me of the ...
  Topic: I need ideas about how to handle a LED in open loop
pmuldoon

Replies: 8
Views: 7333

PostForum: General CCS C Discussion   Posted: Wed Mar 20, 2024 9:08 am   Subject: I need ideas about how to handle a LED in open loop
I kinda like jeremiah's idea, but with a twist. Since it's hard to differentiate between a long pulse and a short one without something to compare to, I would consider something like this:

Just do ...
  Topic: MPLABX - suddenly can't find CCS
pmuldoon

Replies: 3
Views: 10851

PostForum: General CCS C Discussion   Posted: Mon Feb 06, 2023 11:29 am   Subject: MPLABX - suddenly can't find CCS
SOLVED:

after several attempts to delete & reinstall MPLABX and the CCS plugin, I finally landed on the solution. The missing step, apparently.

I went to:
Tools>Options>Embedded
and ...
  Topic: MPLABX - suddenly can't find CCS
pmuldoon

Replies: 3
Views: 10851

PostForum: General CCS C Discussion   Posted: Mon Feb 06, 2023 9:15 am   Subject: MPLABX - suddenly can't find CCS
Thanks for the checklist.

I went thru all of what you said - same result.
I even renamed the plug-in directories to force the installer to create new. I had two of them, one was probably a remna ...
  Topic: MPLABX - suddenly can't find CCS
pmuldoon

Replies: 3
Views: 10851

PostForum: General CCS C Discussion   Posted: Mon Feb 06, 2023 7:30 am   Subject: MPLABX - suddenly can't find CCS
I ran some of the MPLABX updates and now it can't find the CCS compiler. I removed and reinstalled MPLABX (was v5.5 or so, now v6.05) but seem to still have the same problem.

I removed and reinsta ...
  Topic: 18F6722 possible math issue from compiler v5.074 to 5.105
pmuldoon

Replies: 22
Views: 62100

PostForum: General CCS C Discussion   Posted: Mon Jan 31, 2022 12:38 pm   Subject: 18F6722 possible math issue from compiler v5.074 to 5.105
Would either of you guys be interested in buying a slightly used UV eraser and some windowed 16c56/57 chips, LOL!
I remember I just used to keep the lamp running all day while I swapped chips and d ...
  Topic: 18F6722 possible math issue from compiler v5.074 to 5.105
pmuldoon

Replies: 22
Views: 62100

PostForum: General CCS C Discussion   Posted: Mon Jan 31, 2022 8:23 am   Subject: 18F6722 possible math issue from compiler v5.074 to 5.105
Just looking at the .h file, there is no revision reference within it. So there is no way to tell what compiler version it is associated with. They are small but many, so it would be impractical to ...
  Topic: 18F6722 possible math issue from compiler v5.074 to 5.105
pmuldoon

Replies: 22
Views: 62100

PostForum: General CCS C Discussion   Posted: Mon Jan 31, 2022 7:29 am   Subject: 18F6722 possible math issue from compiler v5.074 to 5.105
Just to follow-up, I was sent a patch from CCS. I dropped it into my PICC\DLL\5.105 folder per instructions.
Now I get a compile error:

*** Error 44 "C:\Program Files (x86)\PICC\devices\18LF ...
  Topic: 18F6722 possible math issue from compiler v5.074 to 5.105
pmuldoon

Replies: 22
Views: 62100

PostForum: General CCS C Discussion   Posted: Thu Jan 27, 2022 11:51 am   Subject: 18F6722 possible math issue from compiler v5.074 to 5.105
another one of my sources of confusion. This is right out of the CCS manual:

#opt
Syntax:
#opt n
Elements:
All Devices: n is the optimization level 1-9 or by using the word "compress" ...
  Topic: 18F6722 possible math issue from compiler v5.074 to 5.105
pmuldoon

Replies: 22
Views: 62100

PostForum: General CCS C Discussion   Posted: Thu Jan 27, 2022 8:45 am   Subject: 18F6722 possible math issue from compiler v5.074 to 5.105
response from CCS support:
"It was an optimization bug related to the CLRF instruction. A bank selection instruction was incorrectly removed.
It showed up when that statement used registers in ...
  Topic: 18F6722 possible math issue from compiler v5.074 to 5.105
pmuldoon

Replies: 22
Views: 62100

PostForum: General CCS C Discussion   Posted: Thu Jan 27, 2022 6:50 am   Subject: 18F6722 possible math issue from compiler v5.074 to 5.105
Update:
Even though the short example version worked, the full program still did not.
I commented out the entire program and got it down to one line of code that would cause the failed calculati ...
  Topic: 18F6722 possible math issue from compiler v5.074 to 5.105
pmuldoon

Replies: 22
Views: 62100

PostForum: General CCS C Discussion   Posted: Wed Jan 19, 2022 11:12 am   Subject: 18F6722 possible math issue from compiler v5.074 to 5.105
Hmm...well that's embarrassing!

I just copied your code into a test program and ran it thru PICSIM and mine worked, too.
I guess I should have tried that first, eh?

I will have to dig deeper. ...
  Topic: 18F6722 possible math issue from compiler v5.074 to 5.105
pmuldoon

Replies: 22
Views: 62100

PostForum: General CCS C Discussion   Posted: Wed Jan 19, 2022 9:30 am   Subject: 18F6722 possible math issue from compiler v5.074 to 5.105
I've sent this off to tech support, but I thought you guys might spot something quicker.

I'm not sure if it's my code or a math issue with the latest compiler. My code worked fine in previous vers ...
  Topic: Temperature Measurement with NTC Thermistors
pmuldoon

Replies: 12
Views: 33127

PostForum: General CCS C Discussion   Posted: Tue Oct 19, 2021 5:26 am   Subject: Temperature Measurement with NTC Thermistors
Hmm...I did read a lot of app notes back then.
It seems like every idea I have is probably a spinoff of something I've read or seen and then forgotten about.

Thanks, T.
At least my subconscious i ...
 
Page 1 of 15 Goto page 1, 2, 3 ... 13, 14, 15  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group