Pic 16f877a Running Problem.

Why pic microcontroller not running.

  • burner issue

    Votes: 0 0.0%
  • burner issue

    Votes: 0 0.0%

  • Total voters
    0

Thread Starter

ahsanahmedsid

Joined Aug 23, 2014
1
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. :(
 

JohnInTX

Joined Jun 26, 2012
4,787
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!
 
Top