Re: rom export table

Robert Muchsel <robert.muchsel-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
32 KB of SRAM are not enough to use the network stack.

The following assembly code will access the ROM export table:

        ; Get the table address
        mov dptr, #0ff0002h
        clr a
        movc a, @a+dptr
        mov dpx1, a
        mov a, #1
        movc a, @a+dptr
        mov dph1, a
        mov a, #2
        movc a, @a+dptr
        mov dpl1, a
                                                                                                                                	; dptr1 now has the address of the table

	; Read first byte from table
	inc dps
        clr a
        movc a, @a+dptr

	; Read more .... ....
	; ...

	inc dps


Remember that you need a 24 bit assembler.

You don't have to do anything to map the ROM, it is at address 0ff0000h.

> From: Suneet Anil Deshmukh
> Sent: Tuesday, April 13, 2004 5:19 AM
>
> Sir/Madam
>
> We are using DS80C400 in our college project. We are not using the
> evaluation board. We have made our own board interfacing 80C400 with 64kb
> eprom and 32kb sram. Is this configuration sufficient for DS80C400 to work
> properly.
>
> We are using a 8051 assembler for coding purposes. We have been unable to
> get the starting address of the rom export table. We are also having
> problems with rom mapping despite following the ROM init procedure in the
> datasheet.
>
> Could you please help us with this problem. Thanks.
>
> Suneet Deshmukh,

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.