Valhalla Legends Forums Archive | Advanced programming | OS development for appliances

AuthorMessageTime
hismajesty[yL]How do they do this? Develop the OS For things like a camera, or a fax machine, or the credit card things in stores, something like that?June 23, 2005, 01:33 PM
R.a.B.B.i.TPICOTUX!

Err....they have them for some blenders too (which use the internet).  As long as they have an ALU, anything can have an OS built for them.  This is done by instructing the ALU to toggle different circuits to do different things.
June 23, 2005, 05:33 PM
Banana fanna fo fannaI was sort of interested in that for a few hours during school one day, so I researched it. You program something called a microcontroller, which is a chip that accepts a very limited assembly language (there are USB programmer devices that you can hook up to your PC and compile C programs for it).

See http://www.mstracey.btinternet.co.uk/pictutorial/picmain.htm
June 24, 2005, 08:45 PM
KVery similar to the sensor nodes I program for which run on the msp430 -- There are only 27 instructions including 8 jump instructions.  The cpu can interact with peripheral devices through various pins which can be set to either an input state or output state.

Usually the microcontroller has some sort of timing device on it like a 32Khz watch crystal or a DCO, so that interaction with peripheral devices can be timed correctly.

For example a blender might have a microcontroller with one pin configured in input mode and one pin configured in output mode -- the microcontroller could interact with a motor via some interface like SPI and control the motor speed by shifting bits out and receive status bits in.
June 24, 2005, 09:14 PM
AdronThere are also C (or C-like language) compilers available for many microcontrollers. Typically not full ANSI C since many of those things aren't relevant to embedded systems, but you can program them at a somewhat higher level than assembly code.

You write your code on a PC, perhaps you simulate it in an emulator/simulator first (works pretty much like the nes emulators), and then you load it into your target microcontroller and boot it up Smiley
June 25, 2005, 03:10 AM
Joe[x86]Woah, I want to write an operating system for my blender..June 27, 2005, 07:52 AM
K
There are also C (or C-like language) compilers available for many microcontrollers. Typically not full ANSI C since many of those things aren't relevant to embedded systems, but you can program them at a somewhat higher level than assembly code.

You write your code on a PC, perhaps you simulate it in an emulator/simulator first (works pretty much like the nes emulators), and then you load it into your target microcontroller and boot it up Smiley

And if you want to buy these compilers along with licenses from the companies that manufacture the microprocessors, they are usually rather pricey -- thank god for gcc ports Wink
June 27, 2005, 01:32 PM