| Electronic Components Datasheet Search |
|
AVR32AP Datasheet(PDF) 123 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR32AP Datasheet(HTML) 123 Page - ATMEL Corporation |
|
123 / 181 page ![]() 123 32001A–AVR32–06/06 AVR32 One data breakpoint module can only compare 32 bits of data. The data to be matched can therefore not cross a word boundary if the data breakpoint is to match correctly. When the debugger wants to match on a byte or halfword, the BWD register must be written with the LSB aligned, and the BWC:BME bits must be set to mask the upper bits of the BWD register. For example, if the debugger wants to match against Byte 1 in Figure 9-9, the BWA must be set to the byte address of Byte 1 and the BWD written with the value to match on aligned to LSB. Also the BWC:BME must be set to mask the 24 most significant bits of the BWD register (BME = 0xE). By default, the data breakpoint module will match on the data value regardless of the size of the access. The data BWC can also be set to match on a specific access size if the SIZE bits are set. The debugger can for example, set the breakpoint module to match only on byte writes to byte 1 in Figure 9-9. The BWD register must still be aligned correctly, and the byte mask must be set, but the data breakpoint will only trigger if a single byte is written to byte 1 and not if, for example, a whole word is written to byte 0, 1, 2, and 3. The OCD system can also break on a 64-bit value if both data breakpoint modules are combined as shown in Figure 9-10. Setting the Double Word Enable (DWE) bit in EPC3 will cause break- point module A to trigger only if both breakpoint module A and B matches. The debugger can then set the BWA3A and BWD3A to the least significant word in the double word and the BWA3B and BWD3B to the most significant word of the double word. BWC3A:BWE control the breakpoint operation of the combined breakpoint, while BWC3B:BWE is disregarded. F o r ex am ple, to se t a bre a k poin t w hen the a d d r ess 0 x 80 0C is w r itten to 0x0123456789ABCDEF, the registers must be configured as follows: • EPC3 = (DWE) • BWC3A = (BWE | BRW | BWO*3 | SIZE*7 ) • BWC3B = (BWE | BRW | BWO*3 | SIZE*7 ) • BWA3A = 0x8010 • BWA3B = 0x800C • BWD3A = 0x89ABCDEF • BWD3B = 0x01234567 Figure 9-9. Memory access data alignment. Word Byte 0 Byte 3 Byte 2 Byte 1 Halfw ord 0 Halfw ord 1 0x8008 0x8004 0x8000 0 1 2 3 Double w ord byte 4 to 7 Double w ord byte 0 to 3 0x800C 0x8010 |
|
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 |