| Electronic Components Datasheet Search |
|
AVR32AP Datasheet(PDF) 93 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR32AP Datasheet(HTML) 93 Page - ATMEL Corporation |
|
93 / 181 page ![]() 93 32001A–AVR32–06/06 AVR32 Figure 9-3. Executing instructions on the CPU in OCD Mode. 9.2.4 Entry into Debug Mode Debug Mode can only be entered when the OCD is enabled, and Debug Mode is not masked. The following ways of entry are then possible: • Debug request from the debugger • Program counter breakpoint • Data address or value breakpoint • breakpoint instruction • Trapping opcode 0x0000 • Single step • Hardware error • Event on EVTI pin • NanoTrace buffer full • Abort command from the debugger The debugger can identify the condition which caused entry into Debug Mode by examining the status bits in the Development Status register (DS). Each cause of entry has a particular bit associated with it. Several exceptions can trigger simultaneously, causing more than one bit to be set. Note that any privileged CPU mode may write the SR:D bit to one directly, but this will not cause entry to Debug Mode. 9.2.4.1 Debug request The debugger may want to stop CPU operation, unrelated to current instruction execution, e.g. if the user presses a "STOP" button in the debug tool GUI. The debugger will then write the Debug Request (DBR) bit in the Development Control Register (DC). This causes the CPU to enter Debug Mode on the next instruction to be executed, before execution. 9.2.4.2 Program counter breakpoint The Program Counter breakpoints can be configured to halt the CPU when executing code at a specific address, or address range. This will cause the CPU to be halted before the break- pointed instruction is executed. OCD Instructions mov r12,r7 sub r12,0x01 mov r6,r12 adc r6,r12,r7 retd Opcode 0x0E9C 0x201C 0x1896 0xF807 0046 0xD623 Written by tool to DINST 0x0E9C201C 0x1896F807 0x0046D623 Changes in DS INC →0→1 INC →0→1 INC →0→1 DBS →0 |
|
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 |