Using 'COUNT' to count pulses from Schmitt trigger.
po2le
Posts: 76
My Basic Stamp:· BS2 on homework board, with· PIC16C57C and manual entitled, "What's a microcontroller?"
I'm using the 'COUNT' command to count pulses from a prebuilt·non inverting Schmitt Trigger, 74HC7014, (Phillips semiconductors).· The input to the Schmitt is a two ended pulse with neg. going half and a pos. going half.· The pos. part of the pulse sometimes has a sharp neg.·spike about a fourth of the way through the pulse.· The Schmitt trigger does a fair job of squaring and cleaning the input, except it will follow the sharp neg.·spike and give an extra output pulse.· This extra pulse is counted by the BS2, which results in a faulty count.·
Is there a way to get the BS2 to ignore that short extra spike?
I thought that Schmitt triggers were supposed to ignore spikes and blips, but this one doesn't.
Comments
The stamp is doing what it is supposed to. You have to feed it a predictable, clean pulse string.
You may need to show us your actual connections and signal levels to make other suggestions.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
·
The Schmitt trigger is actually six triggers contained within a 14 pin DIP chip. (Hex non-inverting Schmitt trigger 74HC7014, PHILLIPS·SEMICONDUCTORS)· one input, one output for each Schmitt, one pin for pos. supply volts, one for neg. supply volts.· Not much I can do with the internal setup, but I will try using your acvice and information.
Thanks PO'T