Electronic Components Datasheet Search
  English  ▼

X  

AVR32AP Datasheet(PDF) 145 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) 145 Page - ATMEL Corporation

Back Button AVR32AP Datasheet HTML 141Page - ATMEL Corporation AVR32AP Datasheet HTML 142Page - ATMEL Corporation AVR32AP Datasheet HTML 143Page - ATMEL Corporation AVR32AP Datasheet HTML 144Page - ATMEL Corporation AVR32AP Datasheet HTML 145Page - ATMEL Corporation AVR32AP Datasheet HTML 146Page - ATMEL Corporation AVR32AP Datasheet HTML 147Page - ATMEL Corporation AVR32AP Datasheet HTML 148Page - ATMEL Corporation AVR32AP Datasheet HTML 149Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 145 / 181 page
background image
145
32001A–AVR32–06/06
AVR32
will be set. This means that the word pointed to by RWA is part of the oldest message. If
RWCS:WRAPPED is cleared, only the messages from RWA[31:(CNT+2)] to RWA-4 contain
valid message data.
The trace log can thus be reconstructed by reading words from RWA (or RWS[31:(CNT+2)] if
RWCS:WRAPPED is cleared) to RWA-4 in the circular RAM buffer. When reaching the address
RWA+CNT*4, the address should be wrapped down to RWA[31:(CNT+2)]. Frames consist of
the value of the MSEO pins in the most significant bit positions, and the value of the MDO pins in
the least significant bit positions. Frames are aligned to the most significant bit within each word,
as shown in Figure 9-12.
Since RWD is only written to the buffer when a whole word of data is filled, the last frames of the
last message may not have been transmitted to memory. RWCS:DV will be set to indicate that
RWD contains valid trace data, and these frames can be extracted by reading RWD. Empty
frame positions within RWD are tagged as "Idle", i.e. MSEO = 0b11.
Figure 9-12 shows an example of a NanoTrace buffer, with RWA starting at 0x1000 and CNT =
10 (i.e. the buffer size is 1024 words, or 4096 frames). When the trace was stopped,
RWCS:WRAPPED is set and RWA = 0x1234, so the last word of frame data written to the mem-
ory is located at 0x1230, and a partially filled word is in RWD. In this example, the last message
(shown in white) in the Transmit Queue was an Indirect Branch message with Sync. The same
example was shown for regular AUX port transmission. The last two frames of the message still
reside in RWD, which has been only partially filled.
Figure 9-12. Frame organization within a word.
Figure 9-13. Reconstructing a NanoTrace message.
9.8.6.3
NanoTrace access protection
If the CPU attempts to write the data memory reserved for NanoTrace messages, the CPU soft-
ware or message reconstruction can fail. To automatically detect this source of error, it is
possible to write the NanoTrace Access Protection (NTAP) bit in RWCS to one. This will cause a
0
8
16
24
31
MSEO
MDO
MSEO
MDO
MSEO
MDO
MSEO
MDO
Frame0
Frame1
Frame2
Frame3
Frame4090
Frame4091
Frame2
Frame3
Frame4088
Frame4089
Frame4092
Frame4093
Frame0
Frame1
Empty
Empty
0
8
16
24
31
01
000011
11
000101
11
000000
11
000000
Frame4096
Frame4097
MSEO
MDO
M SEO
MDO
MSEO
MDO
MSEO
MDO
MSEO
MDO
11
MDO
00
000100
00
111110
Frame4094
Frame4095
MSEO
MDO
M SEO
MDO
MSEO
MDO
00
MDO
.
.
.
.
.
RW A = 0x1234
RW D



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