background image

 

8282A-AVR-11/10 

 

 

 

 

 

 

   

   

 

 

 

 

 

   

   

 

 

 

 

 

   

   

 

 

 

 

 

   

   

 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

 

   

   

 

 

 
 
 
 
 
 
 

 

 

   

   

 

 

Atmel Corporation 

2325 Orchard Parkway 
San Jose, CA 95131 
USA 

Tel:

  (+1)(408) 441-0311 

Fax:

 (+1)(408) 487-2600 

www.atmel.com

 

 

Atmel Asia Limited 

Unit 01-5 & 16, 19F 
BEA Tower, Milennium City 5 
418 Kwun Tong Road 
Kwun Tong, Kowloon 
HONG KONG 

Tel:

  (+852) 2245-6100 

Fax:

 (+852) 2722-1369 

 

Atmel Munich GmbH 

Business Campus 
Parkring 4 
D-85748 Garching b. Munich 
GERMANY 

Tel:

  (+49) 89-31970-0 

Fax:

 (+49) 89-3194621 

 

Atmel Japan 

9F, Tonetsu Shinkawa Bldg. 
1-24-8 Shinkawa 
Chou-ku, Tokyo 104-0033 
JAPAN 

Tel:

  (+81) 3523-3551 

Fax:

 (+81) 3523-7581 

 

 

 

 

 

   

   

 

 

©

 2010 Atmel Corporation. All rights reserved

. / Rev.: CORP072610 

 

Atmel

®

, Atmel logo and combinations thereof, AVR

®

, AVR Studio

®

, XMEGA

®

 and others are registered trademarks of Atmel Corporation 

or its subsidiaries. Other terms and product names may be trademarks of others. 

 

Disclaimer:

 The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to 

any intellectual property right is granted by this document or in connection with the sale of Atmel products. 

EXCEPT AS SET FORTH IN THE ATMEL 

TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS 
ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE 
LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, 
DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO 
USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

 Atmel makes no representations or 

warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and 
product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically 
provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or 
warranted for use as components in applications intended to support or sustain life.

 

 

 

 

 

 

 

 

 

 

 

 

Summary of Contents for AVR1612

Page 1: ...NVM Controller trough the PDI interface and executing NVM Controller commands The PDI is a 2 pin interface using the Reset pin for the clock input PDI_CLK and the dedicated pin for data input and out...

Page 2: ...scribes the PDI serial frame format Figure 2 1 PDI serial frame format 2 2 Serial transmission and reception The PDI physical layer is either in Transmit TX or Receive RX mode of operation By default...

Page 3: ...1287 ATXmega128A1 XCK RXD TXD 220R 220R PDI CLK PDI DATA 2 4 PDI instruction set The PDI has a small instruction set that is used for all access to the PDI itself and to the internal interfaces All in...

Page 4: ...D 0x20 Load data from PDIBUS Data Space using indirect addressing ST 0x60 Store data to PDIBUS Data Space using indirect addressing LDCS 0x80 Load data from PDI Control and Status Register Space STCS...

Page 5: ...refer to 29 5 7 Instruction Set Summary section of the XMEGA A MANUAL for more information 2 5 NVM Commands The NVM commands that can be used for accessing the NVM memories from external programming a...

Page 6: ...rite Boot Loader Section Page PDI Write 0x39 Boot Loader Section CRC NVMAA Calibration and User Signature sections 0x03 Read User Signature Row PDI Read 0x18 Erase User Signature Row PDI Write 0x1A Wr...

Page 7: ...hould be removed if PDI programming and debugging is used Other external reset sources driving this line should be disconnected Any load on the clock line may give a delay on the clock edge that cause...

Page 8: ...is accessed as one linear address space using a dedicated bus PDIBUS between the PDI and the internal interfaces PDI Control and Status Register Space can be accessed with STCS Store and LDCS Load ins...

Page 9: ...Bus Doing this all data and program memory spaces are mapped into the linear PDI memory space Figure 3 3 shows the PDI memory space and the base address for each memory space in the Atmel ATxmega128A...

Page 10: ...e data in the Flash or EEPROM page buffer the Flash or EEPROM page must be erased Programming an un erased Flash or EEPROM Page will corrupt the content in the Flash or EEPROM Page 1 Erase Flash or EE...

Page 11: ...the selected fuse or Lock Bits by doing a PDI Write operation The BUSY flag in the NVM STATUS register will be set until the command is finished For lock bit write the LOCK BIT write command can also...

Page 12: ...until it has been cleared Erase and program the EEPROM memory 1 Erase the flash page buffer i Use the ST ptr command to set the address 0x00000000 ii Write Erase EEPROM Page Buffer 0x36 command to th...

Page 13: ...this layer 2 The high level target XMEGA NVM driver which interface the low level PDI driver 3 The low level PDI driver uses the reduced instructions set for the PDI interface to communicate with the...

Page 14: ...tion can be used here used C xplain_pdi_prog 4 Open either the GCC project file or the IAR project file and compile the source code 5 Connect the USB cable of Atmel Xplain to provide power to the Xpla...

Page 15: ...AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODU...

Reviews: