Renesas SH7781 用户手册

下载
页码 1692
29.   User Break Controller (UBC) 
Rev.1.00  Jan. 10, 2008  Page 1477 of 1658 
REJ09B0261-0100 
 
4.  If the operand bus is selected, a break occurs after executing the instruction which has satisfied 
the conditions and immediately before executing the next instruction. However, if the data 
value is included in the match conditions, a break may occur after executing several 
instructions after the instruction which has satisfied the conditions; therefore, it is impossible 
to identify the instruction causing the break. If such a break has occurred for the delayed 
branch instruction or its delayed slot, the break does not occur until the first instruction at the 
branch destination.  
However, do not specify the operand break for the delayed slot of the RTE instruction. And if 
the data value is included in the match conditions, it is not allowed to set the break for the 
preceding the RTE instruction by one to six instructions.  
 
29.3.5
 
Sequential Break 
1.  Sequential break conditions can be specified by setting the MFE and MFI bits in the match 
condition setting registers (CBR0 and CBR1). (Sequential break involves two cases such that 
channel 0 break condition is satisfied then channel 1 break condition is satisfied, and vice 
versa.) To use the sequential break function, clear the MFE bit of the match condition setting 
register and the BIE bit of the match operation setting register of the first channel in the 
sequence, and set the MFE bit and specify the number of the second channel in the sequence 
using the MFI bit in the match condition setting register of the second channel in the sequence. 
If the sequential break condition is set, the condition match flag is set every time the match 
condition is satisfied for each channel. When the condition has been satisfied for the first 
channel in the sequence but not for the second channel in the sequence, clear the condition 
match flag for the first channel in the sequence in order to release the first channel in the 
sequence from the match state.  
2.  For channel 1, the execution count break condition can also be included in the sequential break 
conditions.  
3.  If the match conditions for the first and second channels in the sequence are satisfied within a 
significantly short time, sequential operation may not be guaranteed in some cases, as shown 
below.  
•  When the Match Condition is Satisfied at the Instruction Fetch Cycle for Both the First and 
Second Channels in the Sequence: 
 
Instruction B is 0 instruction after instruction A 
Equivalent to setting the same addresses; do 
not use this setting.  
Instruction B is one instruction after instruction A Sequential operation is not guaranteed.  
Instruction B is two or more instructions after 
instruction A 
Sequential operation is guaranteed.