If I want to use SPI of attiny202 do I need to use a 12V programmer?
Broadly speaking,No. Unless you change the settings for the UPDI fuses then you will not be able to access/program your chip without a 12V signal. the Tiny202 is a 0 series...therefore there you should read the discussion in the tutorial forum "Getting started with 1/0 series". or simply check the documents section of ATtiny202 MC page.
Getting started with SPI:
You can easily program ATtiny202 with MPLAB Snap tool in the MPLAB X IDE. Modify MPLAB Snap tool according to ETN36_MPLAB Snap AVR Interface Modification and slow down the UPDI speed to 0.300 MHz. It works fine with 3.3 Volts.
© 2022 Microchip Technology Inc.