An other newby, an other blinky probem


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    mmm, what if you skip the bootloader process and dump the PBP .Hex file directly to your PIC without the DEFINE BOOTLOADER_USED 1 ?

    Did you also write at the top DEFINE OSC 20 ???

    What about your code???
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Maniac's Avatar
    Maniac Guest


    Did you find this post helpful? Yes | No

    Default

    I did what you suggested and it worked! Thanks!
    I still would like to figure it out why it didn't work with the bootloader. I would like to program the PIC in circuit without taking it out.

    Here is the code I used:

    define OSC 20 '20MHz crystal

    loop:
    high PORTB.1 'turn on LED on RB1
    low PORTB.0 'turn off LED on RB0
    Pause 1000 'wait 1 sec
    low PORTB.1 'turn off LED on RB1
    high PORTB.0 'turn on LED on RB0
    pause 1000 'wait 1 sec
    goto loop


    thanks again
    Attila

Similar Threads

  1. DT-INTs Blinky Light question
    By circuitpro in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th February 2010, 03:29
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  3. Blinky not working with TOGGLE
    By AndrewC in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 08:45
  4. My first Blinky!
    By nomad in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 25th September 2007, 17:29
  5. Newby with ADC problems.
    By Mark Scotford in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th March 2005, 20:09

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