View previous topic :: View next topic |
Author |
Message |
amsyar
Joined: 15 Mar 2011 Posts: 9 Location: malaysia
|
Problem to download program into microcontroller |
Posted: Wed Mar 16, 2011 6:31 am |
|
|
Hi every one. I have a problem to download program into microcontroller. I am using PIC16F877A. When I plug in the power source the PIC start to heating. When I try to download program into PIC, a warning has pop up says that
"PKWarn0003: Unexpected device ID: Please verify that a PIC16F877A is correctly installed in the application. (Expected ID = 0xE20, ID Read = 0x0)"
can somebody explain to me what is the problem with my microcontroller |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9255 Location: Greensville,Ontario
|
|
Posted: Wed Mar 16, 2011 6:42 am |
|
|
Sounds like you inserted in in BACKWARDS ! Not a good thing, you may have destroyed the PIC.
Or..
Your power supply is NOT the correct one for your programmer, wrong polarity, AC not DC.
Since I can't 'see' your setup please read the information sheet about the programming for help. |
|
|
amsyar
Joined: 15 Mar 2011 Posts: 9 Location: malaysia
|
|
Posted: Wed Mar 16, 2011 7:01 am |
|
|
I am using 12V DC power supply with positive polarity. Before I connect to motor driver, I still can download program into the microcontroller. Is it possible the problem arise because of connection between motor driver and PIC |
|
|
sseidman
Joined: 14 Mar 2005 Posts: 159
|
|
Posted: Wed Mar 16, 2011 8:05 am |
|
|
Can you post a circuit diagram?? |
|
|
amsyar
Joined: 15 Mar 2011 Posts: 9 Location: malaysia
|
|
Posted: Wed Mar 16, 2011 9:07 am |
|
|
I am a beginner in this field. So i just follow diagram provided in the internet. But I do not know how to upload the circuit diagram through web..can you give me your email, then I will send through email..thanks |
|
|
amsyar
Joined: 15 Mar 2011 Posts: 9 Location: malaysia
|
|
Posted: Wed Mar 16, 2011 9:14 am |
|
|
1.enable
2.input
3.motor
4.ground
5. ground
6.motor
7.input
8. Vs
9.enable
10.input
11.motor
12.ground
13.ground
14.motor
15.input
16.Vss (5V) |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9255 Location: Greensville,Ontario
|
|
Posted: Wed Mar 16, 2011 9:20 am |
|
|
You should post the motor driver chip you're using, so we can look online at the manufacturer's datasheets.
If you're just wiring according to someone's circuit from the NET, they ight have made a mistake in pinout or 'wires' ! Not the first time that has happened.
I suspect you're giving the PIC +12 volts instead of 5 volts.
Do you have a 7805 regulator or equal between the +12 and the PIC ?
Or maybe a bad ground ?
Without the circuit it's very difficult to 'see' what's wrong. PM me if possible. |
|
|
|