A minimal (speak "working") implementation of Lua for the
dsPIC, from a hardware guys sight ;)
NOTE 8/2010 "on hold"
I switched over to PIC32. Take a look at PIC32Lua
NOTE: I am not a software programmer.
For me, software is nothing more than a tool to get or keep my hardware running.
Keep this in mind while browsing through code or algorithms.
Presented "as is". Some may benefit from this, others won't.
This was, actually it is, my first attempt to port Lua to a microcontroller,
this time a dsPIC33FJ512GP710, just to understand how it works and what extensions can be made.
Could be useful for other hardware idiots, like I am.
May be, it saves some time getting it compiled.
Communication is done through UART1, 19200 8N1. Just feed this to your PC.
I guess you know what a dsPIC is and how to program it, right!?
If not, mhhh... try googling for ICD2, ICD3 or RealIce, or even better:
Forget about this dspLua stuff ;)
Mhh, how can one take a photo of a piece of software?
As usual, no docs, no warranty, no support.
If this deletes your harddisc, heats up your beer or goes out with your girlfriend.
I used Microchips MPLAB and their "free" C30 compiler.
Ignore the "invalid Fosc" message from the "visual whateveritiscalled" (I used it the first time).
This is a bug.
Rest of your hardware setup (oscillator, etc...) can be determined or changed in this whateveritisnamed
wizard or right from the code...
Just a quick hack.
Unfortunately, I deleted a few copyright notices from the top of the original Lua files while working on the code.
Has to be corrected...
Will be back soon...(ASkr 7/2009-8/2010)
ASkr 8/2010 on hold