Port Error, Someone tell me something


Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Feb 2011
    Location
    Myanmar
    Posts
    11

    Default Port Error, Someone tell me something

    Hi my friends,
    I wrote my very simple program with pic basic pro version 2.6 and something went wrong. please check it my code

    TRISB=0
    Main:
    PORTB = 7
    PAUSE 200
    PORTB = 0
    PAUSE 200
    GOTO Main
    END

    I put 3 LEDs in RB0, RB1 and RB2, I want all 3 LEDs want to be on and off. Here is the problem, all LEDs are on, but no OFF.
    Someone can help me something? I used PIC16F628A with internal clock
    Last edited by serial_bug; - 22nd November 2015 at 23:13.

Similar Threads

  1. ERROR line 90: Sintax error----> [TabIndex]
    By martintorres in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th September 2012, 04:29
  2. Replies: 1
    Last Post: - 30th March 2012, 04:13
  3. 18F2520 - problem configuring fuse for port B as digital port.
    By hwhisperer in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th October 2010, 11:41
  4. LCD R/S works on Port A but not Port B
    By TDonBass in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th February 2009, 12:41
  5. Duplicating port input to port output
    By lwindridge in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th April 2004, 21:43

Members who have read this thread : 1

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