beginer help needed


Closed Thread
Results 1 to 7 of 7

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: beginer help needed

    Hi,
    Which PIC are you using?
    It probably has some analog function on PortB.2 so you need to set it to digital mode.

    Another thing is that it might do exactly what you want it to do. But when the Until PortB.2=0 evaluates true you don't do ANYTHING so the program continues into empty space and then start over, try:
    Code:
    ...
    ...
    loop until portb.2 = 0
    LOW PortB.7
    END
    Also, remember that define is case sensitive so it should be define OSC 4. In this case it doesn't really matter since 4MHz is the default anyway but try to remember that.

    /Henrik.

    EDIT: What exactly is the reason for posting the exact same question twice? You've already received an answer in the other thread....
    Any moderator care to delete or join threads?
    Last edited by HenrikOlsson; - 19th March 2014 at 16:15.

Similar Threads

  1. PBP 3.0 really needed?
    By Mugelpower in forum FAQ - Frequently Asked Questions
    Replies: 30
    Last Post: - 17th December 2017, 19:19
  2. Beginer problems
    By luxornet in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th February 2010, 04:55
  3. Beginer Help!
    By MINHLE in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 5th July 2008, 03:57
  4. Help Needed
    By Bizhub in forum General
    Replies: 1
    Last Post: - 30th June 2007, 20:18
  5. Help needed to troubleshoot
    By ssocs45 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th February 2004, 18:00

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