Pic 16f877a Running Problem.

Discussion in 'Embedded Systems and Microcontrollers' started by ahsanahmedsid, Aug 30, 2014.

Why pic microcontroller not running.

  1. burner issue

    0 vote(s)
    0.0%
  2. burner issue

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. ahsanahmedsid

    Thread Starter New Member

    Aug 23, 2014
    1
    0
    Hi every one,
    I have a problem here, i m using microcontroller first time by my self, my problem is that when i am burn pic16f877a its burn and show result o.k, but when i put in hardware its not running even any simple programs.
    I maked my code in mikro c and build a hex. file and the simulate in proteus its all running good, but it not running in hardware while my all connections are correct.
    I m burn hex file with us-burner and the show that pic burning done.
    Please help me and suggest that what kind of mistake could i m doing. :(
     
  2. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,555
    2,375
    Do you have a pull up resistor on the MCLR ?
    Max.
     
  3. JohnInTX

    Moderator

    Jun 26, 2012
    2,347
    1,029
    Assuming as Max says that the circuit is correct (MCLR=1, oscillator working, power applied etc.) make sure that 1) the configuration bits are set correctly to specify the oscillator etc. and 2) that the .HEX file contains the config information and/or 3) that after loading the .HEX you manually set the programmer to blast the correct CONFIG bits.

    If you haven't set MicroC to build for programming, it may be that the CONFIG info is missing from the .HEX. For the 877A, look for a line at the end of the .HEX that looks like this:

    :020000040000FA
    :06000000000000000028D2
    ......
    :02400E00B93FB8
    :00000001FF

    400E is the address of the config word.

    Good luck!
     
  4. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    764
    Ask a question by posting a thread. A poll makes no sense here.
     
Loading...