Re: Microcontroller Project



On Sun, 26 Mar 2006 17:28:03 -0800, David L. Jones wrote:

akshaychander@xxxxxxxxx wrote:
Sorry for the late reply.

Yes, I have to do the project in 8051. I have studied the theory of
8051, but have very little practical experience.

As far as languages are concerned, there is no restriction. I am
planning on using C.

In that case a good C compiler will take care of most of the low level
8051 stuff for you.

I disagree! A C compiler will just mask the nonsense underneath. It
*will* come back to bite you (think "stack").

I decided to try and implement the Hangman game itself. I have a rough
idea as to what I must do, though I am confused as to how to go about
it. Could you tell some good resources for 8051 programming in C on the
net?

If you are programming in C then your actual program will have little to
do with the 8051.

Again, I disagree. Normally one would assume this, but the 8051 is a
"special" (as in; designed by a "short-bus" architect) case.

You could write the C program on a PC first, and then port to your 8051.
Instead of writing to the screen you would turn on a LED on a port of
the 8051, so only a small part of your program should change between a
PC version and an 8051 version.

....and watch the stack explode. Good idea!

The advantage of using a high level language like C is that you
shouldn't have to care what micro platform it is used on.

A naieve statement. "shouldn't?" There's a comforting statement. Very
few people can write truely platform independant C. ...I'm certainly not
one, and my bet is that given your statements here that you aren't either.

If you need help with the C code then the 8051 is the least of your
problems.

Granted, but workign C isn't likely to help him either.

On the other hand, if your subject is the 8051 micro and it's
architecture then you won't learn much by doing your program in C. I am
surprised your teacher is not forcing you to use assembler language.

It's not clear what the issue is here. Perhaps it's to show them what
they *don't* know? ;-)

--
Keith
.



Relevant Pages

  • Re: Searching OO Associations with RDBMS Persistence Models
    ... need to care what the content is. ... Only the type-anal languages like Java need them, ... OO subtyping decomposition: ... But you claimed that nevertheless you have enough knowledge about shapes, ...
    (comp.object)
  • Re: _Verum Et Factum Convertuntur_ (or: Surprised By Syntax)
    ... >>> You never seem to disagree with your authorities. ... > familiar facts", instead of writing down the facts directly, so we all ... Simple fact: languages use phonemes. ... > Why would anyone go to a newsgroup and look for references to books he ...
    (sci.lang)
  • Re: Chinese Dialects
    ... Why do you need to care about these ... All languages have a tendency to leave out ... Obvious examples, but not colorful. ... "You are here to learn the mysteries of Kung Fu, not linguistics. ...
    (sci.lang)
  • Re: Call by Reference
    ... solution to a more general solution so that code appears consistent. ... disease of languages like C, where you can skip certain syntax ... I quite strongly disagree to this. ... it is much easier for humans to adapt ...
    (comp.lang.tcl)
  • Re: Challenge for lisp lovers....
    ... representation of numbers a particular language implementation uses. ... I do care about other languages. ... Lisp Machines were almost tied to a single ...
    (comp.lang.lisp)