Using pins 1-4 as digital (OOPic-R) - zachwlewis - Feb 5 13:03:58 2008
I've been having some problems when using pins 1-4 on the OOPic as digital
input/output pins. I've tried using them for servos (output) and
send-recieve sensors (input), but I can't figure out how to set them to
digital. I read that they had the A2D converter stuff hooked up on them, and
I think it is interfering with the operation of the program. Any ideas?
--
View this message in context:
http://www.nabble.com/Using-pins-1-4-as-digital-%28OOPic-R%29-tp15295367p15295367.html
Sent from the OOPic mailing list archive at Nabble.com.

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )
Re: Using pins 1-4 as digital (OOPic-R) - dan michaels - Feb 5 15:04:25 2008
--- In o...@yahoogroups.com, zachwlewis
wrote:
> I've been having some problems when using pins 1-4 on the OOPic as
digital input/output pins. I've tried using them for servos (output)
and send-recieve sensors (input), but I can't figure out how to set
them to digital. I read that they had the A2D converter stuff hooked
up on them, and I think it is interfering with the operation of the
program. Any ideas?
>
Yes, don't do that. This is a common problem. Reserve iolines 1-7 for
A/D, and use the others for digital I/O.
This is an issue that goes back to how the underlying PIC16F877 chip
allocates those pins. You cannot willy-nilly use them for DIO and AIO
in any combination. There is a specific ordering. Eg, if you use
ioline 1 for digital, then you can't use any of the others for analog,
etc. It's easiest to avoid the problem in the first place by not using
them for digital.
- dan michaels
www.oricomtech.com
--- OOBOT40 Boards ---
========================

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )Re: Using pins 1-4 as digital (OOPic-R) - denn...@oopic.com - Feb 5 16:01:49 2008
What compiler version are you using? Which firmware rev?
DLC
ooPIC Tech Support
-----Original Message-----
From: zachwlewis
Subj: [oopic] Using pins 1-4 as digital (OOPic-R)
Date: Tue Feb 5, 2008 10:56 am
Size: 1K
To: o...@yahoogroups.com
I've been having some problems when using pins 1-4 on the OOPic as digital
input/output pins. I've tried using them for servos (output) and
send-recieve sensors (input), but I can't figure out how to set them to
digital. I read that they had the A2D converter stuff hooked up on them, and
I think it is interfering with the operation of the program. Any ideas?
--
View this message in context:
http://www.nabble.com/Using-pins-1-4-as-digital-%28OOPic-R%29-tp15295367p15295367.html
Sent from the OOPic mailing list archive at Nabble.com.

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )Re: Using pins 1-4 as digital (OOPic-R) - ooPIC Tech Support - Feb 5 23:19:51 2008
Here is the explanation for the problem and the typical fix if you are
using the v.5 compiler, check message Message #31009 in the ooPIC archive.
The V.6 compiler should have fixed this.
DLC
zachwlewis wrote:
> I've been having some problems when using pins 1-4 on the OOPic as digital
> input/output pins. I've tried using them for servos (output) and
> send-recieve sensors (input), but I can't figure out how to set them to
> digital. I read that they had the A2D converter stuff hooked up on them, and
> I think it is interfering with the operation of the program. Any ideas?
>
--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )