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
    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

    In your first post you were working with the 16F628A , but the you have the 16F628.inc file posted?

    And do not forget to set OSCCON in your code for the speed.
    Dave
    Always wear safety glasses while programming.

  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

    Sorry, the 16F628A only has one internal speed.

    Comment out the config lines in the *.inc file and add this to your code near the beginning.
    Code:
    '16F628A
     @ __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _LVP_OFF & _CP_OFF
     DEFINE OSC 4
    Dave
    Always wear safety glasses while programming.

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