Page 1 of 1

EDATA SFR location in device modules

Posted: Mon May 19, 2008 12:22 pm
by JWinters
In the device modules for 18FxxJxx family controllers having ethernet capabilities, I've noticed that the EDATA SFR is commented out in the 'public system' area and defined later in the code under the 'alias' section. The datasheets say that EDATA is located at $0F61 although the device module is setting it at $0F80. However, $0F80 is also the location of PORTA.

I'm not sure of the difference between a 'public dim' and a 'public system' declaration, but the register location doesn't seem right to me. Can someone tell me if this is a mistake in the device module?

Posted: Wed May 21, 2008 12:51 pm
by tass
i think it is a mistake i hope that DAVID will confim this

Posted: Sat May 24, 2008 10:29 am
by David Barker
The address is a mistake, but moving from public system is not. It should be

// alias...
public dim
EDATA as byte absolute $0F61,
...

which should allow you to use in your BASIC program without it conflicting at the ASM level.