From manual:
Maxlength must be less than 256
But I need limit array to 1000 bytes, so I decide to play with pbppi18l.lib
Find
And replace withCode:ARRAYWRITETO movf R6, F ; Check for no space left in array bcf STATUS, C ; Preset for timed out (C clear) bz arraywritedone ; No space left decf R6, F ; Count down the characters left bra ARRAYWRITE
Now Maxlength can be up to 32767Code:ARRAYWRITETO movf R6, F ; Check for no space left in array bcf STATUS, C ; Preset for timed out (C clear) BTFSC STATUS, Z DECF R6+1, F BTFSC R6+1,7 bra arraywritedone ; No space left decf R6, F ; Count down the characters left bra ARRAYWRITE
Probably need little more testing.






Bookmarks