Hi all,
I'm using a 18F8722 with PBP and MPASM, and can't for the life of me get port E to act like a normal digital I/O port.
The datasheet for the PIC says that after a power up reset the port comes up in digital I/O mode, but then goes on to say that in 80-pin devices, the EBIDS bit (7) of MEMCON must be cleared first!
Well, MPASM is absolutely new to me, and I see all those names called out in a 'P18F8722' file in the MPASM directory, but don't really know what to do next. Do I need to include this file somehow in my project before those names will be recognized? How do you do that?
If not, I can see in the file that the hex address for the MEMCON register is 09FCh. (It says so in the datasheet, and in the MPASM file). I tried just taking a 'shortcut' (not) and including the following:
@ __CONFIG 09FCH, 10000000B (to set bit 7)
but the compiler said 09FCh wasn't a good address! Can someone help me make port E a normal digital i/o?
Thanks very much,
Jackson
Bookmarks