View previous topic :: View next topic |
Author |
Message |
e-doc
Joined: 10 Jul 2016 Posts: 22
|
Posted: Tue Jul 12, 2016 11:22 pm Post subject: |
|
|
You recommend to build this dongle below?
Which settings are correct to use it under BASCOM?
Is there a chance to get the 5V-supply from the LPT-port?
What's the function of D1? Just reverse polarity protection for the line driver 74HC244?
Is 74HC the correct "family" regarding the logic levels?
I thougt LPT and AVR levels are TTL, so shouldn't be 74HCT or 74LS better choice?
http://hw-server.com/parallel-port-lpt-ieee-1284#signaly |
|
Back to top |
|
|
Printpix52
Joined: 18 Jun 2014 Posts: 282 Location: D.F.
|
Posted: Tue Jul 12, 2016 11:54 pm Post subject: |
|
|
Hi!!
My programmer have long had working well and now my port probe my programmer is LPT3-3BC-STK200 / STK300 not detect the microcontroller is the same flaw that says my companion.
Today I'm using STK500 works well !!
[img][/img] |
|
Back to top |
|
|
Plons
Joined: 24 May 2005 Posts: 435 Location: Hilversum - The Netherlands
|
Posted: Wed Jul 13, 2016 12:23 am Post subject: |
|
|
e-doc wrote: Quote: | You recommend to build this dongle below? |
No.
But at the bottom of that webpage I give a list of things you can do when the LPT programmer doesn't work.
And the Sample Electronics programmer is just another version of the PPPPD. _________________ Bascom AVR ver 2.0.8.6
Dragon-lair: http://www.aplomb.nl/TechStuff/Dragon/Dragon.html
"leef met vlag en wimpel, maar hou het simpel" |
|
Back to top |
|
|
e-doc
Joined: 10 Jul 2016 Posts: 22
|
Posted: Wed Jul 13, 2016 12:45 am Post subject: |
|
|
albertsm wrote: | you might want to add some delay to the settings. this depends on the clock speed of the micro. |
I tried values between 0 to 2000.
Reading uC-ID did not work.
albertsm wrote: | but it is also important you can read the busy signal correct.
also, you could try lower resistor values. i had to decrease to 220 or 100 for some lpt cards. but when busy reads correct the used resistor value is ok. |
I tried values between 100 Ohm to 1.5 kOhm, which works OK.
2,2 kOhm is too high, /busy signal not recognized.
So 470 Ohm should work.
Plons wrote: | e-doc wrote: Quote: | You recommend to build this dongle below? |
No. |
Ah, OK, thanks for clarifying this. I was thinking about to build it.
Plons wrote: | But at the bottom of that webpage I give a list of things you can do when the LPT programmer doesn't work. |
Do you mean this?
Quote: | Unpack the RegistryFix, read the info, and implement the register-change (it can be undone, but make a "Restore point", just to be safe ... )
The attachment comes from Kanda.com. It can be found on their website, but it's not simple to find.
Background info: from SP2 and on, WinXP checks the Parallel Port every minute or so to find out if the user attached a printer. That interferes with our use of the PP. The registry-patch ensures that the PP is still checked, but only during a Power-up sequence. |
Plons wrote: | the Sample Electronics programmer programmer is just another version of the PPPPD. |
I can't believe setting "Sample Electronics programmer" should work with this dongle, because of very different usage of the LPT pinout.
Your dongle looks more like a modified STK200, correct (?)...
I like your dongle, I think I will build one.
Can you explain please, what is the function of Q1? |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Jul 13, 2016 9:19 am Post subject: |
|
|
do you have a new chip to test? maybe the chips you use , were used with an external oscillator. in that case it will never work : you have to apply a clock signal to the xtal input pin to make it work.
while you can build another lpt programmer, that is a complete different topic. i leave this topic. good luck with it. _________________ Mark |
|
Back to top |
|
|
e-doc
Joined: 10 Jul 2016 Posts: 22
|
Posted: Wed Jul 13, 2016 11:21 am Post subject: |
|
|
I also tried with an external crystal.
I did not have a 8MHz or 4MHz, only 3.5MHz, but I read somewhere, the frequency doesn't matter for programming.
Yes, I will try another chip, maybe this one has a problem... |
|
Back to top |
|
|
Plons
Joined: 24 May 2005 Posts: 435 Location: Hilversum - The Netherlands
|
Posted: Wed Jul 13, 2016 11:54 am Post subject: |
|
|
I can't believe setting "Sample Electronics programmer" should work with this dongle, because of very different usage of the LPT pinout.
I didn't say that setting "Sample Electronics programmer" should work with this dongle.
Your dongle looks more like a modified STK200, correct (?)...
Isn't that on the page ?
Both use the LPT-port. The recommendations are for the LPT-port and therefor apply to both programmers
I like your dongle, I think I will build one. Wink
You don't read/listen. Building the PPPPD will not help to solve the problem you are having now.
Can you explain please, what is the function of Q1?
The function of Q1 is explained in the text .... it's a level shifter
Note to self: take that webpage offline ... it's just a drain of time and energy. _________________ Bascom AVR ver 2.0.8.6
Dragon-lair: http://www.aplomb.nl/TechStuff/Dragon/Dragon.html
"leef met vlag en wimpel, maar hou het simpel" |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Jul 13, 2016 12:54 pm Post subject: |
|
|
Quote: | I also tried with an external crystal. |
you need to apply a clock signal. for example from a clock generator, or from a simple 555 generator.
just a crystal will not be sufficient if an external oscillator is selected. _________________ Mark |
|
Back to top |
|
|
Plons
Joined: 24 May 2005 Posts: 435 Location: Hilversum - The Netherlands
|
Posted: Wed Jul 13, 2016 1:00 pm Post subject: |
|
|
e-doc wrote: | I also tried with an external crystal.
I did not have a 8MHz or 4MHz, only 3.5MHz, but I read somewhere, the frequency doesn't matter for programming.
Yes, I will try another chip, maybe this one has a problem... |
The fuse setting of your AVRs is unknown; therefor
1. ISP could be disabled
2. Clock options could be set for external clock
and more ...
I think you should have mentioned in this thread that your AVR's are not factory-new.
edit: a few minutes late ... _________________ Bascom AVR ver 2.0.8.6
Dragon-lair: http://www.aplomb.nl/TechStuff/Dragon/Dragon.html
"leef met vlag en wimpel, maar hou het simpel" |
|
Back to top |
|
|
e-doc
Joined: 10 Jul 2016 Posts: 22
|
Posted: Wed Jul 13, 2016 1:41 pm Post subject: |
|
|
albertsm wrote: | Quote: | I also tried with an external crystal. |
you need to apply a clock signal. for example from a clock generator, or from a simple 555 generator.
just a crystal will not be sufficient if an external oscillator is selected. |
OK, I have several clock modules I could check.
Is it correct that the clock frequency doesn't matter (not too low and not over the max. clock)?
Plons wrote: | I think you should have mentioned in this thread that your AVR's are not factory-new. |
I first had to solve the LPT problem.
My AVRs are new, but maybe pre-programmed by manufacturer (they are industry remnants).
Plons wrote: | You don't read/listen. Building the PPPPD will not help to solve the problem you are having now. |
Reading/listening and understandig are two different things.
I'm not a native english speaker and my school english is very rusty, sorry for that...
Anyway - thanks for all your help! |
|
Back to top |
|
|
e-doc
Joined: 10 Jul 2016 Posts: 22
|
Posted: Thu Jul 14, 2016 7:49 am Post subject: |
|
|
Update/feedback to clean up the chaos I left in this thead:
At the end I managed to read out uC-ID and fusebits:
Last edited by e-doc on Thu Jul 14, 2016 8:25 am; edited 1 time in total |
|
Back to top |
|
|
e-doc
Joined: 10 Jul 2016 Posts: 22
|
Posted: Thu Jul 14, 2016 8:15 am Post subject: |
|
|
uC-ID is almost correct:
Read out Mega88P, actually it is Mega88PA (don't know if the difference matters).
Checking driver list:
giveio.sys - didn't work -> removed
inport32.sys - installed and used by LPT port test utility (X-Lent-Electronics)
ptilink.sys, raspti.sys, parport.sys - installed and used by windows XP
tvicport - installed and used by BASCOM-AVR, same version as downloadable from makers website
The only way I could make it work:
- removed crystal from uC
- start LPT port test utility (by X-Lent-Electronics http://www.xlentelectronics.nl/LPTTest/LPTTestUtilx64r.htm)
- choose correct LPT base address (378h for LPT1 or whatever you selected in BIOS before, ECP or EPP mode)
- close LPT port test utility
- power up uC (5V external supply)
- start BASCOM-AVR
- choose programmer "sample electronics cable"
- choose correct LPT address (378h)
- load any project or create any new code
- menu "program/send to chip"
- identify chip
- read out fusebits
- check empty chip -> OK
Changing only one of these points results in BASCOM cannot identify chip and cannot read out anything.
I checked this repeatedly, it is reproducable.
This shows:
- LPT hardware is OK
- programmer cable works
- connections to uC are correct
- power supply is correct
- uC is not locked
I think Tvicport maybe not initialized correctly by BASCOM-AVR 2.0.7.5. demo.
LPT port pins stay in "hi-z-state" and do nothing BASCOM want them to do.
If initialized by starting LPT port test utility, the status changes to "in/output mode" (changes to correct high or low level) BASCOM-AVR can controll LPT correctly.
Can you please check this, Mr. Alberts? |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Jul 14, 2016 9:25 am Post subject: |
|
|
it works fine with my version. it could be the other driver you use/need on your system, or it could be the demo. maybe someone else can try it . i only perform tests on the latest version.
I did not found any notes about a problem with the sample electronics programmer. _________________ Mark |
|
Back to top |
|
|
e-doc
Joined: 10 Jul 2016 Posts: 22
|
Posted: Thu Jul 14, 2016 1:09 pm Post subject: |
|
|
albertsm wrote: | ...or it could be the demo. maybe someone else can try it .
|
It would be nice if anybody could check it.
I removed all drivers except Microsoft and the 2 required drivers, so I think it could be an issue with the demo 2.0.7.5.
Is there a newer beta or older demo version I could check? |
|
Back to top |
|
|
Printpix52
Joined: 18 Jun 2014 Posts: 282 Location: D.F.
|
Posted: Fri Jul 15, 2016 1:23 am Post subject: |
|
|
The demo version 1.11.98 5 years ago worked fine but the latest does not work 2.0.7.5.
And you have the same fault probe your.
Watch my video when started 5 years ago ....
https://www.youtube.com/watch?v=XzrAA3JO-gA |
|
Back to top |
|
|
|