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