Going-low Switch Input Circuit

A general forum and a place for initial or prospective users. See Manuals/Documentation
Click here to enter
Contact a Forum Administrator
If unsure where to post, post in this sub-forum.

Moderators: jsmcortina, muythaibxr

Post Reply
dontz125
Super MS/Extra'er
Posts: 4221
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Going-low Switch Input Circuit

Post by dontz125 »

I've been playing here for many years, and I've recommended the standard going-low guard circuit shown in all the hardware manuals to many folks over that time, but for some reason I've never really questioned it before. The series diode blocks voltages higher than the processor pin and the pull-up resistor; the pull-up resistor provides a definitive voltagestep when the switch closes. What function does the ground-to-pin diode serve? It looks like a flyback diode, but 5v through a 1k pull-up is only 5mA; I can't see too much induction effect built up. I seem to recall someone mentioning it was for reverse protection, but the series diode should prevent any issues there.

Is there a benefit? Or is this just one of those "It's always been done this way!" artifacts that accumulates in every body of wisdom?
lowinput.jpg
Temporarily shut down - back soon!
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
jsmcortina
Site Admin
Posts: 39615
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Going-low Switch Input Circuit

Post by jsmcortina »

It protects against voltage levels below zero.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
dontz125
Super MS/Extra'er
Posts: 4221
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: Going-low Switch Input Circuit

Post by dontz125 »

Ok. Fair enough. I've been pondering the second half of the equation here - what about the current that flows through that reverse voltage? This is fine for a momentary surge, but what about an actual misconnection? If a voltage source is hooked up backwards, you have a dead short through those two diodes, and something is going to fail, and I can't decide where to put a limiting resistor that wouldn't interfere with the flyback function. Am I overthinking this?
Temporarily shut down - back soon!
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
Post Reply