Re: Array variable access time
thats not quite the question asked, it was
With respect to the 'ampvar=SINB[lookbyte]' instruction, does the execution time vary as a function of index, or is the retrieval time constant?
the only answer i could think of that made any sense was
(thinking is the timing different for an index of 0 verses 31 is inferred)
providing all the vars are byte sized the timing is constant regardless of index value
does the same hold true for word arrays, i don't know you would need to examine the .lst file to be sure.
its kind of a weird question anyway, given the largest possible pbp pic16fxxx byte array is 80 bytes, 40 for a word array. where are you going with this?
if you used an enhanced core p16f1xxxx chip much larger arrays of any type are possible using the memory in linear access mode , in asm of course.
you can even have huge arrays up to 14bits wide in flash accessable though the fsrx
indirect addressing process,[lightening quick] in asm of course.
Warning I'm not a teacher
Bookmarks