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

MC9S12P64CFT 参数 Datasheet PDF下载

MC9S12P64CFT图片预览
型号: MC9S12P64CFT
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器 [Microcontrollers]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 566 页 / 7414 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC9S12P64CFT的Datasheet PDF文件第179页浏览型号MC9S12P64CFT的Datasheet PDF文件第180页浏览型号MC9S12P64CFT的Datasheet PDF文件第181页浏览型号MC9S12P64CFT的Datasheet PDF文件第182页浏览型号MC9S12P64CFT的Datasheet PDF文件第184页浏览型号MC9S12P64CFT的Datasheet PDF文件第185页浏览型号MC9S12P64CFT的Datasheet PDF文件第186页浏览型号MC9S12P64CFT的Datasheet PDF文件第187页  
S12S Debug Module (S12SDBGV2)  
6.4.5.2.2  
Loop1 Mode  
Loop1 Mode, similarly to Normal Mode also stores only COF address information to the trace buffer, it  
however allows the filtering out of redundant information.  
The intent of Loop1 Mode is to prevent the Trace Buffer from being filled entirely with duplicate  
information from a looping construct such as delays using the DBNE instruction or polling loops using  
BRSET/BRCLR instructions. Immediately after address information is placed in the Trace Buffer, the  
DBG module writes this value into a background register. This prevents consecutive duplicate address  
entries in the Trace Buffer resulting from repeated branches.  
Loop1 Mode only inhibits consecutive duplicate source address entries that would typically be stored in  
most tight looping constructs. It does not inhibit repeated entries of destination addresses or vector  
addresses, since repeated entries of these would most likely indicate a bug in the user’s code that the DBG  
module is designed to help find.  
6.4.5.2.3  
Detail Mode  
In Detail Mode, address and data for all memory and register accesses is stored in the trace buffer. This  
mode is intended to supply additional information on indexed, indirect addressing modes where storing  
only the destination address would not provide all information required for a user to determine where the  
code is in error. This mode also features information bit storage to the trace buffer, for each address byte  
storage. The information bits indicate the size of access (word or byte) and the type of access (read or  
write).  
When tracing in Detail Mode, all cycles are traced except those when the CPU is either in a free or opcode  
fetch cycle.  
6.4.5.2.4  
Compressed Pure PC Mode  
In Compressed Pure PC Mode, the PC addresses of all executed opcodes, including illegal opcodes are  
stored. A compressed storage format is used to increase the effective depth of the trace buffer. This is  
achieved by storing the lower order bits each time and using 2 information bits to indicate if a 64 byte  
boundary has been crossed, in which case the full PC is stored.  
Each Trace Buffer row consists of 2 information bits and 18 PC address bits  
NOTE:  
When tracing is terminated using forced breakpoints, latency in breakpoint  
generation means that opcodes following the opcode causing the breakpoint  
can be stored to the trace buffer. The number of opcodes is dependent on  
program flow. This can be avoided by using tagged breakpoints.  
6.4.5.3  
Trace Buffer Organization (Normal, Loop1, Detail modes)  
ADRH, ADRM, ADRL denote address high, middle and low byte respectively. The numerical suffix refers  
to the tracing count. The information format for Loop1 and Normal modes is identical. In Detail mode, the  
address and data for each entry are stored on consecutive lines, thus the maximum number of entries is 32.  
In this case DBGCNT bits are incremented twice, once for the address line and once for the data line, on  
S12P-Family Reference Manual, Rev. 1.13  
Freescale Semiconductor  
183  
 复制成功!