Is it possible to use Java to control a PIC?
Moderator:Moderators
- joevennix
- Portablizer
- Posts:999
- Joined:Sat Jan 14, 2006 9:34 am
- Location:On permanent vacation from reality.
- Contact:
I know most PICs use C or Basic, but can you program it in Java? I'm learning Java this year, and am interested in using PIC's for some small projects
ive never heard of one, but a quick search turned up this...
http://www.muvium.com/
not exactly a compiler i dont think.
C isnt that hard to learn, and you can get free C compilers (ahem).
http://www.muvium.com/
not exactly a compiler i dont think.
C isnt that hard to learn, and you can get free C compilers (ahem).
"Linux is only free if your time is worthless"
ha. well I dont know Java, and havent used pic Basic...
but once you know any language, you know all the basic princples (for loops, do loops, if...then statements, arrays, functions, number systems) and any other language is easier to learn - you just have to learn the syntax.
c is pretty easy in my opinion. its very structured what with all the brackets and semicolons. you dont need to know much to get thigs done. for example, here is a board with a pic thats flashing some lights, and the C code that runs it
http://www.youtube.com/watch?v=FZgFQWmVmW0
but once you know any language, you know all the basic princples (for loops, do loops, if...then statements, arrays, functions, number systems) and any other language is easier to learn - you just have to learn the syntax.
c is pretty easy in my opinion. its very structured what with all the brackets and semicolons. you dont need to know much to get thigs done. for example, here is a board with a pic thats flashing some lights, and the C code that runs it
http://www.youtube.com/watch?v=FZgFQWmVmW0
Code: Select all
#include <16f877.h>
#use delay (clock=20000000) //20Mhz
void main(void){
int x;
do{
x++; //increment x
delay_ms(50); //wait 50msec
output_b(x); //put x onto port B
}while(true); //forever
}
"Linux is only free if your time is worthless"