PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Jan 06, 2007 3:54 pm |
|
|
Quote: | #bit TOUCH_PIN_BIT = 5.1 // Port A (5) pin 1 |
You've defined the address of the PortA register as 0x05.
That's valid for the 16F series, but not for the 18F series.
Look in the data sheet for your PIC, in the section titled
"SPECIAL FUNCTION REGISTER MAP". It will list the correct
register address for PortA for your PIC.
If any of your #included files have the same problem, you'll
need to fix them as well.
Also, when you post code, be sure to disable HTML. There's
a checkbox to do this, if you look below the posting window.
You should Edit your post, delete the code, and copy and paste
a fresh copy from your editor. Then disable HTML before
clicking the Submit button.
Quote: |
x Disable HTML in this post |
|
|