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 43 matches
CCS Forum Index
Author Message
  Topic: Flexible LCD driver
DonWare

Replies: 102
Views: 1058450

PostForum: Code Library   Posted: Fri Jun 17, 2011 1:36 pm   Subject: Thanks for this.
PCM Programmer

I'm not religious by nature but God bless you for writing this. It saves me untold time and aggravation. It works fine on my old (red) 2002 PICDEM 2 PLUS board.
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Tue Jun 15, 2010 2:49 pm   Subject: Solved
Right you are. I had a ROM statement where I had inserted a version string in eeprom on a 16F processor.

I noticed that the DAW location was always 210C no matter when everything else changed in t ...
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Tue Jun 15, 2010 12:44 pm   Subject: Compiler problem
I am able to to make this problem go away at times but one thing that stays consistent is that program location 210C is always a DAW command. The assembly code around it can change as I add more C co ...
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2010 1:13 pm   Subject: Solved ?
I tried calling the rpc routine before the serial routine and it seems to be working ok now and the dissassembly looks more like you'd expect.
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2010 12:56 pm   Subject: more
I tried inserting some junk code before the switch but the DAW is still there and the switch does not execute the proper case.

358: void rpc_exec(){
359: ...
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2010 10:39 am   Subject: Switch statement going to wrong case...
I tried replacing the switch with multiple IF statements and came up with the same DAW as shown in the earlier code. RPC is an in8 global.
Thanks.

Here is the main() code that calls the rpc_exec ...
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2010 9:16 am   Subject: Switch statement going to wrong case...
I'm back to this switch problem going to the wrong case. I'm looking at the disassembly listing and see something wrong at the top. Case 5 is not shown and there seems to be an inordinately large gap ...
  Topic: Pointer Problem
DonWare

Replies: 4
Views: 5316

PostForum: General CCS C Discussion   Posted: Tue Jun 08, 2010 11:34 am   Subject: Pointer Problem
OK I figured it out.

It should be: cc=*string_start++;

Thanks.
  Topic: Pointer Problem
DonWare

Replies: 4
Views: 5316

PostForum: General CCS C Discussion   Posted: Tue Jun 08, 2010 10:00 am   Subject: Pointer Problem
I'm not sure this is related to my other problem I've been posting about
but I'm having a problem using a pointer. I was wondering if somebody could look at this code and see what might be wrong wi ...
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Tue Jun 08, 2010 7:40 am   Subject: Update
Yesterday I removed all routines that had not yet been filled with code. This 'fixed' the switch problem. Now I'm seeing something I saw the other day. I have a routine calling another routine, it ...
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Mon Jun 07, 2010 8:47 am   Subject: Switch
Setting up unique code for each Case didn't help. The fact that I can call it from Main() or remove executed code ahead of this routine seems to rule out all kinds of things.
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Mon Jun 07, 2010 7:25 am   Subject: Switch
Thanks for the reply. I tried all kinds of things including putting code in Case 1, removing the default case, break up the 30 switch cases into 3 seperate switch statements.

The two things I did t ...
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Fri Jun 04, 2010 9:03 am   Subject: Switch statement going to wrong case...
Thanks for the reply.

The code executes case 1.

I suppose I could remove the default case. I just did that "in case" - no pun intended.

My feeling was maybe that maybe there was so ...
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Fri Jun 04, 2010 8:31 am   Subject: Let's try this again.
OK I'm having the same kind of problem but in another switch statement.

MPLAB version is 8.3.0.0 CCS compiler version is PCH 3.249

In the routine below, I break at the top of the switch and r ...
  Topic: Switch statement going to wrong case...
DonWare

Replies: 29
Views: 23430

PostForum: General CCS C Discussion   Posted: Wed May 26, 2010 7:42 am   Subject: Switch statement going to wrong case...
Geez are you kidding ?

The reason I'm not going further with this is because I'm in a hurry to do other things and this may not turn out to be a problem anyway. So why waste everybody's time ? I'd ...
 
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