Can anyone help a newcomer?


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scopit View Post
    The power supply is a regulated DC 6V 300mA plug type. On the board have a 7805 regulator with 10uf + 100nF decoupling capacitors. I have 100nF at the opto encoder supply.
    That 6v adaptor won't give a lot of headroom to the 5v reg if it is a standard 7805 style one - this might cause inconsistencies if it is borderline on the regulation and cannot supply the current for the opto LED. I always design at least 2 and ideally over 3v more input than the output of the reg.
    Do you have a 9v DC plug pack you could try ?

    Bill.

  2. #2
    Join Date
    Oct 2009
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by bcd View Post
    Do you have a 9v DC plug pack you could try ?
    Bill.
    Hi Bill
    The plug pack is switchable, I'll up it to 7.5 & 9v and see if it makes a difference.
    I suspect the problem is between the receiver and the PIC as the input to RB0 is clamped at 1.65V.
    But at the moment, I'll try anything!
    Thanks for the input and I'll get back to you once I've tested
    Danny

  3. #3
    Join Date
    Oct 2009
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Here's the latest!

    I have upped the PSU voltage and checked all the connections.With a pull up resistor the optical encoder output switches between 1.3 and 4.4 volts.

    It will trigger the interrupt the first time it goes high. No further interrupts occur.
    If I reset with encoder output low, then the first low low to high transition triggers the interrupt.
    If I reset with encoder output high, then the interrupt is not triggered.

    If I replace the encoder output with a switch to 5volts, I can trigger multiple interrupts so the software looks like it's working.

    Any ideas anyone?
    Thanks
    Danny

  4. #4
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Look at Table 4.3 and Table 9.2 of the 16F84A datasheet. When configured as an External Interrupt, RB0 has a Schmitt Trigger input buffer which needs 0.8*Vdd for a logic high and 0.2*Vdd for logic low. Your voltages appear to be marginal.
    Last edited by dhouston; - 18th October 2009 at 19:36.

  5. #5
    Join Date
    Oct 2009
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dhouston View Post
    Look at Table 4.3 and Table 9.2 of the 16F84A datasheet. When configured as an External Interrupt, RB0 has a Schmitt Trigger input buffer which needs 0.8*Vdd for a logic high and 0.2*Vdd for logic low. Your voltages appear to be marginal.
    Thanks Dave, I'll check the voltages again but from your post, the problem may be on the logic low.

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scopit View Post
    Thanks Dave, I'll check the voltages again but from your post, the problem may be on the logic low.
    I agree - after sensing the first high, it never senses a low, so it cannot sense another low-to-high transition.

  7. #7
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scopit View Post
    Thanks Dave, I'll check the voltages again but from your post, the problem may be on the logic low.
    It appears that after sensing the first high, it never senses a low, so it cannot sense another low-to-high transition.

  8. #8
    Join Date
    Oct 2009
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dhouston View Post
    It appears that after sensing the first high, it never senses a low, so it cannot sense another low-to-high transition.
    Thanks Dave you were right. I removed the pull up and in the process found a dry joint. This may have been the source of the issue in the first place, but was causing the intermittent behaviour.

    Interrupt is working now and I can continue working through the testing.

    Thanks everyone for your help.
    Danny

Similar Threads

  1. Hlp - newcomer getting confused
    By chunk in forum General
    Replies: 1
    Last Post: - 23rd January 2006, 18:47
  2. 12F629 config help for newcomer
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th January 2004, 22:03

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