It's not a PBP problem, it's a Microchip p18F2431.inc file problem. Seems they forgot to add it in their LAT/PORT/TRIS list...
BUT, erm, erm.. let's see a datasheet quote...
10.5 PORTE, TRISE and LATE
Registers
Note: PORTE is only available on PIC18F4331/
4431 devices.
on the other hand...seems they also forgot their own quote
10.5.1 PORTE IN 28-PIN DEVICES
For PIC18F2331/2431 devices, PORTE is only
available when master clear functionality is disabled
(CONFIG3H<7> = 0). In these cases, PORTE is a
single bit, input-only port comprised of RE3 only. The
pin operates as previously described.
So, just add TRISE/LATE/PORTE to the .inc file and i'm sure it will work
Last edited by mister_e; - 23rd December 2007 at 20:56.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks