Cannot get blink example to work via PICBASIC PRO, but works via MPLAB IDE


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: Cannot get blink example to work via PICBASIC PRO, but works via MPLAB IDE

    Hi Patrick

    You also need to set portb.0 TRIS register to output

    TRISB = %11111110
    or
    TRISB.0 = 0

    TRISB = %00000000

    will set all PORTB pins as output

    Phil

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Cannot get blink example to work via PICBASIC PRO, but works via MPLAB IDE

    Quote Originally Posted by Sherbrook View Post
    Hi Patrick

    You also need to set portb.0 TRIS register to output

    Phil
    The HIGH / LOW command sets the TRIS for us. But it is good practice to get into.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2012
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: Cannot get blink example to work via PICBASIC PRO, but works via MPLAB IDE

    Dave and Phil, THANKS!!! You guys made my day! Who knew a little blinking light was all it took.


    Thanks a million, Merry Christmas!
    Patrick

Similar Threads

  1. Wake from sleep (Well, sorta) 16F88, PICBASIC PRO
    By SFOdesigns in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th November 2012, 14:43
  2. Simple Blink program doesnt work.
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st March 2009, 20:30
  3. Replies: 3
    Last Post: - 7th June 2008, 21:17
  4. Can't get blink circuit to work :(
    By Techbuilder in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 31st January 2008, 13:00
  5. blink.bas help cant make any 18f's work
    By Bonxy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 13th December 2004, 21:28

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