调试接口 毕业论文外文文献翻译.doc
《调试接口 毕业论文外文文献翻译.doc》由会员分享,可在线阅读,更多相关《调试接口 毕业论文外文文献翻译.doc(10页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、西安工程大学本科毕业设计(译文)【原文】 CHAPTER 3 Debug InterfaceThe two-wire debug interface allows programming of the on-chip flash, and it provides access to memory and register contents and debug features such as breakpoints, single-stepping, and register modification.The debug interface uses I/O pins P2.1 and P2.
2、2 as debug data and debug clock, respectively, during debug mode. These I/O pins can be used as general-purpose I/O only while the device is not in debug mode. Thus, the debug interface does not interfere with any peripheral I/O pins.Debug ModeDebug mode is entered by forcing two falling-edge transi
3、tions on pin P2.2 (debug clock) while the RESET_N input is held low.While in debug mode, pin P2.1 is the debug-data bidirectional pin, and P2.2 is the debug-clock input pin.Debug Communication The debug interface uses a SPI-like two-wire interface consisting of the P2.1 (debug data) and P2.2(debug c
4、lock) pins. Data is driven on the bidirectional debug-data pin at the positive edge of the debug clock, and data is sampled on the negative edge of this clock.The direction of the debug-data pin depends on the command being issued. Data is driven on the positive edge of the debug clock and sampled o
5、n the negative edge. Figure 3-1 shows how data is sampled.Figure 3-1. External Debug Interface TimingThe data is byte-oriented and is transmitted MSB-first. A sequence of one byte is shown in Figure 3-2.Figure 3-2. Transmission of One ByteA debug command sequence always starts with the host transmit
6、ting a command through the serial interface. This command encodes the number of bytes containing further parameters to follow, and whether a response is required. Based on this command, the debug module controls the direction of the debug data pad. A typical command sequence is shown in Figure 3-3.
7、Note that the debug-data signal is simplified for the clarity of the figure, not showing each individual bit change. The direction is not explicitly indicated to the outside world, but must be derived by the host from the command protocol.Figure 3-3. Typical Command SequenceNo Extra Wait for Respons
8、eDebug StatusA debug-status byte is read using the READ_STATUS command. The format and description of this debug status is shown in Table 3-4.The READ_STATUS command is for example used for: Polling the status of the chip erase (CHIP_ERASE_BUSY) after a CHIP_ERASE command. Checking whether the oscil
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 调试接口 毕业论文外文文献翻译 调试 接口 毕业论文 外文 文献 翻译
限制150内