Examples - Freescale Semiconductor MPC850 User Manual

Mpc850 family integrated communications microprocessor
Table of Contents

Advertisement

Watchpoints and Breakpoints Support

44.2.4.2.1 Examples

The following examples show programming options for several search criteria:
• Example 1
Looking for:
Data size: Byte.
Address: 0x00000003.
Data value: Greater than 0x07 and less than 0x0C.
Programming options:
One L-address comparator = 0x00000003 and program for equal.
One L-data comparator = 0x00000007 and program for greater than.
One L-data comparator = 0x0000000C and program for less than.
Both byte masks = 0xE.
Both L-data comparators program to byte mode.
Result: The event will be correctly detected, regardless of the load/store instruction
the compiler chooses for this access.
• Example 2
Looking for:
Data size: Half-word.
Address: Greater than 0x00000000 and less than 0x0000000C.
Data value: Greater than 0x4E204E20 and less than 0x9C409C40.
Programming option:
One L-address comparator = 0x00000000 and program for greater than.
One L-address comparator = 0x0000000C and program for less than.
One L-data comparator = 0x4E204E20 and program for greater than.
One L-data comparator = 0x9C409C40 and program for less than.
Both byte masks = 0x0.
Both L-data comparators program to half-word mode.
Result: The event will be correctly detected as long as the compiler does not use a
load/store instruction with data size of byte.
• Example 3
Looking for:
Data size: Half-word.
Address: Greater than or equal to 0x00000002 and less than 0x0000000E.
Data value: Greater than 0x4E204E20 and less than 0x9C409C40.
Programming option:
One L-address comparator = 0x00000001 and program for greater than.
One L-address comparator = 0x0000000E and program for less than.
One L-data comparator = 0x4E204E20 and program for greater than.
One L-data comparator = 0x9C409C40 and program for less than.
Both byte masks = 0x0.
MPC850 Family User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpc850deMpc850dslMpc850sr

Table of Contents