EasyManuals Logo

Atmel AVR XMEGA AU series User Manual

Atmel AVR XMEGA AU series
512 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #424 background imageLoading...
Page #424 background image
424
8331B–AVR–03/12
Atmel AVR XMEGA AU
32.5.1 Switching between PDI and JTAG modes
The PDI controller uses either the JTAG or PDI physical layer for establishing a connection to
the programmer. Based on this, the PDI is in either JTAG or PDI mode. When one of the modes
is entered, the PDI controller registers will be initialized, and the correct clock source will be
selected. The PDI mode has higher priority than the JTAG mode. Hence, if the PDI mode is
enabled while the PDI controller is already in JTAG mode, the access layer will automatically
switch over to PDI mode. If switching physical layer without powering on/off the device, the
active layer should be disabled before the alternative physical layer is enabled.
32.5.2 Accessing Internal Interfaces
After an external programmer has established communication with the PDI, the internal inter-
faces are not accessible, by default. To get access to the NVM controller and the nonvolatile
memories for programming, a unique key must be signaled by using the KEY instruction. The
internal interfaces are accessed as one linear address space using a dedicated bus (PDIBUS)
between the PDI and the internal interfaces. The PDIBUS address space is shown in Figure 33-
3 on page 447. The NVM controller must be enabled for the PDI controller to have any access to
the NVM interface. The PDI controller can access the NVM and NVM controller in programming
mode only. The PDI controller does not need to access the NVM controller's data or address
registers when reading or writing NVM.
32.5.3 NVM Programming Key
The key that must be sent using the KEY instruction is 64 bits long. The key that will enable
NVM programming is:
0x1289AB45CDD888FF
32.5.4 Exception Handling
There are several situations that are considered exceptions from normal operation. The excep-
tions depend on whether the PDI is in RX or TX mode and whether PDI or JTAG mode is used.
While the PDI is in RX mode, the exceptions are:
•PDI:
– The physical layer detects a parity error
– The physical layer detects a frame error
– The physical layer recognizes a BREAK character (also detected as a frame error)
•JTAG:
– The physical layer detects a parity error
– The physical layer recognizes a BREAK character (also detected as a parity error)
While the PDI is in TX mode, the exceptions are:
•PDI:
– The physical layer detects a data collision
•JTAG:
– The physical layer detects a parity error (on the dummy data shifted in on TDI)
– The physical layer recognizes a BREAK character
Exceptions are signaled to the PDI controller. All ongoing operations are then aborted, and the
PDI is put in ERROR state. The PDI will remain in ERROR state until a BREAK is sent from the
external programmer, and this will bring the PDI back to its default RX state.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR XMEGA AU series and is the answer not in the manual?

Atmel AVR XMEGA AU series Specifications

General IconGeneral
BrandAtmel
ModelAVR XMEGA AU series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals