|
HWA
Bare metal programming with style
|
This is a single ATTINY85-20PU without crystal on a breadboard with a USB/Serial adapter for 1-wire communication, a LED connected at pin #5 (PB0/OC0A), one analog input pin.
RESET ADC0 PB5 o U o Vcc
XTAL1 CLKI /OC1B ADC3 PB3 o o PB2 SCK USCK SCL ADC1 T0 INT0
XTAL2 CLKO OC1B ADC2 PB4 o o PB1 MISO DO AIN1 OC0B OC1A
Gnd o o PB0 MOSI DI SDA AIN0 OC0A /OC1A AREF
The serial communication uses 1 wire for RX/TX, AVR pin #2 connected to the RXD pin of the serial adapter, and a 1k resistor is connected between the RXD and TXD pins (it could be replaced by a diode, Schottky preferably).
TINY85 -> 2 : RXD <- Serial Adapter
: TXD
1 : DTR
4 : GND
8 : VCC
To install Diabolo with avrdude/usbasp:
USBASP -> 1 MOSI 5 <- TINY85
2 VCC 8
4 GND 4
5 RST 1
7 SCK 7
9 MISO 6