Re: Microcontroller Project



In article <MPG.1e9326a6375aba7298996c@xxxxxxxxxxxxxxxxxxx>,
Keith <krw@xxxxxxxxxx> wrote:
[....]
Good luck with automatic variables in an 8051.

If the code doesn't recur, the overlay method works ok. Its interrupts
and recuring code that really makes it big trouble.

Remember, you only
have 128 bytes and about half of that taken for other purposes.
It's been a few years since I used an 8051, but I don't recall any
sort of stack frame either.

You can do stuff like:

mov A,SP
add A,#(0-something)
mov R0,A
mov A,@R0


I don't think I'd care to do a TCP/IP stack in an 8051 either. ;-)

I don't see why not. You'd have to have external RAM anyway so you can
have a micro with 128 registers and 512K of RAM. That would be room
enough.



--
--
kensmith@xxxxxxxxx forging knowledge

.