Professional Documents
Culture Documents
AT90S8535
Programmer
suitable for in-system use
Design by M. van Houwelingen
This programmer for Atmel processors can be easily built and is very
cheap. It consists of little more than a ZIF socket, four connectors and 32
LEDs. The associated loader program can be downloaded free of charge.
Those of you who use a wide range of micro- disadvantage that the microcon- easier as well as cheaper. The pro-
controllers will have come across the troller first has to be removed from grammer described here can, in con-
inevitable drawback that they all need differ- its circuit before it can be pro- junction with the associated (free)
ent programmers. When these have to be grammed. software and a data cable, program
bought each time, the cost soon mounts up. By building the programmer your- AT90S/LSxxxx series chips from
Furthermore, most programmers have the self the whole exercise becomes Atmel in-system. That means you no
K1 K2 K3 K4
R33
C3 C4 K6
10k
10
470 100n 1
16V 33 14
(ADC7)PA7 R34
S1 34 2
(ADC6)PA6 220Ω
35 15
(ADC5)PA5 R35
36 3
(ADC4)PA4 220Ω
37 16
(ADC3)PA3 R36
38 4
(ADC2)PA2 220Ω
* zie tekst (ADC1)PA1
39
40
17
5
(ADC0)PA0
* see text IC1
18
* siehe Text 9
RESET (SCK)PB7
8
7 19
6
(MISO)PB6
* voir texte (MOSI)PB5
6 7
5 20
(SS)PB4
4 8
(AIN1)PB3
3 21
(AIN0)PB2
2 9
(T1)PB1
1 22
(T0)PB0
10
K5
29 23
(TOSC2)PC7
28 11
(TOSC1)PC6
30 27 24
AVCC PC5
26 12
PC4
32 25 25
AREF PC3
24 13
PC2
31 23
AGND PC1
22
PC0 D25
AT90S8535
21
(OC2)PD7
20
(OCP)PD6
19
(OC1A)PD5
18
(OC1B)PD4
17
(INT1)PD3
16
(INT0)PD2
15
(TXD)PD1
14
(RXD)PD0
R10
R12
R13
R14
R15
R16
R17
R18
R19
R20
R21
R22
R23
R24
R25
R26
R27
R28
R29
R30
R31
R32
R11
X1 X2
R1
R2
R3
R4
R5
R6
R7
R8
R9
11 12 13
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k
D13
D15
D17
D19
D21
D23
D25
D27
D29
D31
D11
D1
D3
D5
D7
D9
X1
*
D10
D12
D14
D16
D18
D20
D22
D24
D26
D28
D30
D32
D2
D4
D6
D8
C1 C2
22p 22p
024051 - 11
Figure 1.The circuit diagram of the combined tester/programmer. The external supply (via K7) is only required during testing.
longer have to remove the micro- on the fact that these Atmel chips in-system.
controller form the circuit for pro- can be programmed serially. This One thing that should be kept in mind is
gramming. Moreover, it can be made happens via the MISO, MOSI and that the parallel port can only supply a lim-
very cheaply, since the minimum SCK pins that are found on all chips ited current. For this reason it is recom-
hardware requirement is just for a in the AT90S/LSxxxx series. The soft- mended that the microprocessor is powered
data cable used for transferring the ware also uses the RESET pin, by the onboard supply, rather than via the
program from the computer to the GROUND and a supply via the paral- cable.
microcontroller. The main function lel port. For further information
of the circuit described here is to regarding the programming tech-
make the testing of programs eas- nique you should refer to the Atmel Circuit
ier. One look at the circuit diagram datasheets. As can be seen in Figure 1, the circuit con-
in Figure 1 confirms that this is a Because only the above-men- sists of only a 40-pin ZIF socket for the
very simple affair. tioned pins are required for pro- AT90S8535, four connectors for connections
gramming it should be a simple mat- to external circuitry and 32 LEDs with series
ter to provide the circuit containing resistors. The LEDs have been added so that
Software the microcontroller with an extra the status of the outputs can be inspected
The software that sends the HEX connector for the data cable. The during the execution of your own programs.
files to the microcontroller is based chip can then be easily programmed There is also a reset button, as well as a 5 V
PCB
K7
The PCB for the tester /programmer is shown
K5
in Figure 2. It is clearly a straightforward cir- K6
R34
R35
R36
cuit, which can be constructed very easily. Do
H2
R33
H5
make sure that the LEDs are high-efficiency K2 S1
C4
IC1
K1
sible to program the whole range in the D10 C1 R1
AT90S/LSxxxx series. When building the D9
H1
C2
adapter you should of course connect all I/O D32
X1
R32 R17
pins, so that the smaller chips can also be D31
R31 R18
tested in this circuit. D30
R30 R19
D29 R29 R20
D28 R28 R21
R27 R22
D27
R26 K3 R23
D26
COMPONENTS LIST R25 1-150420 R24
H3
K4 ROTKELE )C(
D25 024051-1
Resistors:
R1-R32 = 1kΩ
R33 = 10kΩ (C) ELEKTOR
R34,R35,R36 = 220Ω 024051-1
Capacitors:
C1,C2 = 22pF
C3 = 470µF 16V radial
C4 = 100nF
Semiconductors:
D1-D7,D9-D15,D17-D23,D25-D31 = LED,
3mm, red (low-current)
D8,D16,D24,D32 = LED, 3mm, yellow
(low-current)
IC2 = 7805
Miscellaneous:
IC1 = 40-way ZIF socket
K1-K4 = 8-pin header
K5 = 3-way header
K6 = 25-way sub-D plug (male), PCB
mount, angled pins
K7 = mains adapter socket
S1 = pushbutton
X1 = 4MHz or 8MHz quartz crystal (see
text)
PCB, order code 024051-1 (see Readers
Services page)
Figure 2. Populating the PCB shouldn’t require more than an hour or so.