beautypg.com

Section 11: in-circuit debug mode, Subb a[1, Acc = acc – a[1] - carry – Maxim Integrated MAXQ7666 User Manual

Page 297: Cmp #00h, If (acc == 0000h), set equals flag

background image

MAXQ7665/MAXQ7666 User’s Guide

__________________________________________________________________________________

11-1

SECTION 11: IN-CIRCUIT DEBUG MODE

This section contains the following information:

11.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-3

11.2 In-Circuit Debug Peripheral Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-4

11.2.1 In-Circuit Debug Temporary 0 Register (ICDT0) . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-4

11.2.2 In-Circuit Debug Temporary 1 Register (ICDT1) . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-5

11.2.3 In-Circuit Debug Control Register (ICDC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-5

11.2.4 In-Circuit Debug Flag Register (ICDF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-7

11.2.5 In-Circuit Debug Buffer Register (ICDB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-7

11.2.6 In-Circuit Debug Address Register (ICDA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-8

11.2.7 In-Circuit Debug Data Register (ICDD). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-8

11.2.8 System Control Register (SC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-9

11.3 Debug Engine Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-10

11.3.1 Background Mode Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-10

11.3.2 Breakpoint Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-12

11.3.2.1 Breakpoint Registers 0 to 3 (BP0 to BP3) . . . . . . . . . . . . . . . . . . . . . . . . . . .11-12

11.3.2.2 Breakpoint Register 4 (BP4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-13

11.3.2.3 Breakpoint Register 5 (BP5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-14

11.3.3 Using Breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-14

11.3.4 Debug Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-15

11.3.5 Debug Mode Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-15

11.3.6 Read-Register Map Command Host-ROM Instruction . . . . . . . . . . . . . . . . . . . . . . .11-17

11.3.7 Single-Step (Trace) Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-17

11.3.8 Return . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-17

11.3.9 Debug Mode Special Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-18

11.3.10 Debug Command Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-18

11.3.10.1 Register Read and Write Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-18

11.3.10.2 Data Memory Read Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-18

11.3.10.3 Data Memory Write Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-19

11.3.10.4 Program Stack Read Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-19

11.3.10.5 Read Register Map Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-19

Maxim Integrated

This manual is related to the following products: