Searching \ for '[PIC]: input mode' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=input
Search entire site for: 'input mode'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: input mode'
2007\07\30@141346 by ELKEJBOUT Mustapha

flavicon
face
hi list,
I am trying to use PORTA as input in vain, to put 0 or 1 on these pins doesn't work,  I have used I pull up resistor for the portA pin.
Can anyone show me how to make an input mode work correctly?
thanks in advance


Mustapha ELKEJBOUT
---------------------------------------
"Every one has to do what he can do according to how it can be truly done"
For whom the bell tolls, Ernest Hemingway.
     
---------------------------------
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

2007\07\30@142439 by Dario Greggio

face picon face
ELKEJBOUT Mustapha wrote:

> I am trying to use PORTA as input in vain, to put 0 or 1 on these pins doesn't work,  I have used I pull up resistor for the portA pin.
> Can anyone show me how to make an input mode work correctly?
> thanks in advance

DUPLICATE :-))

and again, which PIC??

2007\07\30@142816 by Harold Hallikainen

face
flavicon
face

> hi list,
> I am trying to use PORTA as input in vain, to put 0 or 1 on these pins
> doesn't work,  I have used I pull up resistor for the portA pin.
> Can anyone show me how to make an input mode work correctly?
> thanks in advance
>
>
> Mustapha ELKEJBOUT


Chips that have ADCs come up in analog mode, so you need to initialize the
ADC to set the pins to be digital. This may also be the case for chips
with comparators.

Harold

--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!

2007\07\30@143926 by Felipe Baldner

picon face
What family of PICs are you working with?

AFAIK, PORTA is usually associated with the ADC and is configured as
an AD input on reset... so you need to check your AD registers and
configure the PORTA to be a digital IO. At least that's it for the
PIC16 family (which is the one i'm in touch with...)... Worth a look
on the datasheet for your PIC to see if it applies to your model.


--
[]´s
Felipe Baldner
spam_OUTfbaldnerTakeThisOuTspamgmail.com

On 7/30/07, ELKEJBOUT Mustapha <.....elkejbout_mustaphaKILLspamspam@spam@yahoo.fr> wrote:
{Quote hidden}

>

2007\07\30@161641 by Bob Blick

face picon face

--- ELKEJBOUT Mustapha <elkejbout_mustaphaspamKILLspamyahoo.fr>
wrote:

> I am trying to use PORTA as input in vain, to put 0
> or 1 on these pins doesn't work,  I have used I pull
> up resistor for the portA pin.
> Can anyone show me how to make an input mode work
> correctly?

Hi Mustapha,

Usually when something like that happens to me, it is
comparators or A/D converters that I have forgotten to
disable.

If you tell me what PIC you are using it'll be easier
to diagnose.

Cheerful regards,

Bob

2007\07\30@164857 by wouter van ooijen

face picon face
> I am trying to use PORTA as input in vain, to put 0 or 1 on
> these pins doesn't work,

disable all analog functions (A/D, comparators).

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu



2007\07\30@231105 by John Chung

picon face
If this is your first time playing i/o ports try using
PORTB. Simpler to use.

John


--- Felipe Baldner <.....fbaldnerKILLspamspam.....gmail.com> wrote:

{Quote hidden}

> > --

2007\07\31@091107 by ELKEJBOUT Mustapha
flavicon
face
hi list,
I have to disable the comparator function to have things going as I expect.
thanks for all replies



Mustapha ELKEJBOUT
---------------------------------------
"Every one has to do what he can do according to how it can be truly done"
For whom the bell tolls, Ernest Hemingway.
     
---------------------------------
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

More... (looser matching)
- Last day of these posts
- In 2007 , 2008 only
- Today
- New search...