Switch PIC16F877 ON/OFF


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi Melanie

    Thank you for your reply!

    Quote Originally Posted by Melanie
    You've shot yourself in the foot with the way you've designed your circuit.
    What is a better way to design it, I can still make changes to my design?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Probably i don't understand the whole thing as it's suppose but here's what i suggest.

    remove the diode and blah blah. Use only your keyboard.

    You just want to monitor the ON switch right???

    This switch is attach between RB.3 and RB.4 right???

    NOW what about...
    Code:
    ' define and blah blah 
    '
    '
    HIGH MAXPIN
    LOW PORTB.3
    OPTION_REG.7=0 'enable internal Pull-UP
    While PORTB.4 : WEND ' wait untill ON button is pressed
    LOW MAXPIN
    This should work
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi Steve,

    I'm not sure if I understand you correctly.

    The MAXPIN is HIGH by Default, which keep the Power to the PIC Off.
    If I press the ON Button, it pulls the MAXPIN to LOW and the circuit will switch on.
    The First Line of your Code, "HIGH MAXPIN" Would then switch the Power to the PIC Off?

Similar Threads

  1. Switch on/off every sine pulse
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 27th July 2009, 20:45
  2. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  3. 'Soft' On/Off Power Switch
    By Art in forum General
    Replies: 19
    Last Post: - 14th November 2008, 01:54
  4. Swicth PIC ON/OFF with Membrane Keypad
    By koossa in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th August 2005, 13:28
  5. Switch Polling vs Interrupts
    By eric blair in forum General
    Replies: 1
    Last Post: - 17th October 2003, 09:38

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