Hobby Electronics Basics Java programming on 8051

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Java programming on 8051 Dean Krick 05-18-05
Posted by Dean Krick on May 18, 2005, 6:58 pm
Please log in for more thread options


I would like to program an 8051 using Java. I know this is a really bad
idea, especially since C is so much nicer and widely supported. I want
to teach microprocessors to my AP computer science class after the AP
test. FYI, the computer science test is in Java now, (not in C++
anymore). Learning another language isn't probable due to time
constraints and confusion. Any resources/ideas would be greatly
appreciated. Are there other chip sets other than the 8051 which support
Java programming? Thanx
Dean Krick.


Posted by on May 18, 2005, 5:23 pm
Please log in for more thread options


if the students understand Java, learning C shouldn't be that hard. CS
students at my university are required to do it fast. The intro class
is Java, then the structures class uses C within two weeks of starting.
All that really changes are I/O and structures/classes. Both of which
are different for uCs anyway.


Posted by Chris on May 19, 2005, 10:04 am
Please log in for more thread options



Dean Krick wrote:
> I would like to program an 8051 using Java. I know this is a really
bad
> idea, especially since C is so much nicer and widely supported. I
want
> to teach microprocessors to my AP computer science class after the AP

> test. FYI, the computer science test is in Java now, (not in C++
> anymore). Learning another language isn't probable due to time
> constraints and confusion. Any resources/ideas would be greatly
> appreciated. Are there other chip sets other than the 8051 which
support
> Java programming? Thanx
> Dean Krick.

I'm hearing you say you've got a group of computer science students who
don't have a lot of electronics hardware background, and you just want
them to have a quick overview of a hardware uC setup using a language
they're very familiar with. (Hopefully, without paying an arm and a
leg -- this is an academic environment.)

One thing that comes to mind for a quick&dirty intro to
microcontrollers for the Java over-enhanced is the Javelin Stamp, made
by our friends at Parallax.

http://www.parallax.com/javelin/index.asp

It's a hybrid circuit on an alumina substrate with DIP pins. It's got
the same footprint as the BASIC Stamp II, with an SX-type chip on
board. I believe the "compiler" software actually tokenizes the text
file containing the program, then sends the tokens to the Stamp to run.
Their setup will give you the I/O you need, and it uses a subset of
the Java language. The biggest downside is that you can't mix
higher-level language and assembler, like you can with most
microcontrollers or single board computers that are supported by a
higher-level language.

Parallax is very good at providing data and literature that's suitable
for newbies. They've also published a project book for the Javelin
Stamp which might be of help. Look on the website for more
information. (Disclaimer: I haven't used the Javelin Stamp myself.)

Once you've purchased a starter kit, you should be able to etch a
programming board and cobble up what's needed for individual students
or pairs to have a "programming pod" from what you've got laying
around.

Although it might be useful in giving students who know Java an intro
into microcontrollers, I don't see this becoming a very popular option
for uC high-level language compilers. I'd just tell your students to
take a flying leap into the C. But obviously, I don't teach. ;-)


Good luck
Chris


Similar ThreadsPosted
Java programming on 8051 May 18, 2005, 6:58 pm
8051 Programming November 12, 2006, 2:40 pm
java applets September 4, 2006, 11:06 pm
Free FDTD codes/manual in Java September 24, 2008, 8:46 am
Open source FDTD electromagnetic simulation codes in Java now available August 23, 2008, 3:23 pm
Looking for the right 8051 to use on your next project ? February 14, 2006, 5:49 am
8051 Developers Kit August 26, 2007, 3:31 am
8051 does not oscillate March 29, 2008, 1:56 am
8051 reset problem January 25, 2005, 10:16 pm
8051 interfacings basics February 22, 2006, 5:45 am
software for 8051 devices ? IDE-Dis-Ass-Debug December 18, 2007, 1:52 pm
urgrent help needed: 8051 microcontroller project April 10, 2006, 3:38 pm
8051 Development Board / 89C51 / MCS51 / 8052 July 7, 2005, 12:30 pm
8051 Development Board / 89C51 / MCS51 / 8052 July 15, 2005, 12:15 am
Atmel 8051 micro: AT89C51-ED2 in 40 pin DIP package - HELPPPP October 20, 2007, 12:24 pm