Simple program for 12F629


Results 1 to 16 of 16

Threaded View

  1. #15
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink Humour ...

    Hi,


    Just a little innocent question ...

    Does your program compile ???
    Code:
    CMCON=7
    
    ul var GPIO.0 'Define GPIO.0 pin as ul
    izl VAR GPIO.2 'Define GPIO.2 pin as izl
    
    High izl
    Input ul
    
    loop:
    if ul=1 then
    pause 3000
    low izl
    end if ... sure about the spelling ???
    goto loop
    You sure ??? just a Typo, I wonder ...

    Now, connecting GPIO.0 to +5v would have been so simpler to find there were NO problem in your code ...
    Do not tell us you have two separate 5v supplies ...

    Alain
    Last edited by Acetronics2; - 28th July 2008 at 10:40.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Simple Blink program doesnt work.
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st March 2009, 21:30
  2. Help with simple program
    By mykewl in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 31st July 2008, 09:58
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  4. simple counting program - please help!!
    By john meiers in forum mel PIC BASIC
    Replies: 3
    Last Post: - 20th February 2006, 14:17
  5. Simple Interrupt Program
    By eoasap in forum General
    Replies: 5
    Last Post: - 28th October 2005, 17:22

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