| Electronic Components Datasheet Search |
|
AVR32AP Datasheet(PDF) 145 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR32AP Datasheet(HTML) 145 Page - ATMEL Corporation |
|
145 / 181 page ![]() 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 |
|
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 |
| 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 |