Saturday, July 17, 2010

AVR3

I just put the circuit together so you can see
the last program actually running and lighting
up the LED on a Tiny85 pin 5 (PortB 0)


I used a 7905 5v negative regulator instead of a 7805
positive regulator because that's all I could find in my
part drawer. It works fine for this. Between the regulator
top and the little orange wire are 6 socket holes. These
are where I plug the 6 wires from the STK500 programmer
into the solderless breadboard to program the flash
memory using AVR Studio. If you have a solderless
breadboard you can assemble an identical circuit from
this image. Now look at the image below, it is a blowup
of the 6 pin holes for the programming cable.



Socket hole 5 is for the VCC wire (+5v)
Socket hole 6 is for the MOSI wire
Socket hole 7 is for the GND wire
Socket hole 8 is for the RESET wire
Socket hole 9 is for the SCK wire
Socket hole 10 is for the MISO wire

Note what pins the leads for MOSI, RESET, SCK and
MISO route to on the Tiny85. The GND and VCC just
connect to any handy socket where GND and 5v are
available.




Here is an image of my solderless board with the
makeshift programming cable connected.


                 

Notice in the upper left corner of the breadboard where
I drilled a small hole and ran the power leads through it
for strain relief. This is handy :-)

I want you to be absolutely certain of how to connect
the wires to the end of the 10-pin programming cable.
This image shows the cable end, please note the orientation
of the connector and where the red stripe is on the cable!




Ok, starting at the top left corner and moving right. The first
pin is MOSI  the center top pin is RESET  the 4th pin from
left is SCK and the rightmost top row pin is MISO.

The far left pin on the lower row is VCC (5v)
and the 2nd pin from the left is GND.

The other pins need not connect to anything, only these
six are important. Some people use a smaller six pin cable
for programming, but I find it difficult to find the connectors
and sockets for the six pin cables so I use the older 10 pin
style cables. If you need help with the six pin type send me
a message and I will detail the pinout.

===========================

I will be posting some short videos so I went and got an
account on youtube today. 

There is nothing there yet so be patient. I will post videos
of the next two projects running. They will both be
interrupt driven LED blinkers.

No comments:

Post a Comment