Re: Microcontroller Project
- From: Keith <krw@xxxxxxxxxx>
- Date: Sun, 26 Mar 2006 20:45:30 -0500
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
.
- Follow-Ups:
- Re: Microcontroller Project
- From: Roger Hamlett
- Re: Microcontroller Project
- From: David L. Jones
- Re: Microcontroller Project
- References:
- Microcontroller Project
- From: akshaychander
- Re: Microcontroller Project
- From: David L. Jones
- Re: Microcontroller Project
- From: akshaychander
- Re: Microcontroller Project
- From: David L. Jones
- Re: Microcontroller Project
- From: akshaychander
- Re: Microcontroller Project
- From: David L. Jones
- Microcontroller Project
- Prev by Date: Re: Allegro's Hall-effect current sensors
- Next by Date: Re: LM10 Reference...
- Previous by thread: Re: Microcontroller Project
- Next by thread: Re: Microcontroller Project
- Index(es):
Relevant Pages
|