Drawing a blank on trigger pin polarity


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: Drawing a blank on trigger pin polarity

    This schematic shows what I think you mean and might work for you.

    Name:  ADC in-2.JPG
Views: 637
Size:  33.6 KB

    The 22K is the recommended value when connected directly to RS232 voltage levels like this. The uC internal protection diodes already clamp the input signal to Vdd so the Zener is a safe option and won't start to conduct until the input approaches the rated value.


    I can't remember my voltage divider formula when it comes to introducing the 12V like this, but the results will be:
    Switch OFF : Vout = 2.5V
    Switch 12V : Vout = Somewhere between 2.5V and 5V
    Switch GND: Vout = Somewhere between 2.5V and GND

    Maybe someone can fling it mathematically or plug the values into their Proteus simulator to help me out.

    As far as the A/D module running in the background. It does, but you still have to start it with some code and I believe the only interrupt indication you get is the ADIF when the read is complete which is pretty fast anyways, in the us.
    Louie

  2. #2
    Join Date
    Jan 2010
    Posts
    88


    Did you find this post helpful? Yes | No

    Default Re: Drawing a blank on trigger pin polarity

    Got a hold of a simulator and plugged in the circuit. Actually just drew out the same circuit you had, but I had the input pin at 10K and I have a diode on the 5 V supply line to prevent any back flow if the circuit is ever turned off. With my diode in place and using the 22k resistor, I came out to:

    Switch OFF : Vout = 2.18 V
    Switch 12V : Vout = 4.01 V
    Switch GND: Vout = 1.77 V

    Thank you so much for your help.

Similar Threads

  1. Blank Variable
    By GatorGuy in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 5th February 2010, 17:05
  2. How to reverse polarity on output pulse??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th June 2009, 13:25
  3. Error blank check
    By MINHLE in forum General
    Replies: 0
    Last Post: - 3rd December 2008, 01:56
  4. How do I detect a polarity change on an input?
    By jessey in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 28th May 2008, 23:25
  5. max7219 blank leading zeroes
    By lutherblissett in forum General
    Replies: 0
    Last Post: - 13th November 2005, 16:46

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts