Professional Documents
Culture Documents
044
Programing Tool for ATtiny15
IC2
R1 D1 78L05 +5V
10Ω
K1
1N4148 R2
860Ω
C1 C2 C3 C4
D2
100µ 100n 100n 100µ
25V 16V
+5V
R7
K2 D3 D5 C5
10k
1 100n
6
BAT85 BAT85
R5 8
2
10k
7
IC1
3 7 1
R4 SCK RESET
8 6 2
10k MISO PB4
4 5 3
R3 MOSI PB3
H. Volmer 9
10k ATTiny15
5
4 T1
R6
A small microcontroller like the ATtiny15 is ideal for many sim- SUB D9 10k
ple tasks not requiring too much I/O activity. The ATtiny15 has D4 D6 D7
BC547C
two I/O connections, offers a 1024-byte Flash memory and a
BAT85 BAT85
64-byte EEPROM, all in an 8-pin case.
BAT85
The programming tool shown here is connected to the RS232 030030 - 11
.equ lastflash =0x1ff Flash which expects a file in HEX or binary format for
programming into the on-chip Flash memory. When the
Reset: HEX format is used, the checksum is ignored. Read and
Ldi ZL,LOW(lastflash*2)+1 write access to the Flash memory is only possible using
Ldi ZH,HIGH(lastflash*2);//FLASHEND the HEX format. The calibration byte is read with the
Lpm ;in last memory location of calibration register
aid of PutCallbyte and then written to the indicated
buffer address. The internal oscillator is controlled as
Out OSCCAL,r0
shown in the listing.
R1
D1
C1 C2 IC2
C3
9V DC K1
1-030030 C4 030030-1
D7
D6
D5
K2 T1 D2
R6
030030
R2
R4
R5
R7
R3
C5
IC1
D3
D4