>
>
> 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 ---
========================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment