EasyManua.ls Logo

Atmel AVR1612 User Manual

Atmel AVR1612
15 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
AVR1612: PDI programming driver
Features
PDI driver for devices with PDI programming interface as target MCU’s
PDI instruction set and timing
Programming application example for ATAVRXPLAIN/AT90USB1287
- Chip erase
- Write and read application flash
- Write and read EEPROM
- Read and write Fuses
- Read and write lock-bits
- Read target device id
1 Introduction
The Program and Debug Interface (PDI) is an Atmel
®
proprietary interface for
external programming and on-chip debugging of the device.
The PDI supports high-speed programming of all Non-Volatile Memory (NVM)
spaces; Flash, EEPOM, Fuses, Lock-bits and the User Signature Row. This is
done by accessing the 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 output (PDI_DATA).
This application note describes how to implement PDI programming. It is based on
the Atmel Xplain evaluation board and clarifies the protocol and timing of the PDI
programming. Please also refer to application note AVR1907: Xplain Hardware
Us
er's Guide for how to start with the kit.
The Figure 1-1 sho
ws the Xplain PDI programming block diagram. The firmware of
the application is for the Atmel AT90USB1287 microcontroller; however it can be
easily ported to other Atmel’s chip that features USART.
Figure 1-1. Xplain PDI Programming block diagram.
AT90USB1287 ATxmega128A1
PDI
8-bit
Microcontrollers
Application Note
Rev. 8282A-AVR-11/10
Question and Answer IconNeed help?

Do you have a question about the Atmel AVR1612 and is the answer not in the manual?

Atmel AVR1612 Specifications

General IconGeneral
BrandAtmel
ModelAVR1612
CategoryMicrocontrollers
LanguageEnglish

Summary

1 Introduction

2 PDI Target Implementation

2.1 PDI Frame Format

Defines the serial frame format used by the PDI physical layer, based on UART.

2.2 Serial Transmission and Reception

Explains PDI data transmission/reception and clock synchronization for data sampling.

2.3 Hardware Connection

Details the hardware connection for PDI using AT90USB1287 USART.

2.4 PDI Instruction Set

Describes the instruction set for PDI controller and NVM access.

2.5 NVM Commands

Lists commands for accessing NVM memories during external programming.

3 The Programming Interface

3.1 PDI Programming Process Overview

Outlines the fundamental steps involved in PDI programming.

3.2 Enable PDI Module

Details the procedure to enable the PDI module for operation.

3.3 Enter External Programming Mode

Explains how to transition the device into external programming mode.

3.4 Memory Programming

Covers programming Non-Volatile Memory (NVM) via the PDI interface.

3.4.1 Chip Erase Operation

Describes the sequence for performing a complete chip erase.

3.4.2 Flash and EEPROM Page Programming

Details the process of programming Flash and EEPROM pages.

3.4.2.1 Flash/EEPROM Programming Sequence

Explains the step-by-step sequence for Flash/EEPROM page programming.

3.4.2.2 Erase Page Buffer

Describes the commands for erasing Flash/EEPROM page buffers.

3.4.2.3 Load Page Buffer

Explains how to load data into Flash/EEPROM page buffers.

3.4.2.4 Erase & Write Page

Details the atomic erase and write operation for memory pages.

3.4.3 Read NVM Data

Explains the procedure for reading data from NVM sections.

3.4.4 Write Fuse and Lock Bits

Describes the commands for writing fuse and lock bit settings.

3.5 Exit PDI Programming Mode

Explains the procedure to exit the PDI programming state.

4 Example Programming Sequence

5 Code Hierarchy

6 Quick Start Guide

Related product manuals