Hmm, I can't test this right now but I think, perhaps, that particular line of example code is in error - which would be unfortunate, it being in the manual and all...
If you look at section 5.5 you'll find:
Arraywrite is good when you want to do conversions to ASCII etc but loading constant values to an array is better done the old fashioned way, it's way more efficient:ARRAYWRITE
ARRAYWRITE ArrayVar, {Maxlength, Label,}[Item...]
Write one or more Items to byte array ArrayVar using SEROUT2 modifiers.
ARRAYWRITE allows the writing of formatted data to a byte array which can then
be output by other compiler commands, such as I2CWRITE, to write to a serial
LCD, for example.
stored[0] = 1260
stored[1] = 2500
and so on.
/Henrik.
Bookmarks