Is it possible to create an array of 1000 elements(16bit) in CCSC?

Status
Not open for further replies.

creative_35

Full Member level 1
Joined
Apr 10, 2006
Messages
95
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,288
Location
Under Mango Tree
Activity points
2,032
Hi friends,
Is it possible to create an array of 1000 elements(16bit) in CCSC?
I have created an array and while simulating in mplab after 127th element it's returning to 0th element. all the variables and array elements defined as 'int16'
any idea?
 

Re: 16bit DATA TABLE

If CCSC has a limit on the number of array elements, perhaps you could use a two dimentional array.

something like
int16 mybuffer[10][100];

#define getValue(x) (mybuffer[x/100][x%100])
 
Re: 16bit DATA TABLE

Thankyou verymuch,
solved the issue.
reading program memory is easier than using array.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…