Jinx wrote:
{Quote hidden}>
> Can anyone clarify what's going on with RB0 INT on an F84
> please
>
> Whilst writing a zero-crossing detector I measured the voltage
> threshholds for RB0, to find out when the interrupt would be
> generated. The results I've got are nothing like the data specs.
> If someone has documentation to back up what I've found I'd
> be glad to see it. I'm sure I'm not the first to run into this. If I've
> got it wrong I'd like to know where
>
> The assumption was that with RB0 as a Schmitt Trigger input
> the voltages would be 0.8V and 0.2V, but my measurements
> don't support this. The data sheet does say that Vhys is To
> Be Determined, but aside from that it seems there's a dv/dt
> limit for RB0, which doesn't sound like a Schmitt Trigger. With
> a pot in the range 500R to 100k and INTEDG set for falling
> voltage IRQ, it's quite easy to lower the voltage slowly (0.01V/s)
> on RB0 without the PIC generating an INT IRQ. If an IRQ is
> generated it happens at 1.6V. The ISR will be exited if btfss in the
> ISR is true at 1.5V. With INTEDG=1 (rising voltage IRQ), the IRQ
> will happen at 3.11V and exit via btfsc at 1.48V. An IRQ is
> always generated no matter how slowly VRB0 rises. (I've also
> tried this with RB3, and that will flip at 1.44V whichever way
> V is going)
The Microchip datasheets are all very specific showing:
The ST input MAX VIL (input low) as 0.2v.
So it must lower into the 0v-0.2v range *absolutely*
to cause a low-going trigger.
The ST input MIN VIH (input high) as 0.8v
So it must raise into the 0.8v-5v range to cause a
high-going trigger.
As these are listed as the min/max figures in
the datasheet I would expect that Microchip
takes these figures seriously??
Annoyingly they don't list typical figures
for these threshold points. :o(
-Roman
--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspam
@spam@mitvma.mit.edu