Fortunately I got very recent ATmel MCU ATtiny102 and quickly tried to program RGB LED blinking through ATmel Studio. I found several differences from conventional 8-pin AVRs in every aspect.
(1) programming method is NOT SPI but TPISo far, 8-pin AVR was programmed by SPI (MOSI/MISO/CLK/RESET..) but this new 102 accept only TPI, which is same as ATtiny10.
(2) Pin assign is completely different!!!
As shown in the above picture ATtiny102 (up) has 1-pin VCC and 8-pin GND. This is totally different from conventional pin assign (which was totally pin compatible in 8-pin AVR series, ATtiny 13 to 85). We need a bit care for initial prototyping test.
(3) New 102 has two output ports PORTA and PORTB
I guess, ATmel uses same chip for 102 and 104 (simply most of ports are not wired in 102) and as a result 102 has two ports. This means, little source modification is required from conventional 8-pin AVR to 102.
(4) Additional voltage reference (1.1 V, 2.2 V, 4.3 V) for A/D converter
Voltage reference can be selected by REFS1 and REFS0 in ADMUX. Some ATtiny has 1.1 and 2.56 V reference but they has some limitation, requiring external capacitor. But the case of 102/104, it is completely free of charge.
(5) USART and USARTSPI (functions exclusive) supported
Not bit-banged but serial and SPI (one of them) are supported..
As for programming, ATmel Studio has already supported ATtiny102/104 and we don't need to wait for something.
Actual operation can be found in the following movie...
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Hello, I am needing to read an ATTINY102, but I have not found the tool that contains this chip in the library.
With what interface and software can you have access to the reading of this chip?
Are you sure? yes | no
How did you get ahold of the attiny102? It's not in stock at every electronics distributor that i've checked.
Are you sure? yes | no
Hello, as you can see the model number has a suffix "-ES" meaning "engineering sample".
Are you sure? yes | no
thanks
Are you sure? yes | no