Sie sind auf Seite 1von 2

SMALL CIRCUITSCOLLECTION

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

port on your PC. The programming clock signal is generated


using a byte sent across the serial interface.
The programmer employs the so-called low-power program-
ming algorithm under Windows ME. The associated software Identify which allows manufacturer data as well as calibra-
offers four tabs: tion register contents to be read from the ATtiny15 chip.

.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

ROTKELE )C( (C) ELEKTOR

K2 T1 D2

R6
030030
R2

R4
R5
R7

R3
C5
IC1
D3
D4

Elektor Electronics 7-8/2003


SMALL CIRCUITSCOLLECTION
COMPONENTS LIST D3...D7 = BAT85
IC1 = 78L05 EEPROM does essentially the same as Flash function, only the
Resistors: T1 = BC547C PutCallbyte is not present.
R1 = 10Ω
R2 = 820Ω Miscellaneous:
Fuses allows the chip fuses to be read and programmed. Note,
R3-.R7 = 10kΩ IC1 = 8-way DIL
programming socket however, that the Fuse and Lockbit programming is not tested
Capacitors: K1 = mains adaptor socket, because afterwards only the High Voltage mode will work.
C1,C4 = 100µF 25V radial PCB mount
C2,C3,C5 = 100nF K2 = 9-way sub-D socket A small PCB, order code 030030-1, was designed for the pro-
(female), PCB mount, grammer. The PCB artwork may be obtained from the Free
Semiconductors: angled pins Downloads section of the Publishers’ website. The software is
D1 = 1N4148 PCB, order code 030030-1
also found there. For those without access to the Internet the
D2 = LED, green Disk, project software,
order code 030030-11 software is also available on diskette, order code 030030-11.
(030030-1)

7-8/2003 Elektor Electronics 3

Das könnte Ihnen auch gefallen