go_away

Author Topic: Java programmable MCU?  (Read 3368 times)

0 Members and 1 Guest are viewing this topic.

Offline jakx12Topic starter

  • Robot Overlord
  • ****
  • Posts: 183
  • Helpful? 2
Java programmable MCU?
« on: October 09, 2009, 02:03:28 PM »
Does anyone know of a java programmable MCU?

Thanks,

jakx12
Need help with an algorithm or a maths related problem? Ill be glad to help :)

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: Java programmable MCU?
« Reply #1 on: October 09, 2009, 09:32:53 PM »
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline jakx12Topic starter

  • Robot Overlord
  • ****
  • Posts: 183
  • Helpful? 2
Re: Java programmable MCU?
« Reply #2 on: October 11, 2009, 02:51:34 AM »
you know what, I did search google  :D, but the reason why Im posting here is because a) i cannot find one for personal use rather then industrial and b) perhaps someone may of used one and could suggest the one that they used.

Thanks anyway :)
Need help with an algorithm or a maths related problem? Ill be glad to help :)

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,166
  • Helpful? 111
Re: Java programmable MCU?
« Reply #3 on: October 11, 2009, 03:51:14 PM »
The Javelin is the only one I know of.

However: Java and most Basics both suffer the same problem on mcus. They are compiled to an interim 'byte code' which is then interpreted. So they both have some program memory (either on board or in a seperate EEPROM) that is reserved for the runtime interpreter (ie JRE). Nothing wrong with that - but it does add cost to the board.

So you would never use Java for a slave device (such as a motor controller or sensor) as the cost of the extra ROM for each device would be substantial. But for the main controller (ie you only have one of them) then its not too much of a problem.

The benefit with this 'byte code' is that your own application compiles down to a small size - ie you get more bangs for your buck.

But if you are an ardent Java developer then also be aware that these chips only support a very small subset of the vast Java API.

The only other consideration I would give (as someone who uses Java as my main job!) is that a runtime interpreter is never quite as fast/efficient as a natively compiled program such as C.
Given that the mcu implementations of Java are somewhat simplistic then I would recommend that you just stick with C. After all C is like Java without all the object orientated stuff. If you still want object orientation then you can use C++. As a Java developer you will learn it quickly and learn to hate all those stupid things that are different from Java!!

Just be grateful that Microsoft were kicked off the Java committee !!


Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline jakx12Topic starter

  • Robot Overlord
  • ****
  • Posts: 183
  • Helpful? 2
Re: Java programmable MCU?
« Reply #4 on: October 12, 2009, 03:05:29 AM »
Hahaa thanks :)
Need help with an algorithm or a maths related problem? Ill be glad to help :)

Offline radhoo

  • Full Member
  • ***
  • Posts: 66
  • Helpful? 1

 


Get Your Ad Here