Serial programming characteristics, Programming via the jtag interface, Programming specific jtag instructions – Rainbow Electronics Atmega169L User Manual
Page 283: Atmega169v/l, Mosi miso sck t

283
ATmega169V/L
2514A–AVR–08/02
Serial Programming
Characteristics
Figure 129. Serial Programming Timing
Note:
1. 2 t
CLCL
for f
ck
< 12 MHz, 3 t
CLCL
for f
ck
>= 12 MHz
Programming via the
JTAG Interface
Programming through the JTAG interface requires control of the four JTAG specific
pins: TCK, TMS, TDI, and TDO. Control of the reset and clock pins is not required.
To be able to use the JTAG interface, the JTAGEN Fuse must be programmed. The
device is default shipped with the fuse programmed. In addition, the JTD bit in MCUCSR
must be cleared. Alternatively, if the JTD bit is set, the external reset can be forced low.
Then, the JTD bit will be cleared after two chip clocks, and the JTAG pins are available
for programming. This provides a means of using the JTAG pins as normal port pins in
Running mode while still allowing In-System Programming via the JTAG interface. Note
that this technique can not be used when using the JTAG pins for Boundary-scan or On-
chip Debug. In these cases the JTAG pins must be dedicated for this purpose.
As a definition in this data sheet, the LSB is shifted in and out first of all Shift Registers.
Programming Specific JTAG
Instructions
The instruction register is 4-bit wide, supporting up to 16 instructions. The JTAG instruc-
tions useful for programming are listed below.
The OPCODE for each instruction is shown behind the instruction name in hex format.
The text describes which data register is selected as path between TDI and TDO for
each instruction.
Table 131. Serial Programming Characteristics, T
A
= -40
°C to 85°C, V
CC
= 2.7V - 5.5V
(Unless Otherwise Noted)
Symbol
Parameter
Min
Typ
Max
Units
1/t
CLCL
Oscillator Frequency (ATmega169L)
0
8
MHz
t
CLCL
Oscillator Period (ATmega169L)
125
ns
1/t
CLCL
Oscillator Frequency (ATmega169, V
CC
= 4.5V -
5.5V)
0
16
MHz
t
CLCL
Oscillator Period (ATmega169, V
CC
= 4.5V -
5.5V)
67
ns
t
SHSL
SCK Pulse Width High
2 t
CLCL
*
ns
t
SLSH
SCK Pulse Width Low
2 t
CLCL
*
ns
t
OVSH
MOSI Setup to SCK High
t
CLCL
ns
t
SHOX
MOSI Hold after SCK High
2 t
CLCL
ns
t
SLIV
SCK Low to MISO Valid
TBD
TBD
TBD
ns
MOSI
MISO
SCK
t
OVSH
t
SHSL
t
SLSH
t
SHOX
t
SLIV