View previous topic :: View next topic |
Author |
Message |
theMagni
Joined: 21 May 2004 Posts: 48 Location: Victoria, BC
|
16F88 - multiple variables with same name |
Posted: Mon Oct 03, 2005 5:43 pm |
|
|
Okay, this one is interesting.
We've had some periodic lockups on one of our boards. After looking over everything, I found that I had managed to do something so amazing that I had to share and get some help.
The short version is this: I defined the STATUS register as a #byte, then as an int1, then assigned values to it. I actually have a void function that is assigned to status at one point. I have the latest version of the CCS compiler (3.235)
The long version is thousands of lines of code. I'm working on a shorter version right now.
The question is, what in the [blank] is going to be assigned to status, and to which status is that value going to be assigned?
Thanks for your help. _________________ In the 90's, I promised myself I'd never use a so-called "smiley icon". I hate what I've become. ;) |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Oct 03, 2005 6:29 pm |
|
|
Post a short test program that shows exactly that problem. |
|
![](templates/subSilver/images/spacer.gif) |
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
|
|
Posted: Tue Oct 04, 2005 7:33 am |
|
|
Open the RAM symbol map to see your variables as used. |
|
![](templates/subSilver/images/spacer.gif) |
|