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

Indexing array one off

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PC Programmer
Guest







Indexing array one off
PostPosted: Mon Dec 04, 2006 6:10 pm     Reply with quote

I setup 10 bytes as an array. I'm using the INT_RDA to populate it with a fixed 8 bytes and they are all there in the correct order. However, at times my index is off by +1, yet my pointer isn't. I can see in the MPLAB Watch Window that the pointer is 0 and yet the data is offset by 1. I cannot seem to clear this condition without a hard reset.
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Mon Dec 04, 2006 7:18 pm     Reply with quote

Please post the version of your CCS compiler and the type of your particular PIC chip!

If the version is 4.xxx, please also read the sticky about the V4 issues.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group