The PIC does not start its program.


Closed Thread
Results 1 to 37 of 37

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Get back to basics...
    For on thing...

    Code:
    .......DEVICE statements, PIC Setup statements etc.
    All LEDs are set OFF
    All LEDs are set ON
    Wait for 1/2 second
    Turn all LEDs all
    It runs one time, and one time only. Don'tcha think it would be better to continuously blink the LEDs so you have time to probe around and see what's going on?
    Code:
    @ DEVICE MCLR_OFF
    @ DEVICE hs_osc
    @ DEVICE wdt_off
    @ DEVICE lvp_off
    @ DEVICE protect_off
    Define OSC 20
    INTCON = 0 : CMCON = 7 : TRISB = %00100100 : TRISA = %11111100
    LED_Kalib VAR PORTB.7 : LED_Halb VAR PORTB.4 : LED_Voll VAR PORTB.6
    LED_Besch VAR PORTA.0 : LED_OK VAR PORTB.0
    main: Low LED_Kalib : Low LED_Halb : Low LED_Voll : Low LED_Besch : Low LED_OK
    pause 500
    High LED_Kalib : High LED_Halb : High LED_Voll : High LED_Besch : High LED_OK
    Pause 500
    goto main
    END

  2. #2
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    Not right now, skimask.

    The issue is that the pic is not even starting its programme.

    I want to give you more information. When voltage is being applied to the circuitry, these levels are given on the pic's socket:

    RA3 = Undefined, Floating
    RA4,RA5,RB2,Vdd,RB5 = 5.01 Volts
    RA7,RA7 = OSC

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ted's View Post
    Not right now, skimask.
    The issue is that the pic is not even starting its programme.
    I want to give you more information. When voltage is being applied to the circuitry, these levels are given on the pic's socket:
    RA3 = Undefined, Floating
    RA4,RA5,RB2,Vdd,RB5 = 5.01 Volts
    RA7,RA7 = OSC
    That's EXACTLY the issue. If you break it down into it's simplest form, you can probe around, put parts in, pull parts out, play around, without worrying about anything.
    And again, YOUR program only execute ONE TIME. Are you going to sit there and keep pressing RESET while you mess around trying to probe?

  4. #4
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    Do you recommend soldering on a running system?

    To me it is about what is given the first time when voltage is being applied. Or will it work if I replace the quarz while there is already voltage applied to vdd and vss? I doubt so.
    Last edited by Ted's; - 26th July 2008 at 23:42.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ted's View Post
    Do you recommend soldering on a running system?
    If it's only 5v and you've only got a PIC, an LED, a resistor, and the rest of the glue that goes with, sure...why not?

  6. #6
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    It is not. Just look at the voltage levels being applied. There need to be outside devices which apply the voltage to the pic.

    skimask, the main issue is that the device is not starting. I want to solely focus on that.

    I know four main error sources: The pic's hardware, the pic's software, the quarz and voltage applied to vdd and vss.

    Right now I suspect the quarz to be faulty.
    Last edited by Ted's; - 26th July 2008 at 23:47.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ted's View Post
    It is not. Just look at the voltage levels being applied. There need to be outside devices which apply the voltage to the pic.
    skimask, the main issue is that the device is not starting. I want to solely focus on that.
    I know four main error sources: The pic's hardware, the pic's software, the quarz and voltage applied to vdd and vss.
    Right now I suspect the quarz to be faulty.
    Ok, fine. Let us know what you did to troubleshoot the problem and what you did to fix it.

Similar Threads

  1. Automatic VB6 to pic serial connection
    By arniepj in forum Code Examples
    Replies: 13
    Last Post: - 10th January 2008, 07:57
  2. Replies: 14
    Last Post: - 26th September 2007, 05:41
  3. Pic16f84 and RC5 kode
    By terminator in forum Bluetooth
    Replies: 5
    Last Post: - 18th June 2007, 21:40
  4. Pic Start Plus Help
    By shawn in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th March 2007, 03:47
  5. Output PIC module
    By freelancebee in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th September 2005, 20:10

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