EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: DigitalDeath on June 11, 2021, 03:03:03 am

Title: How do you program an ATtiny10 with PICkit 4?
Post by: DigitalDeath on June 11, 2021, 03:03:03 am
How do you program an ATtiny10 with PICkit 4?
Since they use a different protocol called TPI (Tiny Programming Interface)  that uses a single wire for both input and output?
I know about the USBasp programming but they tend to fail when the MIOSI pin is connected to other devices.

(https://www.eevblog.com/forum/microcontrollers/how-do-you-program-an-attiny10-with-pickit-4/?action=dlattach;attach=1226937;image)

Is there some settings os something I need to do to make it work?
I'm new to this series and I mostly do STM32 so I'm not familiar with where the resources are.

Thanks

John.

Title: Re: How do you program an ATtiny10 with PICkit 4?
Post by: ComradeXavier on June 11, 2021, 01:13:05 pm
Start with Microchip's PICkit 4 product page (https://www.microchip.com/developmenttools/ProductDetails/PG164140). There you will find links to documentation, including a user's guide (https://ww1.microchip.com/downloads/en/DeviceDoc/50002751F.pdf) and a quick start guide (https://ww1.microchip.com/downloads/en/DeviceDoc/50002721B.pdf).
Title: Re: How do you program an ATtiny10 with PICkit 4?
Post by: DigitalDeath on June 11, 2021, 01:28:16 pm
Start with Microchip's PICkit 4 product page (https://www.microchip.com/developmenttools/ProductDetails/PG164140). There you will find links to documentation, including a user's guide (https://ww1.microchip.com/downloads/en/DeviceDoc/50002751F.pdf) and a quick start guide (https://ww1.microchip.com/downloads/en/DeviceDoc/50002721B.pdf).

This is not a regular AVR processor. It uses a different protocol for programming because it has a bidirectional pin instead of miso and mosi
Title: Re: How do you program an ATtiny10 with PICkit 4?
Post by: ComradeXavier on June 11, 2021, 01:49:59 pm
Start with Microchip's PICkit 4 product page (https://www.microchip.com/developmenttools/ProductDetails/PG164140). There you will find links to documentation, including a user's guide (https://ww1.microchip.com/downloads/en/DeviceDoc/50002751F.pdf) and a quick start guide (https://ww1.microchip.com/downloads/en/DeviceDoc/50002721B.pdf).
This is not a regular AVR processor. It uses a different protocol for programming because it has a bidirectional pin instead of miso and mosi

You wrote:

How do you program an ATtiny10 with PICkit 4?
...
I'm new to this series and I mostly do STM32 so I'm not familiar with where the resources are.

The resources you need are on Microchip's website. The quick start guide I linked has only two pages. On page 2 is a table of how to connect a PICkit 4 to devices with a variety of programming interfaces, including TPI (as used on the ATtiny10).

You may also need to refer to the ATtiny10 product page (https://www.microchip.com/wwwproducts/en/ATtiny10) and datasheet (https://ww1.microchip.com/downloads/en/DeviceDoc/ATtiny4-5-9-10-Data-Sheet-DS40002060A.pdf). Section 1 (Pin Configuration) and Section 15 (Programming Interface) will contain any details specific to the TPI interface on the ATtiny10.
Title: Re: How do you program an ATtiny10 with PICkit 4?
Post by: DigitalDeath on June 11, 2021, 11:10:55 pm
On page 2 is a table of how to connect a PICkit 4 to devices with a variety of programming interfaces, including TPI (as used on the ATtiny10).

This is an answer thank you :-+.
The first one sounded like "read the manual"  :-DD

Title: Re: How do you program an ATtiny10 with PICkit 4?
Post by: MarkR42 on June 15, 2021, 11:06:01 am
I am just pleased that someone else is using the Attiny10. I use the usbasp arduino-based programmer and it works well. There is a lot you can do with 32 bytes of ram and 1/2k flash :)