Odd PIC/Hardware(?) issue


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2008
    Posts
    8

    Default Odd PIC/Hardware(?) issue

    Has anyone had a problem with a PIC refusing to take pulsed input from a particular source? Some specifics:

    * PIC being used to read 1-2ms pulses from a radio receiver
    * Software and hardware always work perfectly for one model of receiver and never work at all for a second model of receiver. Both receivers made by the same manufacturer. This has been tested by using the same board/PIC/power supply and changing only the receiver - many times. Both receivers work - servos will accept commands from each.
    * Scope indicates a nice 1-2ms pulse at 2.93v (high), 0 (low) for one, 3.13 and 0 for the second (working one). I think frequency is about 100hz, but I'm not sure on that one.

    Pic 12F675 operating on a 5 volt voltage regulator, GPIO.2 used for signal input. Common ground. wpu on the input line is off. Again, the software works well for the second and does not recognize the first at all.

    The data sheet seems to indicate the voltage levels are appropriate for communication and the leakage (amperage consumption for PIC communications) looks very small. Wiring goes receiver, resistor, input pin

    Am I missing something obvious? Suggestions, search terms, links and experience are welcome.

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    Scope indicates a nice 1-2ms pulse at 2.93v (high), 0 (low) for one, 3.13 and 0 for the second (working one).
    Try a pullup resistor for the first one. The High(2.93) seems to be your problem.

  3. #3
    sinoteq's Avatar
    sinoteq Guest


    Did you find this post helpful? Yes | No

    Default

    My theory is:
    Because GPIO2 is a Schmitt trigger input it requires 0,8*VDD as High voltage level. That would be 4V in your case. So this design is not really the good. Can you move the input because it is only GPOI2 that has this kind of buffer. If you have a TTL input buffer you get 0.25*VDD+0.8 =2.05 Volts and the problem should go away. Or change the VDD voltage to 3V and run the PIC on the lower voltage.

  4. #4
    Join Date
    May 2008
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Ah - problems caused by blindness

    Doh: You know I thought something on the input port might have been the issue, searched through the data sheet, found notation that the Schmitt trigger was there, checked the voltage necessary to trigger it....... and somehow read 0.8 VDD as 0.8 volts instead of 0.8 * VDD.

    That's gotta be it. Thanks

Similar Threads

  1. DMX receive issue
    By NoahLD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th August 2014, 13:51
  2. 18F2520 ADC issue
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 24th August 2009, 16:11
  3. Puzzling issue with I2CWRITE to 24LC512
    By aberco in forum General
    Replies: 4
    Last Post: - 22nd August 2008, 17:47
  4. Code Issue - select case or 'if' issue - not sure why
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th October 2007, 08:52
  5. 18F1320 ... Strange Memory
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 43
    Last Post: - 9th April 2006, 09:55

Members who have read this thread : 1

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