ATtiny2313 Pin Defintions - Page 1
Forum section: electronics / general

author: ko4nrbs
author_rank: Regular Contributor
timestamp: April 01, 2025, 12:51:53 pm
content: This is the pin out for the Programming Header on the PCB I am using. It is a ATtiny2313 IC.and this is the pin out for the programmer I am using.Which pins on the Programming Header correspond to those on the programmer? Wanted to make sure before I start programming my ICs.Thank you,Bill

author: squadchannel
author_rank: Frequent Contributor
timestamp: April 01, 2025, 12:58:37 pm
content: https://www.eevblog.com/forum/microcontrollers/programming-attiny2312-with-pickit-3/it's Pickit3, right? PIC is Microchip, AVR is Atmel, two completely different companies. although Atmel was acquired by Microchip in 2016.Pickit4 should be able to write AVR. But Pickit3, of course, a debugger for PIC microcontrollers only.I suggest buy a USBASP. very cheap.

author: ko4nrbs
author_rank: Regular Contributor
timestamp: April 01, 2025, 01:14:45 pm
content: MPLABs assured me my Pickit 3 would work ok. I'm new at this so was doing a lot of research. In any event I would like to find the correct corresponding pins between the two.Thanks,Bill

author: Ian.M
author_rank: Super Contributor
timestamp: April 01, 2025, 01:21:40 pm
content: See attached file about using a PICkit 2 to program AVRs using AVRDUDE. If you've got a PICkit 3, I believe AVRDUDE needs it to be put in PICkit 2 mode usingPICkit3 Programmer Application and Scripting Tool v3.10and you will need to revert it to PICkit 3 mode aka: MPLAB mode afterwards.I don't know for sure if the same connections will work natively with a PICkit 3 under recent MPLAB X, but if the device support matrix shows PICkit 3 support for your AVR, its a fair bet they will, and its unlikely to damage anything so worth a try.

author: ko4nrbs
author_rank: Regular Contributor
timestamp: April 01, 2025, 01:24:37 pm
content: I did find this but still confused.Bill

author: squadchannel
author_rank: Frequent Contributor
timestamp: April 01, 2025, 01:25:32 pm
content: Microchip, PIC, Pickit, and MPLAB have nothing to do with Atmel or AVR. Not compatible; before 2016.Since 2016, there has been integration into MPLAB and a move to an AVR architecture similar to PIC, but of course the ATtiny2313 is an Atmel-era design.I don't think MPLAB supports programming with Pickit3.Quote from: Ian.M on April 01, 2025, 01:21:40 pmnice information, might be able to get by with AVRDUDE.

author: Ian.M
author_rank: Super Contributor
timestamp: April 01, 2025, 01:38:52 pm
content: Quote from: ko4nrbs on April 01, 2025, 01:24:37 pmSo simply match the pin functions to column 2 of the table in my text file. Ignore the colors, those in my file are for a proprietary PICkit 2 breadboard ICSP cable and don't match the ones on that pinout diagram.

author: ko4nrbs
author_rank: Regular Contributor
timestamp: April 01, 2025, 02:55:35 pm
content: PK2 AVR 2x3 ISPSignal Header===|=========1 - RST - 52 - Vcc Targ. - 23 - Gnd - 64 - MISO - 15 - SCLK - 36 - MOSI - 4I will begin with these. Thanks to all!!Bill

author: Ian.M
author_rank: Super Contributor
timestamp: April 01, 2025, 03:14:40 pm
content: Here's how I'd match that up:Code:PK2 AVR 2x3 ISP ATtiny2313Signal header pin===|===========|=======|==========1 - RST - 5 - 1 (PA2) + 10K pullup2 - Vcc Targ. - 2 - 20 } + 100nF3 - Gnd - 6 - 10 } decoupling4 - MISO - 1 - 18 (PB6)5 - SCLK - 3 - 19 (PB7)6 - MOSI - 4 - 17 (PB5)assuming the pinout you posted is correct.