PIC12f683 GPIO.0 Trouble


Results 1 to 12 of 12

Threaded View

  1. #7
    Join Date
    Dec 2012
    Location
    Georgia, USA
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: PIC12f683 GPIO.0 Trouble

    It works now but 12F683 still gets hot, I also noticed it flashes the
    power power light on the old controller after 15 seconds.
    but relay is still up seems like it takes 2 cycles to release relay.
    Then 12F683 starts getting really hot.

    I put the 10K resistor in not really sure on how to do the math on the
    transistor.

    any ideas?



    Thanks
    Larryd



    '************************************************* ***************
    '* Name : RelayHold.BAS *
    '* Target PIC : PIC12F683 *
    '* Oscillator : 4MHz internal *
    '* Description : Pull Relay and Hold 15 seconds *
    '************************************************* ***************


    RstRELAY Var GPIO.2 ' Alias GPIO.2 Go High To Pull Relay
    RESETME Var GPIO.4 ' Alias GPIO.4 to Wait For Pin-3 to Go High From Old Controller
    STAT Var GPIO.5 ' Alias GPIO.5 Go High show LED Relay Active



    ANSEL = 0 ' Set all digital
    CMCON0 = 7 ' Analog comparators off
    TRISIO =%00011000

    low STAT
    low RstRELAY


    mainloop:

    If RESETME = 1 Then ' PIC Requesting Reset
    gosub ReSet_Ctrllr
    Endif
    Goto mainloop ' Do it forever

    End

    ReSet_Ctrllr:

    High RstRELAY ' Turn on Relay connected to GPIO.0
    High STAT ' Turn On LED If Present
    PAUSE 15000 ' Hold Relay High for 15 seconds
    low RstRELAY ' Turn Off Relay connected to GPIO.0
    low STAT ' Turn Off LED If Present
    PAUSE 20000 '50000 'Give Controller Chance to Recover Pause about a minute


    return
    Attached Images Attached Images  

Similar Threads

  1. 12F683: I change GPIO.5 but GPIO.0 also changes...why?
    By chicowoodhill in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th December 2012, 17:09
  2. Replies: 1
    Last Post: - 29th February 2012, 09:37
  3. Trouble with PIC12F683 - GP0 GP1 as inputs
    By erice1984 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 30th March 2009, 04:32
  4. pic12F683 , gpio.5 not accessible...
    By flipper_md in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 9th May 2008, 05:25
  5. Using the pic12F683
    By TonyA in forum General
    Replies: 2
    Last Post: - 6th April 2006, 12:46

Members who have read this thread : 2

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