Breakpoints
F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B
23
When
address mask
is selected, for each bit set in
address mask
field, that bit from
break address
is compared
for the exact match with the corresponding bit of address hold by Program Counter i.e. Program will stop
executing due to hardware break point whenever following condition is met…
(Address hold by PC) & (Address Mask) =(Break address) & (Address Mask)
For example, if we set
Code Breakpoint at address H’ F802C6 and address Mask H’FFFFF0 and when program
is executed it will stop at all the address (where there is valid instruction) from H’ F802C0 to H’ F802CF
Similarly when we select Pass count, program will halt executing at hardware code break point when program
counter executes instruction at the address selected in the
break address
field, as many numbers of times as
that is selected by
Pass count
.
For example, if we set code break point at
Break Address
H’DE1015 and select Pass count equal to D’5. When
program is run, it halts due
to hardware code break point when value of variable ‘i’ equal to D’5