Using a Pin of the PIC for Two Components

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Using a Pin of the PIC for Two Components

Post by electron67 »

Hello, a general question,

In my program and in the hardware I am using several components, I have connected a Keypad (eb014) A0 A1 A2 A3 and C0 C1 C2 the keypad is only used the first time the circuit is turned on, only the keypad is re-occupied when you change Parameters, when the program is in a stage where the keypad is not required, can I use the Analog input AN0 (A0) for a sensor, without affecting the program or PIC ? :?: with continuous use or with the passage of time? :?:

Thank You
Enrique

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Using a Pin of the PIC for Two Components

Post by LeighM »

Hi,
Yes, in general, Flowcode components configure (or re-configure) their connected pin(s) when they are initialized or enabled.
You might need to protect the output of the sensor from the output strobes of the keyboard though.

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Using a Pin of the PIC for Two Components

Post by electron67 »

Hi Leigh, thanks for the response,

Is I needed to know; that could be reconfigured without damage in an operating time. :D

Best Regards
Enrique

Post Reply