Author Topic: ATtiny2313 Pin Defintions  (Read 549 times)

0 Members and 1 Guest are viewing this topic.

Offline ko4nrbsTopic starter

  • Regular Contributor
  • *
  • Posts: 69
  • Country: us
ATtiny2313 Pin Defintions
« on: April 01, 2025, 12:51:53 pm »
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
 

Online squadchannel

  • Frequent Contributor
  • **
  • Posts: 560
  • Country: jp
  • deepl translate user
Re: ATtiny2313 Pin Defintions
« Reply #1 on: April 01, 2025, 12:58:37 pm »
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. :-+
 

Offline ko4nrbsTopic starter

  • Regular Contributor
  • *
  • Posts: 69
  • Country: us
Re: ATtiny2313 Pin Defintions
« Reply #2 on: April 01, 2025, 01:14:45 pm »
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
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13412
Re: ATtiny2313 Pin Defintions
« Reply #3 on: April 01, 2025, 01:21:40 pm »
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 using PICkit3 Programmer Application and Scripting Tool v3.10 and 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.
 
The following users thanked this post: ko4nrbs

Offline ko4nrbsTopic starter

  • Regular Contributor
  • *
  • Posts: 69
  • Country: us
Re: ATtiny2313 Pin Defintions
« Reply #4 on: April 01, 2025, 01:24:37 pm »
I did find this but still confused.

Bill
 

Online squadchannel

  • Frequent Contributor
  • **
  • Posts: 560
  • Country: jp
  • deepl translate user
Re: ATtiny2313 Pin Defintions
« Reply #5 on: April 01, 2025, 01:25:32 pm »
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.

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 using PICkit3 Programmer Application and Scripting Tool v3.10 and 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.


nice information, might be able to get by with AVRDUDE.
 
The following users thanked this post: ko4nrbs

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13412
Re: ATtiny2313 Pin Defintions
« Reply #6 on: April 01, 2025, 01:38:52 pm »
I did find this but still confused.

Bill
So 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.
 
The following users thanked this post: ko4nrbs

Offline ko4nrbsTopic starter

  • Regular Contributor
  • *
  • Posts: 69
  • Country: us
Re: ATtiny2313 Pin Defintions
« Reply #7 on: April 01, 2025, 02:55:35 pm »
PK2  AVR        2x3 ISP
     Signal     Header
===|=========
 1 - RST       - 5 
 2 - Vcc Targ. - 2   
 3 - Gnd       - 6   
 4 - MISO      - 1 
 5 - SCLK      - 3     
 6 - MOSI      - 4 

I will begin with these.  Thanks to all!!
Bill
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13412
Re: ATtiny2313 Pin Defintions
« Reply #8 on: April 01, 2025, 03:14:40 pm »
Here's how I'd match that up:
Code: [Select]
PK2  AVR        2x3 ISP ATtiny2313
     Signal     header  pin
===|===========|=======|==========
 1 - RST       - 5     - 1 (PA2) + 10K pullup   
 2 - Vcc Targ. - 2     - 20 } + 100nF
 3 - Gnd       - 6     - 10 } decoupling
 4 - MISO      - 1     - 18 (PB6)
 5 - SCLK      - 3     - 19 (PB7)
 6 - MOSI      - 4     - 17 (PB5)
assuming the pinout you posted is correct.
 
The following users thanked this post: ko4nrbs


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf