View Single Post
  #7   Report Post  
Posted to alt.binaries.schematics.electronic
Spehro Pefhany Spehro Pefhany is offline
external usenet poster
 
Posts: 1,475
Default PIC16F877A-I/P question

On Tue, 23 Mar 2010 21:15:02 -0400, the renowned "Oppie"
wrote:

I believe that you will find that the difference is in the different types
of digital inputs used on pins 7 and 8 of the MCU.
Look at pages 10-11 of the data sheet. Pin 7 (RA5) is 'ttl' input. Pin 8
(RE0) is a Schmitt Trigger TTL input. On pin 8, the Schmitt hysteresis is
giving the difference you observe.

Also look at the datasheet page 31 for details of the port structures and
how this might impact your design.

it is sometimes acceptable to use a digital input with an analog input. In
this case though, you should consider either using the analog input mode or
using an external comparator with well defined trip levels.
That's the 10 minute review, hope it helps - Oppie


Or switch to the PIC16F887 or other micro with two comparators
on-board. As typical with Microchip, the newer parts are also
considerably cheaper than the long-in-the-tooth PIC16F877 (way less
than half the price in 100's).



Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com