Thanks!
Will try that "case" version and check, what amount of memory it will consume.
regarding the MAX7219 example, there's some ASM code doing "unpack".
Is it portable? I mean, can be used with other PIC hardware?
Thanks!
Will try that "case" version and check, what amount of memory it will consume.
regarding the MAX7219 example, there's some ASM code doing "unpack".
Is it portable? I mean, can be used with other PIC hardware?
I did some quick tests yesterday and the arraywrite method consumes about double the space compared to loading the array "manually" - no where near 82 bytes though so I don't know what's going on there.
SELECT CASE uses slightly more space than multiple IF/THEN but it's cleaner and the execution time is always the same.
Since the memory width of PIC18 is 8 bits the method of packing two 7-bit wide "character lines" into one word isn't suitable for that series.
Of by the way, I "took apart" the code I've provided, and out of 82 bytes, ARRAYWRITE uses only 19, remaining is used by IF-THEN![]()
That sounds very very strange to me. I can't imagine that a single IF/THEN clause would "eat" 63 bytes.
I'm using PIC16F886.
Bookmarks