Portc.3 latching?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    With all of your code crammed together, and no code tags, it's really hard to read it all, but you might want to look for more instances of things like this;

    GOSUB BEGIN'
    BEGIN:
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Feb 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Default Where to begin

    1st, I crammed everything to gether for this post. My code looks much nicer than that.
    But it does bring up a question I had: Where does the PIC start excecuting? If I don't tell it where to start?
    And right I changed
    GOSUB BEGIN
    BEGIN:
    to
    GOTO BEGIN
    BEGIN:
    Is that better? If I didn't put that there where would the PIC have begun running? Right after the BEGIN: label? ie

    BLEDOUT = 0' TURN BLUE LED ON ??
    The less you expect, the more you get.

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


    Did you find this post helpful? Yes | No

    Default

    The program will start at the very top of your code, and will execute each following lines. You don't need the GOTO BEGIN.
    Steve

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

Similar Threads

  1. A logic gate chip with 1 ea XOR and 2 ea AND gates?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 5th August 2009, 05:29
  2. Serin2 - All I Need Is 8 Numbers....
    By SOMRU in forum Serial
    Replies: 4
    Last Post: - 14th December 2006, 13:50
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  4. Newbie - 16F628A and switch latching
    By malc-c in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 19th May 2006, 02:35
  5. flip flop for driving latching solenoids
    By kitcat in forum Schematics
    Replies: 3
    Last Post: - 4th February 2006, 22:34

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