beautypg.com

Atmega169v/l – Rainbow Electronics Atmega169L User Manual

Page 314

background image

iv

ATmega169V/L

2514A–AVR–08/02

JTAG Interface and On-chip Debug System .................................. 225

Overview ........................................................................................................... 225

Test Access Port – TAP.................................................................................... 225

TAP Controller .................................................................................................. 227

Using the Boundary-scan Chain ....................................................................... 228

Using the On-chip Debug System .................................................................... 228

On-chip Debug Specific JTAG Instructions ...................................................... 229

On-chip Debug Related Register in I/O Memory .............................................. 230

Using the JTAG Programming Capabilities ...................................................... 230

Bibliography ...................................................................................................... 230

IEEE 1149.1 (JTAG) Boundary-scan ............................................... 231

Features............................................................................................................ 231

System Overview.............................................................................................. 231

Data Registers .................................................................................................. 231

Boundary-scan Specific JTAG Instructions ...................................................... 233

Boundary-scan Related Register in I/O Memory .............................................. 235

Boundary-scan Chain ....................................................................................... 235

ATmega169 Boundary-scan Order ................................................................... 245

Boundary-scan Description Language Files ..................................................... 250

Boot Loader Support – Read-While-Write Self-Programming...... 251

Boot Loader Features ....................................................................................... 251

Application and Boot Loader Flash Sections .................................................... 251

Read-While-Write and No Read-While-Write Flash Sections ........................... 251

Boot Loader Lock Bits....................................................................................... 254

Entering the Boot Loader Program ................................................................... 255

Addressing the Flash During Self-Programming .............................................. 257

Self-Programming the Flash ............................................................................. 258

Memory Programming...................................................................... 265

Program And Data Memory Lock Bits .............................................................. 265

Fuse Bits........................................................................................................... 266

Signature Bytes ................................................................................................ 268

Calibration Byte ................................................................................................ 268

Parallel Programming Parameters, Pin Mapping, and Commands .................. 268

Serial Programming Pin Mapping ..................................................................... 270

Parallel Programming ....................................................................................... 271

Serial Downloading ........................................................................................... 279

Programming via the JTAG Interface ............................................................... 283

Electrical Characteristics................................................................. 296

Absolute Maximum Ratings*............................................................................. 296

External Clock Drive Waveforms ...................................................................... 298

External Clock Drive ......................................................................................... 298

SPI Timing Characteristics ............................................................................... 298