go_away

Author Topic: Microcontroller not responding  (Read 3412 times)

0 Members and 1 Guest are viewing this topic.

Offline nikhilbaligaTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Microcontroller not responding
« on: September 29, 2007, 01:01:19 PM »
I am at a loss. I have tried everything

I am trying to transfer hex code from my computer into my microcontroller [Atmega16] through parallel port [DB25 - LPT1 port]

I am using Windows XP and Linux. I have used User Port and also dlportio.sys to unlock the port in Windows. I have made all the connections for transfer on a breadboard. I have used several transfer tools like AvrISP, PonyProg, AVRDUDE etc. to transfer the code. However in all the cases, I get the same (equivalent) error:

Ponyprog:
Device missing or unknown device (-24)

AVRISP:
Your target is not responding.

I have even changed the microcontroller because I thought my old one was not working. Still the same error. I have made continuity checks on the breadboard - all perfect. I have used resistances and also a buffer (wherever applicable). I have rechecked MOSI and MISO (not interchanged)

Please help ASAP

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,658
  • Helpful? 169
    • Society of Robots
Re: Microcontroller not responding
« Reply #1 on: September 29, 2007, 01:38:20 PM »
Can you tell us more about the device connecting between the DB25 connector and your AVR?

Are you sure you are on LPT1?

How are you powering your AVR?

Offline nikhilbaligaTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: Microcontroller not responding
« Reply #2 on: September 29, 2007, 09:17:29 PM »
Yes, it is LPT1
I am using an eliminator [The variable DC supply] to power the chip

I read in the data sheet of atmega16 that the reset should be at 11.5 v to 12.5 volts while the VCC can be around 5 v. I have tried with all at 5v and also with the above mentioned scheme. Still nothing

I am using the standard DB25 cable - 25 pins and have drawn wires out of it at pins as mentioned below.
Parallel Port Pin num                      Atmega16 Pin
1                                                           8 - SCK
2                                                           6 - MOSI
11                                                         7 - MISO
16                                                         9 - RESET
20,21                                                    GND

Offline creedcradle

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 0
  • Physics Robotics
Re: Microcontroller not responding
« Reply #3 on: September 29, 2007, 09:22:27 PM »
Make sure that on your software tool is set on the LPT1 port, otherwise you will be getting the same generic message all over again...

Another thing, since you are using userport to unlock windows LPT port , you can try to physically test each bit of the PINS of your LPT port, on the Data PINS connect 680 resitor in series with a medium LED and the cathode end goes into the common ground. all of the data pins should be OFF. in this case you are sure that the LPT port is completely unlocked

hope this helps
« Last Edit: September 29, 2007, 09:41:21 PM by creedcradle »
LEARN TO SHARE and SHARE TO LEARN!

Offline jsmoker

  • Full Member
  • ***
  • Posts: 118
  • Helpful? 2
Re: Microcontroller not responding
« Reply #4 on: October 01, 2007, 09:50:38 AM »
Hmm, just want to make sure, but you know that pins 1 and 11 (and 14 and 17) are inverted so a 1 in software would be a 0 on the output.

Offline annoyin_kid

  • Full Member
  • ***
  • Posts: 91
  • Helpful? 0
Re: Microcontroller not responding
« Reply #5 on: October 01, 2007, 12:22:26 PM »
i don't know anything about the ic that you are using but by any chance did you fry the ic? sparks, smoke and if the ic gets very warm is a bad sign.

Offline creedcradle

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 0
  • Physics Robotics
Re: Microcontroller not responding
« Reply #6 on: October 01, 2007, 04:10:29 PM »
Hmm, just want to make sure, but you know that pins 1 and 11 (and 14 and 17) are inverted so a 1 in software would be a 0 on the output.

I know it that is why i advised to do a bit test on data pins (2-9 PINs) only

windows XP for me is so dynamic, even on boot up it sends data to the LPT port, data PINS are mostly affected, so when using the userport software i used the data PINS to test if the port was unlocked completely


« Last Edit: October 01, 2007, 05:43:26 PM by creedcradle »
LEARN TO SHARE and SHARE TO LEARN!

Offline garriwilson

  • Supreme Robot
  • *****
  • Posts: 342
  • Helpful? 0
Re: Microcontroller not responding
« Reply #7 on: October 03, 2007, 10:11:07 PM »
Do you have the AVRISP mkII? IF yes, then I had tons of problems too. However, I just played with the oscillator speed and luckily after 5 days it worked. Most importantly, DON'T GIVE UP!!!

If you have the cheap programmer then I can only leave it to the experts to help you because I've never worked with it. Sorry :-[

Offline weiwei07

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: Microcontroller not responding
« Reply #8 on: October 12, 2007, 11:52:02 PM »
hi, i m new here. Well normally here we use PIC to do our projects. What are the difference between a PIC and Atmega chip?

Offline creedcradle

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 0
  • Physics Robotics
Re: Microcontroller not responding
« Reply #9 on: October 13, 2007, 12:06:22 AM »
hi, i m new here. Well normally here we use PIC to do our projects. What are the difference between a PIC and Atmega chip?
Nice question! I bet several guys would reply your post! I hope it won't end with the question, which is better?(for sure it is a debate)  ;D
LEARN TO SHARE and SHARE TO LEARN!

Offline Ro-Bot-X

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
Re: Microcontroller not responding
« Reply #10 on: October 13, 2007, 01:33:32 AM »
This question has been asked before, do a search on the forum.

My opinion is: the difference is a matter of taste. In some places, like in my country, Romania, students at the university study PICs and 8051s. AVR is rather new, not so many examples and references. But this is changing fast, since more people chose AVRs for their projects since they are a little more powerfull than PICs. There are many microcontrollers based on PICs that offer you an easier way to work with them (integrated bootloader), like BasicSamp, Dios, Nemesis... Programing language is also a matter of taste. In the university they learn C because it is a more powerfull language than others. Basic is the beginner's choice, since it is easier to learn and powerfull enough for most projects. Java is another option, both PICs and AVRs have a interpreter with an integrated bootloader. So chose whatever you think you will be more comfortable to work with.
Check out the uBotino robot controller!

 


Get Your Ad Here