AT90PWM2/3
..............................................................................................
Programming Guide
Section 1
AT90PWM2/3 Programming Guide
1.1
Introduction
This document is intended for AT90PWM2/3 users, it focuses on fuse bit programming
and configuration. It also provides information and synthesis about fuse bit configuration
versus different Atmel hardware development kits using AT90PWM2/3.
For each hardware element referenced in this document please refer to the correspond-
ing hardware user guide available on the Atmel web site.
1.2
General Remarks
When DWEN fuse bit is enable there is no more ISP. The only way to disable this fuse is
Concerning Fuse
parallel programming or Debug wire using JTAGICE mkII (open project, start debugging
session, then in JTAGICE mkII options there is a “Disable DebugWire” button).
Bits
When SPIEN fuse bit is disable there is no more ISP, the only wayto enable it is parallel
programming .
On AT90PWM2/3, When PSCxRB or PSCRV fuse are used, the parallel programming
fails, ISP must be used to desativate these fuse bits or to program the part.
Warning: If SPIEN fuse is disable and PSCxRB used, the chip’s firmware can be pro-
grammed using DebugWire only. The fuse bits cannot be changed any more.
Table 1-1.
Fuse bit configuration vs effect on ATAVRMC100, ATAVRMC200, ATAVRFBKIT, STK500+STK520 used with
AT90PWM2/3 Rev A
ATAVRMC100, ATAVRMCMC200,
ATAVRFBKIT
AT90PWM2/3 is no more programmable, it
must be unsoldered
PSCxRB
RSTDISBLE
DWEN
SPIEN
STK500 and STK520
AT90PWM2/3 can be programmed using
parallel programming only
AT90PWM2/3 code can be programmed using
ISP and parallel programming.
AT90PWM2/3 code can be programmed using
Debugwire and parallel programming only.
⌧
⌧
AT90PWM2/3 code can be programmed using
ISP only.
AT90PWM2/3 code can be programmed using
Debugwire only. Fuse bits are no more
accessible.
⌧
⌧
AT90PWM2/3 code can be programmed using
Debugwire Fuse bits are accessible in ISP
mode only.
AT90PWM2/3 code can be programmed using
Debugwire and parallel programming.
AT90PWM2/3 Programming User Guide
-1
7654A–AVR–06/06
Table 1-1.
Fuse bit configuration vs effect on ATAVRMC100, ATAVRMC200, ATAVRFBKIT, STK500+STK520 used with
AT90PWM2/3 Rev A (Continued)
ATAVRMC100, ATAVRMCMC200,
ATAVRFBKIT
AT90PWM2/3 is no more programmable, it
must be unsoldered
PSCxRB
RSTDISBLE
DWEN
SPIEN
STK500 and STK520
AT90PWM2/3 code can be programmed using
parallel programming only.
AT90PWM2/3 code can be programmed using
parallel programming only.
AT90PWM2/3 code can be programmed using
parallel programming only.
⌧
⌧
⌧
⌧
⌧
AT90PWM2/3 is no more programmable, it
must be unsoldered
AT90PWM2/3 is no more programmable, it
must be unsoldered
⌧
⌧
⌧
AT90PWM2/3 is no more programmable, it
must be unsoldered
Part is no more accessible
AT90PWM2/3 code can be programmed using
parallel programming only.
Part is no more accessible
AT90PWM2/3 code can be programmed using
ISP only.
AT90PWM2/3 code can be programmed using
Debugwire only. Fuse bits are no more
accessible.
⌧
⌧
⌧
⌧
⌧
AT90PWM2/3 code can be programmed using
ISP only.
AT90PWM2/3 code can be programmed using
Debugwire only. Fuse bits are no more
accessible.
⌧
⌧
⌧
AT90PWM2/3 code can be programmed using AT90PWM2/3 code can be programmed using
Debugwire only . Fuse bits are accessible in ISP Debugwire only. Fuse bits are accessible in ISP
only.
only.
Part is no more accessible
Part is no more accessible
Part is no more accessible
⌧
⌧
⌧
⌧
⌧
⌧
⌧
⌧
Part is no more accessible
Part is no more accessible.
Part is no more accessible
⌧
⌧
⌧
⌧
Part is no more accessible
Part is no more accessible
Note: In Debugwire mode, fuse bit can not be accessed.
⌧
programmed
Unprogrammed
Warning this configuration must be verified before programming it may completly lock the part
-2
7654A–AVR–06/06
AT90PWM2/3 Programming Guide
Figure 1-1.
Annexe 1 : STK500, STK520 Parallel programming configuration
1.2.1
Connections
- RS232 cable from PC to RS232 CTRL connector
- 10 wire cable from PROG CTRL to PORTD
- 10 wire cable from PROG DATA to PORTB
1.2.2
Jumpers:
- VTARGET, AREF, RESET, XTAL1 and BSEL2 are selected
- OSCSEL is selecting on board oscillator
- PJUMP jumpers are removed
AT90PWM2/3 Programming Guide
-3
7654A–AVR–06/06
1.3
STK520 Jumper Configuration for Parallel Programming
Jumper
JP1
JP2
JP3
JP4
JP5
JP6
JP7
JP8
JP9
JP10
JP11
JP12
JP13
JP14
Position
On
On
On
Off
Off
Off
On
On
On
On
On
On
Off
Off
Function
XT1
XT2
RESET
RX
TX
VTG
ANA REF
D2A
AMP0+
AMP0-
AMP1+
AMP1-
Description
Connect STK500 XT1 circuit to AVR PE1
Connect STK500 XT2 circuit to AVR PE2
Connect STK500 RESET circuit to AVR PE0
Connect RxD DALI to RxD Input of the AVR
Connect TxD DALI to TxD Output of the AVR
Useful to measure the VCC and AVCC current
Connect STK500 REF circuit to AVR AREF
Isolate D2A output
Isolate AMP0+ input
Isolate AMP0- input
Isolate AMP1+ input
Isolate AMP1- input
Potentiometer supply from Analog V Ref
Potentiometer output to ADC0 input
-4
7654A–AVR–06/06
AT90PWM2/3 Programming Guide