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 10 matches
CCS Forum Index
Author Message
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 7:34 am   Subject: how to exceed the 255 length limit of byte table
dear ezflyin
well I solved the problem, it was extremely simple, and you did not need to know anything more than my first comment to solve it.
Thank you very much for you help
take care
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 7:00 am   Subject: how to exceed the 255 length limit of byte table
I can't give you a small code,
I need to give you the entire code because it's not independant, and the isis file too
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 6:59 am   Subject: how to exceed the 255 length limit of byte table
the problem is simple the after 256 it goes back to 0 :
a[0] a[1]...... a[255] a[0] a[1] instead of going to a[256] a[257]
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 6:57 am   Subject: how to exceed the 255 length limit of byte table
this is a small compilable function, just put it in a main.
if you want something more simple just see the example I've putter about (the a[i] = i/2)
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 6:55 am   Subject: how to exceed the 255 length limit of byte table

for(i=0 ; i < 89 ; i++)
{

if((MyStr[i]>='A') && (MyStr[i]<='Z' ))
for(j=0 ; j< 6 ; j++ )
tab[(i*6&# ...
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 6:52 am   Subject: how to exceed the 255 length limit of byte table
well this is the original example,
if I change the max value in the for loop from 89 to 42, the software works properly
but after 42, since 43*6 >256, I get problems
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 6:51 am   Subject: how to exceed the 255 length limit of byte table
void displaystring(byte *PORT, byte Alphabet[40][6])
{
char MyStr[90] = "PLEASE FEAL FREE TO INSERT YOUR FINGER - WE ARE NOT RESPONSIBLE FOR WHAT MIGHT HAPPENS - " ;

byte tab[540];
byt ...
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 6:50 am   Subject: how to exceed the 255 length limit of byte table
version 4.114
microchip pic18f4520
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 6:42 am   Subject: how to exceed the 255 length limit of byte table
I am using pi18f4520, but I do not see how's that relevant since the problem is in the code, it compiles but what happens that:
when I store values :
for(i=0;i<300;i++)
a[i]=i/2;

the result w ...
  Topic: how to exceed the 255 length limit of byte table
josephazzam

Replies: 20
Views: 19963

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 6:25 am   Subject: how to exceed the 255 length limit of byte table
Hi, I'm programming a pic,
and I have a table of byte: byte a[300];
but when I reach a[255] in a for loop
The table go back to a[0]
Any ideas ?

Thank You
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group