欢迎访问ic37.com |
会员登录 免费注册
发布采购

MC9S12P64CFT 参数 Datasheet PDF下载

MC9S12P64CFT图片预览
型号: MC9S12P64CFT
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器 [Microcontrollers]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 566 页 / 7414 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC9S12P64CFT的Datasheet PDF文件第143页浏览型号MC9S12P64CFT的Datasheet PDF文件第144页浏览型号MC9S12P64CFT的Datasheet PDF文件第145页浏览型号MC9S12P64CFT的Datasheet PDF文件第146页浏览型号MC9S12P64CFT的Datasheet PDF文件第148页浏览型号MC9S12P64CFT的Datasheet PDF文件第149页浏览型号MC9S12P64CFT的Datasheet PDF文件第150页浏览型号MC9S12P64CFT的Datasheet PDF文件第151页  
Background Debug Module (S12SBDMV1)  
Figure 5-11 shows the ACK handshake protocol in a command level timing diagram. The READ_BYTE  
instruction is used as an example. First, the 8-bit instruction opcode is sent by the host, followed by the  
address of the memory location to be read. The target BDM decodes the instruction. A bus cycle is grabbed  
(free or stolen) by the BDM and it executes the READ_BYTE operation. Having retrieved the data, the  
BDM issues an ACK pulse to the host controller, indicating that the addressed byte is ready to be retrieved.  
After detecting the ACK pulse, the host initiates the byte retrieval process. Note that data is sent in the form  
of a word and the host needs to determine which is the appropriate byte based on whether the address was  
odd or even.  
Target  
Host  
(2) Bytes are  
Retrieved  
New BDM  
Command  
BKGD Pin  
READ_BYTE  
Host  
Byte Address  
Target  
Host  
Target  
BDM Issues the  
ACK Pulse (out of scale)  
BDM Executes the  
READ_BYTE Command  
BDM Decodes  
the Command  
Figure 5-11. Handshake Protocol at Command Level  
Differently from the normal bit transfer (where the host initiates the transmission), the serial interface ACK  
handshake pulse is initiated by the target MCU by issuing a negative edge in the BKGD pin. The hardware  
handshake protocol in Figure 5-10 specifies the timing when the BKGD pin is being driven, so the host  
should follow this timing constraint in order to avoid the risk of an electrical conflict in the BKGD pin.  
NOTE  
The only place the BKGD pin can have an electrical conflict is when one  
side is driving low and the other side is issuing a speedup pulse (high). Other  
“highs” are pulled rather than driven. However, at low rates the time of the  
speedup pulse can become lengthy and so the potential conflict time  
becomes longer as well.  
The ACK handshake protocol does not support nested ACK pulses. If a BDM command is not  
acknowledge by an ACK pulse, the host needs to abort the pending command first in order to be able to  
issue a new BDM command. When the CPU enters wait or stop while the host issues a hardware command  
(e.g., WRITE_BYTE), the target discards the incoming command due to the wait or stop being detected.  
Therefore, the command is not acknowledged by the target, which means that the ACK pulse will not be  
issued in this case. After a certain time the host (not aware of stop or wait) should decide to abort any  
possible pending ACK pulse in order to be sure a new command can be issued. Therefore, the protocol  
provides a mechanism in which a command, and its corresponding ACK, can be aborted.  
S12P-Family Reference Manual, Rev. 1.13  
Freescale Semiconductor  
147  
 复制成功!