Apr 21, 2012 #1 S saba mh 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: 80
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
Apr 21, 2012 #2 B btbass Advanced Member level 5 Joined Jul 20, 2001 Messages 1,896 Helped 438 Reputation 880 Reaction score 288 Trophy points 1,363 Location Oberon Activity points 12,887 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.
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.
Apr 22, 2012 #3 S saba mh Newbie level 3 Joined Apr 3, 2011 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,296 no i havent set that. problem is solved now. thanx