12f675 to latch output while it does something else


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: 12f675 to latch output while it does something else

    In addition to what others suggested. Are you using a transistor to buffer the pic
    output from the relay coil? If not you may be exceeding the current capacity of
    the output pin. This could cause heating and result in the pic resetting. Also inductive
    voltage spikes can cause resets. A simple schematic would help of your relay connection.

  2. #2
    Join Date
    Apr 2014
    Location
    Petaling Jaya, Selangor MALAYSIA
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: 12f675 to latch output while it does something else

    Quote Originally Posted by mark_s View Post
    In addition to what others suggested. Are you using a transistor to buffer the pic
    output from the relay coil? If not you may be exceeding the current capacity of
    the output pin. This could cause heating and result in the pic resetting. Also inductive
    voltage spikes can cause resets. A simple schematic would help of your relay connection.
    Hi mark, thanks for the heads up on that, Yes I'm using a 2N2222 for the output to relay on open emitter, as well as a diode across the relay to stop it from chattering.

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: 12f675 to latch output while it does something else

    Hi,
    Hi henrik, I seem to have lost A.0 & A.1 & A.3 as outputs....? I tried to swap the led around the port, but they won't light up.
    Not sure I understand what this means.
    On the 12F675 you have GPIO.0 etc. Make sure you reference that and make sure you set/clear TRISIO accordingly.

    /Henrik.

  4. #4
    Join Date
    Apr 2014
    Location
    Petaling Jaya, Selangor MALAYSIA
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: 12f675 to latch output while it does something else

    Quote Originally Posted by AVGuru View Post
    Hi mark, thanks for the heads up on that, Yes I'm using a 2N2222 for the output to relay on open emitter, as well as a diode across the relay to stop it from chattering.
    THANK YOU all. got it to work on the PICEASY board, now to put it in a box and on the wall.


    thanks again

Similar Threads

  1. 12f675 GPIO Problem. No output on GPIO.2
    By tasmod in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd June 2014, 15:57
  2. Replies: 11
    Last Post: - 13th January 2013, 10:25
  3. How to latch an output for a pre-defined time
    By Dennis in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st December 2009, 18:20
  4. 12F675 output dependency
    By Kristjan in forum General
    Replies: 4
    Last Post: - 5th May 2007, 00:44
  5. open drain output as digital output?
    By droptail in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th November 2006, 03:11

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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