I am working on a program to run a enc28J60. I am using a 18F4550 and PBP 2.60b. If I declair constants using the 28J60 register names I get Syntax errors. If I prefix the register name it compiles,
as example, This works
Code:
enECON2 con $1E
enECON1 con $1F
'---- Bank 0 registers
eERDPTL con $00|$00
eERDPTH con $01|$00
eEWRPTL con $02|$00
eEWRPTH con $03| $00
This does not work using the real register names
Code:
ECON2 con $1E
ECON1 con $1F
'---- Bank 0 registers
ERDPTL con $00|$00
ERDPTH con $01|$00
EWRPTL con $02|$00
EWRPTH con $03| $00
These are not on the reserved word list for PBP.
Any ideas?
Thanks
Dave
Bookmarks