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.

Pic16f877 Pin donot reading values.. please help

Status
Not open for further replies.

saba mh

Newbie level 3
Newbie level 3
Joined
Apr 3, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
I have written c code to determine frequency of a square wave from portA of Pic16f877 using Mplab Hitech compiler. i am giving a wave on the pi while simulation but the value of port is not changing. kindly help with this code attached
 

Attachments

  • Frequency count.zip
    151.9 KB · Views: 88

Have you set the inputs to digital I/O using the ADCON register?
The Port A inputs power up as analog inputs, you need to set them to digital I/O.
 

no i havent set that. problem is solved now. thanx :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top