Hi Kiste, I did not do it by creating a script but that would be a logical thing to do now that you mention it. I used the version made by Matt and changed it manually (yes manually) for the 14/14H cores (like for your PIC16F19197) which resulted in a source code file of 2000 lines .....
Currently it supports an array up to 2K. I am not sure if you need larger than that but with the new bee version you could use all 4 large arrays each of 2K giving you 8K in total although it would still be 4 separate arrays then. As mentioned the new sample file 16f1825_large_array.jal in the upcoming bee package gives you an example of how to use more than one array. It uses three, all of different type (byte, word, dword). I do not yet have plans to create a script but if you want, be my guest 🙂. If you really need more than 2K for your array let me know, I might give it a try (but no planning). Kind regards, Rob ________________________________ Van: 'Oliver Seitz' via jallib <[email protected]> Verzonden: zaterdag 4 april 2020 19:13 Aan: [email protected] <[email protected]> Onderwerp: Re: [jallib] Re: Large arrays Hey Rob! Thanks for your effort. Did you edit the source code by hand? I'm going to use a PIC18F27K42 as data logger, making use of all of the 8k RAM it has. If you've been using a script to have the source code generated, it should be no great deal to expand it to generate arrays of up to 7936 bytes or so. If you didn't generate the source code, I would in the next few days :-) Oh well, and there won't be any need to expand all large_array libs that way, for if the first array is almost 8k, there can't be any other large array. The Pic16f19197 has 4k RAM. So if large_array_1 is modified to being able to fill up all RAM, I should do so with the _pic14 libraries... Greets, Kiste Am Samstag, 4. April 2020, 16:40:35 MESZ hat Rob CJ <[email protected]> Folgendes geschrieben: Hi Mike, One addition. I also made the library versions for large array 2, 3 and 4 today for the PIC16Fxx (core 14 and 14H). Best to look at the sample 16F1825 that uses 3 large arrays (byte, word and dword) at the same time. Note that these versions are only available after this weekend in the new bee package. If you are using the latest release and you only need 1 large array have a look at sample 12f617_large_array.jal. Good luck! Kind regards, Rob ________________________________ Van: 'Mike K' via jallib <[email protected]> Verzonden: zaterdag 4 april 2020 13:40 Aan: jallib <[email protected]> Onderwerp: Re: [jallib] Re: Large arrays Thanks, Rob. I'll check it out. On Saturday, April 4, 2020 at 3:00:29 AM UTC-4, Rob CJ wrote: Hi Mike, I made an addition some time ago to the large array that Matt is referring to since I needed it for a 16f pic. It is in the latest official JAL release. So if you add this to your 16F program it should work: -- Setup the large array const dword LARGE_ARRAY_1_SIZE = 200 -- choose number of array variables const dword LARGE_ARRAY_1_VARIABLE_SIZE = 1 -- choose size of variables (byte*1) include large_array_1 -- include the array library alias test is large_array_1 -- rename/alias the array to test test[150] = 0x11 -- This should work. BTW. I only implemented this for large_array_1 not large_array_2, 3 and 4. Kind regards, Rob ________________________________ Van: 'Mike K' via jallib <[email protected]> Verzonden: zaterdag 4 april 2020 03:31 Aan: jallib <[email protected]> Onderwerp: [jallib] Re: Large arrays Thanks, Matt. I'll have do my own library then. It seems that the large array library is meant for 18F PICs, as the arrays are allocated in blocks of 256 bytes and the 16F PICs only have 80-byte blocks. No worries. On Friday, April 3, 2020 at 8:15:27 PM UTC-4, Matthew Schinkel wrote: JalV2 doesn't support array's larger the 256 bytes, however, you can use the large array library. See one of the jallib samples such as 18f4620_large_array.jal I'm not sure of the linear access feature your speaking of, but there is a way to read & write in a linear way, see jallib sample 18f67j50_memory_pointer.jal Matt. On Friday, April 3, 2020 at 7:33:37 PM UTC-4, Mike K wrote: I'm trying to implement a large array (512) on a 16F1829. I see in the datasheet that it has a "Linear Access to GPR" feature. Does JAL take advantage of this to make it easy on me? Regards, Mike -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to jal...@ googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/jallib/a466c9b5-cc64- 42f6-8843-15b5c8bc5b4b% 40googlegroups.com<https://groups.google.com/d/msgid/jallib/a466c9b5-cc64-42f6-8843-15b5c8bc5b4b%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/9a050cf7-b45b-48b7-b833-2d991797d978%40googlegroups.com<https://groups.google.com/d/msgid/jallib/9a050cf7-b45b-48b7-b833-2d991797d978%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/DB7PR07MB54018FCEAE6D594324392B8DE6C40%40DB7PR07MB5401.eurprd07.prod.outlook.com<https://groups.google.com/d/msgid/jallib/DB7PR07MB54018FCEAE6D594324392B8DE6C40%40DB7PR07MB5401.eurprd07.prod.outlook.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/98994421.446805.1586020408235%40mail.yahoo.com<https://groups.google.com/d/msgid/jallib/98994421.446805.1586020408235%40mail.yahoo.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/DB7PR07MB540185DAAC54CB8F6BE8CFEEE6C40%40DB7PR07MB5401.eurprd07.prod.outlook.com.
