Electronic Components Datasheet Search
  English  ▼

X  

AVR32AP Datasheet(PDF) 130 Page - ATMEL Corporation

Part # AVR32AP
Description  32-bit AVR Microcontroller
PDF  181 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AVR32AP Datasheet(HTML) 130 Page - ATMEL Corporation

Back Button AVR32AP Datasheet HTML 126Page - ATMEL Corporation AVR32AP Datasheet HTML 127Page - ATMEL Corporation AVR32AP Datasheet HTML 128Page - ATMEL Corporation AVR32AP Datasheet HTML 129Page - ATMEL Corporation AVR32AP Datasheet HTML 130Page - ATMEL Corporation AVR32AP Datasheet HTML 131Page - ATMEL Corporation AVR32AP Datasheet HTML 132Page - ATMEL Corporation AVR32AP Datasheet HTML 133Page - ATMEL Corporation AVR32AP Datasheet HTML 134Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 130 / 181 page
background image
130
32001A–AVR32–06/06
AVR32
9.5
Program trace
9.5.1
Program trace overview
The AVR32 OCD system provides program trace support via the debug port. The program trace
feature implements a Program Flow Change Model in which the program trace is synchronized
at each program flow discontinuity. This occurs at taken indirect branches and exceptions. A
record of taken / not taken direct branches is included so that the complete program flow can be
decoded.
The development tool can then interpolate what transpires between each program trace mes-
sage by correlating information from branch target messaging and static source or object code
files. Self-modifying code cannot be traced with the Program Flow Change Model because the
source code is not static.
The TM[2] bit in the Development Control register must be set to enable program trace.
9.5.1.1
Branch message summary
Five types of branch messages can be generated:
1.
Program Trace, Indirect Branch is transmitted on most subroutine calls, returns, inter-
rupts, exceptions, and any situation where the target address of a branch cannot be
determined from the source code. This message contains the instruction count to iden-
tify the branch and the target PC to identify the branch target.
2.
Program Trace Synchronization is transmitted to indicate the current PC after starting
trace or after trace synchronization is lost.
3.
Program Trace, Indirect Branch messages with sync contain both instruction count and
PC, and are transmitted instead of a Program Trace Synchronization message if a syn-
chronization condition occurs and the current instruction is a taken direct/indirect
branch.
4.
Program Trace, Resource full messages is transmitted when an internal buffer over-
flows. ICNT is transmitted whenever it overflows with this message.
5.
Program Trace Correlation. This message is transmitted to synchonize the program
trace with an event. Sent when trace is disabled, debug mode is entered or sleep mode
is entered.
The Nexus standard also specifies Program Trace Correction messages to correct for specula-
tively transmitted trace messages, but these are not implemented in the AVR32, since program
trace messages are only transmitted for actually executed instructions. Similarly, the Nexus-
specified CANCEL packet of synchronized branch messages is not implemented in AVR32.
Entry into Debug Mode will generate an program trace correlation message, while no trace mes-
sages are generated while executing in Debug Mode. A Program Trace Synchronization
message is transmitted when Debug Mode is exited.
9.5.2
Branch message packets
The program trace messages contain packets which identify the address of the taken branch,
the target of the branch, and the current program counter value. These packets are discussed
below.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com