Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button AVR32AP Datasheet HTML 139Page - ATMEL Corporation AVR32AP Datasheet HTML 140Page - ATMEL Corporation 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 143 / 181 page
background image
143
32001A–AVR32–06/06
AVR32
9.8.3
Address Space
The SZ field of RWCS determines the word size (data type) of the memory access, while the
CNT-field of the RWCS register determines the number of accesses of size SZ. Since Avr-32 is
byte addressed, the accessed address range is from RWA through RWA + k * (CNT+1), where k
is given by Table 9-54. The address in RWA must correspond to the Most Significant Byte of the
data of size SZ in physical memory.
Note that the AVR32 uses a big-endian memory model. E.g., if the word located at address
0x0000 contains 0x12345678, the byte at 0x0000 will read 0x12, and the halfword at 0x0000 will
read 0x1234.
9.8.4
Error Conditions
Errors during a memory access are indicated to the tool by setting the ERR and clearing the DV
bit of the RWCS register.
There are 3 sources of errors:
1.
The system bus signals an error
2.
If the tool writes to the RWCS register during a single or block access, the access is ter-
minated and indicated as an error.
3.
The Tool writes SZ or CNT to an illegal value.
9.8.5
Data Cache operation
Memory accesses from the OCD system are served by the Data Cache. Since the Data Cache
can buffer CPU accesses to memory, there may be an inconsistent data view between the
cache and system memory. The OCD system will specify whether or not the access should be
cached or uncached. By default, reads will be cached, and writes uncached. This can be altered
by writing the Cache Control (CCTRL) bits in RWCS.
Uncached reads return the value in system memory, which may differ from the value in the
cache if the CPU has written to this location. Cached reads return the value in the cache, i.e. the
same as the value seen by the CPU. If the data is not present inside the cache, the Data Cache
accesses the data through the system bus. Unlike a memory access from the CPU, a cache
miss for an OCD access does not update the Data Cache memory or registers.
Uncached writes will change the value both in the cache and system memory. Cached writes will
only change the cache value, and tag the cache line as dirty, ensuring it will be written to mem-
ory on the next cache flush. Cached writes are faster than uncached writes, but can cause
temporary inconsistency between system and cache memory.
Access error indicated by the system bus results in an exception in the CPU if cached operation
is used. When the error is due to an uncached memory access from the OCD System, the
exception is not generated, but the Error bit is set in the Read Write Control Register (RWCS).
The Data Cache is a shared resource between the CPU and the OCD System. This resource is
allocated solely to the CPU in normal operation. Hence, the OCD System will degrade perfor-
Table 9-54.
Address Increment as a Function of Word Size / Data Type
Access Type
SZ
k = 2SZ
Byte access
000
1
Half-word access
001
2
Word access
010
4



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