2
\$\begingroup\$

Alright, so I just got an ATTINY2313-2oPI .. But I have no idea how to get started with this thing. Anyone have any tips, or ideas? I just want to get it hooked up, like with a 5V voltage reg. and a USB cable for programming.

\$\endgroup\$
4
\$\begingroup\$

To get started with a bare ATTiny2313 you'll need an AVR ICSP, such as this USB AVR Programmer. You can breadboard the connection from the ICSP cable to the chip (see ATTiny2313 datasheet and ICSP pinout). Depending on the programmer used, it may be capable of providing power to the circuit (depending on your needs you wouldn't need to start with a 5V regulator).

Also mentioned in the product page for the programmer is 'avrdude'; basically a free gcc based toolchain for developing and loading code onto Atmel AVR parts (including the attiny family).

In theory an Arduino can also be used for ICSP if you have one laying about, but I'm less familiar with that process.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Neither the AVR ISP mkII, nor the AVR Dragon programmers provide power to the target without hacking them. I think that the STK500 will though. \$\endgroup\$ – vicatcu Mar 15 '12 at 14:56
  • \$\begingroup\$ That might be the case; the two I've used (admittedly hobbyist targeted) have had the capability (by switch/jumper) of powering the circuit \$\endgroup\$ – CoderTao Mar 15 '12 at 22:15
1
\$\begingroup\$

I learned it from this page: http://letsmakerobots.com/node/31379 Although it mentions ATtiny13, my first Tiny was a 2313 too.

I love to use an Arduino as ISP, because it gives me the opportunity to experiment with a larger device (ATmega168) which is really easy to program. Then I port the s/w to the Tiny, which isn't too hard either. Don't go for the Arduino Uno, the ISP s/w doesn't work on that one.

| improve this answer | |
\$\endgroup\$
1
\$\begingroup\$

Here's a reasonable single-page tutorial. (It shows using AVR Studio though which you may (or may not) want to bother with if just starting out as opposed to WinAVR / AVR-GCC.)

Here's a page that covers basic I/O operations which I found useful.

Other than that AVR Freaks has a decent forum dedicated to just tutorials. I'd check out Interrrupts, Timers, and PWM.

Another page I regularly refer to is the Engbedded Atmel AVR® Fuse Calculator.

| improve this answer | |
\$\endgroup\$
1
\$\begingroup\$

MintyTime, a binary clock product I created at Wicked Device, uses an ATTiny2313. You can check out the Eagle schematics to see the basic requirements for wiring it up in a circuit (with an external crystal) and supporting in system program via an ICSP programmer.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.