22.9 Register Description ...........................................................................................255
23 JTAG Interface and On-chip Debug System ..................................... 260
23.1 Features .............................................................................................................260
23.2 Overview ............................................................................................................260
23.3 TAP – Test Access Port .....................................................................................260
23.4 TAP Controller ....................................................................................................262
23.5 Using the Boundary-scan Chain .........................................................................263
23.6 Using the On-chip Debug System ......................................................................263
23.7 On-chip Debug Specific JTAG Instructions ........................................................264
23.8 Using the JTAG Programming Capabilities ........................................................264
23.9 Bibliography ........................................................................................................265
23.10 Register Description .........................................................................................265
24 IEEE 1149.1 (JTAG) Boundary-scan ................................................... 266
24.1 Features .............................................................................................................266
24.2 Overview ............................................................................................................266
24.3 Data Registers ....................................................................................................267
24.4 Boundary-scan Specific JTAG Instructions ........................................................268
24.5 Boundary-scan Chain .........................................................................................269
24.6 ATmega164P/324P/644P Boundary-scan Order ...............................................272
24.7 Boundary-scan Description Language Files .......................................................274
24.8 Register Description ...........................................................................................275
25 Boot Loader Support – Read-While-Write Self-Programming ......... 276
25.1 Features .............................................................................................................276
25.2 Overview ............................................................................................................276
25.3 Application and Boot Loader Flash Sections ......................................................276
25.4 Read-While-Write and No Read-While-Write Flash Sections .............................277
25.5 Boot Loader Lock Bits ........................................................................................279
25.6 Entering the Boot Loader Program .....................................................................280
25.7 Addressing the Flash During Self-Programming ................................................281
25.8 Self-Programming the Flash ...............................................................................282
25.9 Register Description ...........................................................................................291
26 Memory Programming ......................................................................... 293
26.1 Program And Data Memory Lock Bits ................................................................293
26.2 Fuse Bits ............................................................................................................294
26.3 Signature Bytes ..................................................................................................296
26.4 Calibration Byte ..................................................................................................296
26.5 Page Size ...........................................................................................................296
26.6 Parallel Programming Parameters, Pin Mapping, and Commands ....................297
26.7 Parallel Programming .........................................................................................299
26.8 Serial Downloading ............................................................................................308
26.9 Serial Programming Instruction set ....................................................................310
26.10 Programming via the JTAG Interface ...............................................................312
27 Electrical Characteristics .................................................................... 325
27.1 DC Characteristics .............................................................................................325
27.2 Speed Grades ....................................................................................................329
27.3 Clock Characteristics ..........................................................................................330
27.4 System and Reset Characteristics .....................................................................331
27.5 External Interrupts Characteristics .....................................................................331
27.6 SPI Timing Characteristics .................................................................................332
27.7 2-wire Serial Interface Characteristics ................................................................333
27.8 ADC Characteristics ...........................................................................................335
28 Typical Characteristics ........................................................................ 338
28.1 ATmega164P Typical Characterization ..............................................................338