blinking stops


Closed Thread
Results 1 to 10 of 10

Thread: blinking stops

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    I have to add, if I unplug the power and wait like 5 minutes, then i get another series of 30 seconds blinking.
    If I just unhook the battery for a few seconds and put back the power, then it just barely flash and shut off.
    It seems some sort of memory is being unloaded and no power and filled up when it is activated.
    I has to do with the program , because it is working fine with the jal version


    k

  2. #2
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    Interesting problem. Same code 2 different compilers, 2 diffrent results.

    Here's something to look at: Fire up MPLAB, select the device type to match your PIC, then import the hex code for each version in turn.

    See if there are any differences in the config bits.

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    Actually the Jal version I used his hex file. it is programmed in jal. I am trying to programin basic and it do not work.
    Another interesting fact, I just used MikroC with this program:
    (I adjusted Mikroc to my pic chip and at 4 Mhz)

    void main() {
    PORTB = 0;
    TRISB = 0;

    while(1) {
    PORTB = ~PORTB;
    Delay_ms(500);
    }
    }

    it did work for a few minutes, i thought I had it, but after my diner it had stopped

    then I tried the jal version again and it did work for a long, after that I disconnected it
    http://www.voti.nl/blink/code/b818-2.jal

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Do you have a 10k resistor connected to MLCr and + ?

    That drove my crazy the first time I played with pics.

    Regards,
    Daniel.

  5. #5
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    Yes.. that was what someone told me yesterday afternoon. It is now working. I spent like 10 hours on this yesterday, all i needed was a resistor...pffff unbelievable. I will have to read on that, MCLR

    ken

Similar Threads

  1. blinking problem with PIC16f887
    By larzazral in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th January 2010, 02:04
  2. blinking LED
    By kindows in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 31st July 2009, 16:08
  3. 7-segment display blinking problem?
    By serdar_ozcan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th March 2006, 14:43
  4. Blinking LCD with using loop
    By Jųan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 5th August 2005, 13:24
  5. Button stops when i use Serin
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th July 2005, 14:35

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