FAQ
- M051 Base Series(95)
- M0518 Series(97)
- M0519 Series(43)
- M0564 Series(1)
- Mini51 Base Series(90)
- Nano100/102 Base Series(101)
- Nano103 Base Series(10)
- Nano110/112 LCD Series(100)
- Nano120 USB Series(111)
- Nano130 Advanced Series(110)
- NUC029 Series(94)
- NUC100/200 Advanced Series(102)
- NUC120/122/123/220 USB Series(116)
- NUC121/125 Series(1)
- NUC126 USB Series(2)
- NUC130/230 CAN Series(103)
- NUC131/NUC1311 CAN Series(98)
- NUC140/240 Connectivity Series(114)
Products
Applications
Function
+
常見問答
在Keil開發環境中,如何增加一個中斷點,當某個暫存器或RAM的某個位址被更改或讀取時,程式會停止執行? 日期:2015-09-09
在除錯模式(Debug Mode)下,請依以下步驟加入中斷點:
- 使用快捷鍵組合Ctrl+B喚出中斷點視窗。
- 在中斷點視窗的”Expression”欄位中填入要監看的暫存器或RAM的位址。
- 在右方”Access”區域中,勾選”Read”或”Write”的條件;更改”Size”為資料長度,如暫存器的話需更改為4;勾選”Bytes”單位。
- 按下”Define”增加新的中斷點。
以M051系列為例,如果要監看UART0的UA_THR暫存器是否有值寫入,可以依下圖所示設定:

Note1:無法設定Count控制中斷點的命中計數數量。
Note2:針對暫存器的中斷點最多只能設定2個。
| 產品: | 微控制器 ,Arm Cortex-M0 微控制器 ,M051 系列 ,M0518 系列 ,M0519 系列 ,Mini51 系列 ,Nano100 / 102 系列 ,Nano110 / 112 LCD 系列 ,Nano120 USB 系列 ,Nano130 USB+LCD 系列 ,NUC029 系列 ,NUC100 / 200 系列 ,NUC120 / 122 / 123 / 220 USB 系列 ,NUC130 / 230 CAN 系列 ,NUC131/NUC1311 CAN 系列 ,NUC140 / 240 USB+CAN 系列 ,Arm Cortex-M4 微控制器 ,M451 Base 系列 ,M451M 系列 ,M452 USB 系列 ,M453 CAN 系列 ,NUC442 / 472 系列 ,NUC505 系列 |
|---|---|
| 應用: | |
| 功能: | Software and Tools,Development-Environment,Keil |