CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Problem to download program into microcontroller

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
amsyar



Joined: 15 Mar 2011
Posts: 9
Location: malaysia

View user's profile Send private message Yahoo Messenger ICQ Number

Problem to download program into microcontroller
PostPosted: Wed Mar 16, 2011 6:31 am     Reply with quote

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: 9241
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Mar 16, 2011 6:42 am     Reply with quote

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

View user's profile Send private message Yahoo Messenger ICQ Number

PostPosted: Wed Mar 16, 2011 7:01 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Mar 16, 2011 8:05 am     Reply with quote

Can you post a circuit diagram??
amsyar



Joined: 15 Mar 2011
Posts: 9
Location: malaysia

View user's profile Send private message Yahoo Messenger ICQ Number

PostPosted: Wed Mar 16, 2011 9:07 am     Reply with quote

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

View user's profile Send private message Yahoo Messenger ICQ Number

PostPosted: Wed Mar 16, 2011 9:14 am     Reply with quote

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: 9241
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Mar 16, 2011 9:20 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group