13-10-2016, 08:47 AM
(This post was last modified: 13-10-2016, 08:50 AM by Mike Watterson.)
The JAL libraries for PIC have SD card and IDE drive plus FAT file system.
I did a library in JAL to do an analogue clock, running in real time, resizable in real time on a 128 x 64 LCD using 4 x 4 multiplexed keyboard sharing some lines with LCD data port. 18F4550 and similar family. I wrote an integer fixed point math library in JAL and used excel to make a table to suit it of 90 degrees of a sine function. The Cosine and Sine based functions use that for 360 degrees.
Looks like a good start. JAL seems to be just as efficient as using assembler and better suited than C for PIC 16F / 18F families (I've used all three on PIC). I've translated source from Assembler, C and even windows "proof of concept" written in VB6 to JAL. I used to prototype a PIC keyboard / Display / Serial IO combo in VB6 using VB simulations of LEDs, Text LCDs, seven segment displays and graphic LCDs, designed to be updated on screen using same function API as the PIC JAL version would use. I found this was almost impossible on the later visual studios using VB.net or C# as the needed VB form widgets to simulate such displays simply don't exist!. I use arrays of shapes on a form (matrix squares, bars, filled circles) and change colour property to turn on/off.
What is nice about the PIC is that the time to execute any piece of code is exactly known in advance. Not possible on x86 or serious ARM chips, even if they aren't running Linux etc.
I did a library in JAL to do an analogue clock, running in real time, resizable in real time on a 128 x 64 LCD using 4 x 4 multiplexed keyboard sharing some lines with LCD data port. 18F4550 and similar family. I wrote an integer fixed point math library in JAL and used excel to make a table to suit it of 90 degrees of a sine function. The Cosine and Sine based functions use that for 360 degrees.
Looks like a good start. JAL seems to be just as efficient as using assembler and better suited than C for PIC 16F / 18F families (I've used all three on PIC). I've translated source from Assembler, C and even windows "proof of concept" written in VB6 to JAL. I used to prototype a PIC keyboard / Display / Serial IO combo in VB6 using VB simulations of LEDs, Text LCDs, seven segment displays and graphic LCDs, designed to be updated on screen using same function API as the PIC JAL version would use. I found this was almost impossible on the later visual studios using VB.net or C# as the needed VB form widgets to simulate such displays simply don't exist!. I use arrays of shapes on a form (matrix squares, bars, filled circles) and change colour property to turn on/off.
What is nice about the PIC is that the time to execute any piece of code is exactly known in advance. Not possible on x86 or serious ARM chips, even if they aren't running Linux etc.







