| Author |
Message |
|
|
Posted: Aug 01, 2007 - 08:32 PM |
|

Joined: Apr 05, 2004
Posts: 40
|
|
I resurected a vintage 1998 STK300 board and Kanda Dongle (also marked STK300).
I started coding my mega103L on board, and all worked well for a couple days
until I started getting download failures.
It seems I may have already compromised two parallel ports on different PC's
with my setup, so I'm going to build a new dongle.
Here's a question I haven't seen addressed anywhere...
All the schematics call for the 74HC244, but can I substitiute a 74HCT244?
I have a big pile of HCT's without an HC in sight anywhere!!
Keith |
|
|
| |
|
|
|
|
|
Posted: Aug 01, 2007 - 08:37 PM |
|


Joined: Dec 17, 2005
Posts: 1498
Location: Europe- Estonia- Tallinn
|
|
| search in the datasheet, what is the difference between them. I would think you can use HCT (I haven't checked the datasheet though) |
|
|
| |
|
|
|
|
|
Posted: Aug 01, 2007 - 09:11 PM |
|


Joined: Nov 01, 2005
Posts: 6324
Location: Hilversum - the Netherlands
|
|
Probably yes. May cause trouble when using Vcc=3.3V on the target AVR.
Put it on a socket
Nard |
_________________ Dragon broken ? Or problems with the Parallel Port Programmer ? Scroll down on my projects-page http://www.aplomb.nl/TechStuff/TechStuff.html for tips
|
| |
|
|
|
|
|
Posted: Aug 02, 2007 - 02:02 AM |
|

Joined: Jul 17, 2007
Posts: 32
|
|
hi manaschoksi,
The last picture i added is waitting for approval or review! I ask for review, because i dont know which 330 ohm resistors are the one you must modify from the first circuit.
If you have read this entire topic, you should know that.
lapacho |
|
|
| |
|
|
|
|
|
Posted: Aug 04, 2007 - 09:23 AM |
|

Joined: Jun 06, 2007
Posts: 7
|
|
hi lapacho
thanks for replying,
i followed the circ of the pppd mod on 30 march
the ckt have been given very good reviews
The ckt u made has 330 ohms between parallel port and
buffer,while in the ckt i followed had those between the connecter and buffer
My doubt is regarding the /ss pin on uC
do i have to give ground to it on hardware side??
My device is still being detcted as unknown by pony prog
i checked the voltages with tester at a time when i ws
clicking the read on pony prog
on Uc sidee,voltage changes on isp pins are
MOSI....0 to 4.5V
MISO....4.4 to 0V
SCK....O.O2 TO 0.17V
RESET shows me 0V
but on the buffer side reset shows me a change of .02 to 3v
note:this values are measured in period betwen clicking 'read' in pony-prog and before the error message for unknown device |
|
|
| |
|
|
|
|
|
Posted: Aug 12, 2007 - 05:56 AM |
|

Joined: Jul 17, 2007
Posts: 32
|
|
well, i managed to get things working. (thanks Nard)
I didnt build the dongle of this post, however i'm pretty sure that it works. Anyway, there's something in the story i want to share with you, and it's about the plug/unplug procedures of the dongle. Here is the preface:
Individual Configuration:
I made a 5v voltage regulator in a small board with the LM7805. The voltage regulator (now on VR) has a led and an on/off switch. The on/off switch in the on position turns on the VR with an output of 4,92v and also the led. In the off position turns off the VR and the led. The led is connected to the output, so that's the way to know that current is flowing by there.
On another board I put an atmega8-16PI and a header for the standard 10-pin isp socket. I only connected the necessary pins. The MISO, MOSI, SCK, and RESET to the isp-socket. Also, I connected VCC (pin 7) and AVCC (pin 20) to the power line, and GND (pin 8 and 22) to the GND line and to the isp-socket GND (to all of the GND isp-socket pins!!). That were all the connections on the Mega8.
The programmer was a 74HC244D buffer based. Yes, i bought it. I couldnt get the buffer in the city I was, so I decided to go buy on a famous sellers/buyers page. It's a stk200 like.
That was the individual stuff, now to the hole thing!
Colective Configuration and Plug/Unplug order issue:
Well, with the 3 things ready to go (VR, Mega8 and stk200-like dongle), i decided to connect things and give it a try. Now I have to mention that I have another atmega8, it was an atmega8-16PU (so, now on PU for this, and PI for the other), that I bought them from different stores.
This is were the unplug/plug order story begins...(i didnt fry anything, althought)
I connected the dongle to the parallel port (now on, PP). I connected the VR to the PI board WITHOUT turning ON. I connected the dongle to the isp-socket. I turned on the VR. Ran ponyprog in linux. Nothing happens. So I decided to switch the Megas, and put the PU mega in place the PI one (also, the board has a 28-pin socket, to do this more flexible).
I started again to the plug/unplug order. I connected the dongle to the PP (this was done already, I wrote to avoid confusion). I connected the VR to the Mega board WITHOUT turning it on. I connected the dongle to the isp-socket. And here is were I was sure that it'll work. For an extrange reason, the VR Led was on! A very very little light you could see, but was on. When i saw that I really thought that I blew up things! So i disconnected the dongle, and I turn it on the VR, and then I plug the dongle again. I ran ponyprog, and everything was fine!
Then I managed to made a clock-source with a NE555 (thanks Nard). And I dont know how, but I could change the fuse bits from the PI mega. I checked all the CKSELs bits.
Now, here is were the story converge, and you can make a conclusion:
I replaced again the PU mega with the PI mega in the Mega board. Again, I connected the dongle, I connected the VR to the Mega Board WITHOUT turning it on. I connected the dongle to the isp-socket. And NOW, the VR led was ON, very little like the experience with the PI before! If you remeber, this thing didnt happens before. And then, i ran ponyprog. The device was read.
Conclusions?
Well, i'm not pretty sure WHY the VR Led turn on, but a heartbit tells me that, FIRST you must turn on the VR. I dont know HOW the VR Led turns on or WHY, but it's not a desire thing. The led must turn on when the VR is on! So, like Nard said, altering the order you could blow up things.
The other conclusion:
I could read the PI mega when the dongle was connected to the Mega board without power and the VR led was on.
I couldnt read the PI mega when the dongle was connected to the Mega board without power, and the VR led was off.
Who can explain that?
End of story.
Regards,
lapacho
ps: Thanks Nard for this post. |
|
|
| |
|
|
|
|
|
Posted: Aug 12, 2007 - 10:05 AM |
|


Joined: Dec 17, 2005
Posts: 1498
Location: Europe- Estonia- Tallinn
|
|
could you show us the exact way you connected everything on a schematic please. Thank you
maybe we can tell you, why it works the way it does. |
|
|
| |
|
|
|
|
|
Posted: Aug 12, 2007 - 11:49 AM |
|

Joined: Jul 17, 2007
Posts: 32
|
|
sure!
I use expresssch because i'm using windows now. So here it is...I dont know the dongle schematics, its a simple one based on the 74HC244D buffer.
Regards,
EDIT:
Note about my bad explanation (sorry my english):
When I said:
Quote:
I could read the PI mega when the dongle was connected to the Mega board without power and the VR led was on.
I couldnt read the PI mega when the dongle was connected to the Mega board without power, and the VR led was off.
I didnt mean that I read/write the devices with the power off...Maybe someone could missunderstood that, although it's obvios that you can't do that. But, what I was trying to said, is that when the led's extrange phenomenoum occurs, the Mega was accesible when I read/write, but obviosly it was powered on!
Well, it's difficult to me to explain myself in english.
That's all.
Cheers, |
Last edited by lapacho on Aug 12, 2007 - 12:06 PM; edited 1 time in total
|
| |
|
|
|
|
|
Posted: Aug 12, 2007 - 12:03 PM |
|


Joined: Dec 17, 2005
Posts: 1498
Location: Europe- Estonia- Tallinn
|
|
OK. but what programmer are you using? self made? schematic? Thanks  |
|
|
| |
|
|
|
|
|
Posted: Aug 12, 2007 - 12:53 PM |
|

Joined: Jul 17, 2007
Posts: 32
|
|
well, i edited this post because i found the schematics, here it is.
regards
lapacho |
|
|
| |
|
|
|
|
|
Posted: Sep 16, 2007 - 02:21 PM |
|

Joined: Jun 06, 2007
Posts: 7
|
|
Hey
The dongle that i was trying built is now being successfully read by pony-prog
This topic really helped
Thanks a lot nard |
|
|
| |
|
|
|
|
|
Posted: Sep 16, 2007 - 02:34 PM |
|

Joined: Jun 06, 2007
Posts: 7
|
|
Is there any pin i need to activate for program enabling
My program is being dumped into uC,but i m not getting controller pins to work as i want
I configured my register D as output(DDRD=0xff)
i also configured my port D to logic 1(PORTD=0xff)
Hence at all pins of port D , i must get a logic 1(around 4 volts)
This is the exact code written in avr studio
#include<avr/io.h>
int main(void)
{
DDRD=0xff;
PORTD=0xff;
} |
|
|
| |
|
|
|
|
|
Posted: Sep 22, 2007 - 01:18 PM |
|

Joined: Jun 06, 2007
Posts: 7
|
|
I resolved the problem
The circuit is working greatt
Thanks nard & lapacho for all the help |
|
|
| |
|
|
|
|
|
Posted: Sep 22, 2007 - 01:19 PM |
|

Joined: Jun 06, 2007
Posts: 7
|
|
I resolved the problem
The circuit is working greatt
Thanks nard & lapacho for all the help |
|
|
| |
|
|
|
|
|
Posted: Sep 22, 2007 - 04:57 PM |
|


Joined: Nov 01, 2005
Posts: 6324
Location: Hilversum - the Netherlands
|
|
You're welcome. Was there a specific thing that went wrong, or is it just that you needed to adapt ?? (like the Borg )
Cheers
Nard |
_________________ Dragon broken ? Or problems with the Parallel Port Programmer ? Scroll down on my projects-page http://www.aplomb.nl/TechStuff/TechStuff.html for tips
|
| |
|
|
|
|
|
Posted: Sep 23, 2007 - 02:04 PM |
|

Joined: Jun 06, 2007
Posts: 7
|
|
No specifc problem
just the usual soldering errors |
|
|
| |
|
|
|
|
|
Posted: Oct 29, 2007 - 06:43 AM |
|

Joined: Sep 24, 2007
Posts: 57
|
|
| hi |
Last edited by infibit on Mar 02, 2008 - 03:35 PM; edited 1 time in total
|
| |
|
|
|
|
|
Posted: Nov 04, 2007 - 10:42 PM |
|

Joined: Oct 28, 2007
Posts: 10
Location: UK
|
|
|
Plons wrote:
Although I have a USB-programming dongle (came in yesterday), this PPPD is still my favourite. It's fast, and as long as you stick to the "recommendations", it's a good programmer.
There was one thing though that bothered me: I had to lower the resistor in the /Ack-line from 1 kOhm to 180 Ohm because of the pull-up in the PC's Parallel Port.
I've come up with the following solution: replace the 180 Ohm with a BC547 and 3 resistors of 10 kOhm. (choice of transistor-type not critical, almost any general purpose small signal NPN-transistor will do)
The circuit might look a bit weird at first glance, but it works.
I'll be honest with you: I didn't test it. I simply stick to the rule: don't plug / unplug from PC when powered-up.
I have two requests:
1. If you're in the process of building an Even Better PPPD, go for the version of March 30 2006, and let us know the outcome
2. If you are an experienced user of a schematic-entry program, please be so kind to redraw the schematic.
Plons
First post, and, thanks Plons! Built this circuit today on some stripboard, seems to work correctly, using pony and some simple code later on my breadboard I created 'hello world'
Code:
#include <avr/io.h>
#include <avr/delay.h>
int main (void)
{
int i;
i = 0x00;
DDRD= 0xFF; // PORTD = Output
while(i <= 50) //
{
_delay_ms(2500);
PORTD= 0x00;
_delay_ms(2500);
PORTD= 0xFF;
i++;
}
}
Unfortunately however my LED flashed a whole lot faster than once every 2.5s I didnt change any of the default pony settings, or the AVR ones - I assume that its a crystal/setting problem can anyone enlighten me?
Is there any tutorial on variables, or use of? I have been using hex calls for int's and it seems to work but there must be a more efficient way?
Thanks, and appreciate any answers  |
|
|
| |
|
|
|
|
|
Posted: Nov 05, 2007 - 12:44 AM |
|


Joined: Nov 01, 2005
Posts: 6324
Location: Hilversum - the Netherlands
|
|
George, post questions in the appropriate forum please. This is the tutorial section.
Repost in the General AVR-forum. And yes, you need to define the used clock-frequency if you want accurate delays
Have a look in avr/delay.c
Glad to hear that the programmer works for you. Thanks.
Nard |
_________________ Dragon broken ? Or problems with the Parallel Port Programmer ? Scroll down on my projects-page http://www.aplomb.nl/TechStuff/TechStuff.html for tips
|
| |
|
|
|
|
|
Posted: Nov 05, 2007 - 10:25 AM |
|


Joined: Jul 18, 2005
Posts: 62313
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
George,
hint: go back and read what it says in avr/delay.h - you may want to rethink those 2500 values!
(sorry for OT) |
_________________
|
| |
|
|
|
|
|