attiny2313 programer
electronicus: thanks for the pics.
You actually gave me an idea. At the moment
I am using a long 3m cable to connect the PC
with the base circuit board. When I am measuring
with my oscilloscope the waveforms at the points
of SCK, MISO and MOSI, I can see that they are
'cloudy' and blurred. This might be caused from
excessive noise that enters my wires since the
cable I am using is too long. Hence, the uP cannot
be programmed properly since the signals are
distorted and noisy.
I will modify my circuit and make something the
way you did. I do not know if this helps me to
solve the programming problem I have with ATtiny2313
but I can't think of any other solution.
(on the photo: upper waveform: SCK
bottom waveform: MOSI (oscilloscope cannot 'lock' due to
poor triggering) )
Added after 1 hours 55 minutes:
I just followed my new idea and eventually
PonyProg indicated me a positive asnwer:
'Write successful'.
Before my circuit was correct, same for the pin
connections between the circuit and the PC socket.
The problem previously was arising from the fact
that the long cable was picking up unwanted excessive
noise (from somewhere...) and communication between
the PC and the circuit was impossible.
I have now shorted the cable length to the shortest possible,
and it worked!
The waveforms on my oscilloscope are now more clear and
nice, indication of noise elimination.
electronicus , thanks for the pics again, they inspired me with
the solution!
(upper: SCK , bottom: MOSI )
(note also that I DID NOT have to add external clock to the ATtiny2313,
I don't know why but it worked without it - maybe the internal RC
oscillator is functioning)