Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Slot sensor connected to PIC at RA4 Pin

Status
Not open for further replies.

srinu249

Member level 1
Joined
Apr 10, 2010
Messages
34
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,288
Location
Hyderabad,INDIA
Activity points
1,495
i am working on batch counter using pic16f877A...
I know the logic about batch counter my quesion is....

I am using RA4 as DIIGITAL INPUT.....
RA4 is opendrain pin...

its not multiplexed with ANALOG pins..
using TRIS i can configure as OUTPUT..
but how could i configured as DIGITAL ... using ADCON1 only ANALOG pins can be digitalized.. RA4 is not multiplexed with ANALOG
so how to do it .. plz give me clarification in this.......

Added after 1 minutes:

SOrry.... iam configuring as DIGITAL INPUT...
TRISA4=1;.. i can confiugred as INPUT.....
how to DIGITALIZED this..
 

srinu249 said:
i am working on batch counter using pic16f877A...
I know the logic about batch counter my quesion is....

I am using RA4 as DIIGITAL INPUT.....
RA4 is opendrain pin...

its not multiplexed with ANALOG pins..
using TRIS i can configure as OUTPUT..
but how could i configured as DIGITAL ... using ADCON1 only ANALOG pins can be digitalized.. RA4 is not multiplexed with ANALOG
so how to do it .. plz give me clarification in this.......

Added after 1 minutes:

SOrry.... iam configuring as DIGITAL INPUT...
TRISA4=1;.. i can confiugred as INPUT.....
how to DIGITALIZED this..
try to convert he analog signal to digitial before feeding it to RA4.
 

It should work like any other digital input. You need to ensure you are driving it high and low, if you are only pulling it low you must add an external pull-up resistor. Also note that RA4 only has partial over-voltage protection so be careful not to exceed supply voltages on it.

Brian.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top