Re: 89C51ED2
- From: Eeyore <rabbitsfriendsandrelations@xxxxxxxxxxx>
- Date: Sun, 07 Sep 2008 07:08:06 +0100
MooseFET wrote:
"TT_Man" <Some...@xxxxxxxxxxxx> wrote:
">> > Now why does my code always start with an initialisation procedure for
variables
and the 8051 special function registers function I wonder ?
Mine usually starts:
LJMP Startup
.........................
StartUp:
MOV SP,#MainStack
MOV P1,#0FFH
MOV P2,#0FFH
MOV P3,#0FFH
WTF is that supposed to do ?
Set the stack pointer to where you want it to be- #mainStack
Set ports 1,2 and 3 to 0xFF
How hard is that?
Sorry I was missing the obvious P1, 2, 3 etc. I don't play with stacks myself.
Graham
.
- Follow-Ups:
- Re: 89C51ED2
- From: krw
- Re: 89C51ED2
- References:
- Re: 89C51ED2
- From: Robert Baer
- Re: 89C51ED2
- From: MooseFET
- Re: 89C51ED2
- From: Eeyore
- Re: 89C51ED2
- From: MooseFET
- Re: 89C51ED2
- From: Eeyore
- Re: 89C51ED2
- From: TT_Man
- Re: 89C51ED2
- From: MooseFET
- Re: 89C51ED2
- Prev by Date: Re: 89C51ED2
- Next by Date: Re: 89C51ED2
- Previous by thread: Re: 89C51ED2
- Next by thread: Re: 89C51ED2
- Index(es):
Relevant Pages
|