MSC8144E Reference Manual, Rev. 3
25-78
Freescale
Semiconductor
Debugging, Profiling, and Performance Monitoring
25.3.1.7 Performance Monitor Examples
Table 25-41 contains sample register settings for the four supported modes.
Simple event performance monitoring example
Triggering event performance monitoring example
Threshold event performance monitoring example
The settings in Table 25-40 are identical for all four examples.
For simple event counting, a non-threshold event is selected in PMLCAn[EVENT] and all other
features are disabled by clearing all register fields except for CE.
For the triggering example any event can be selected in PMLCAn[EVENT]. All other features
are disabled by clearing these register fields except for CE to allow interrupt signalling. If
PMLCBn[TRIGONSEL] is 3 and PMLCBn[TRIGOFFSEL] is 5, the counter begins and ends
counting based on the conditions in counters three and five. Furthermore, if
PMLCBn[TRIGONCNTL] is 1, the counter begins counting when PMC3 changes value.
According to the setting in PMLCBn[TRIGOFFCNTL], the counter ends counting when PMC5
overflows. Also, although the register settings for PMC5 is not shown, PMLCAn[CE] for this
counter must be cleared so that interrupt signalling is not enabled and the counter does not freeze
when it overflows.
For threshold counting, a threshold event must be specified in PMLCAn[EVENT] and threshold
value in PMLCBn[THRESHOLD].
Table 25-40. PMGC and PMLCAn Settings
Field
Setting
Reason
PMGC[FAC]
0
Counters must not be frozen.
PMGC[PMIE]
1
Performance monitor interrupts are enabled
PMGC[FCECE]
1
Counters should be frozen when an interrupt is signalled.
PMLCAn[FC]
0
Counters cannot be frozen for counting.
PMLCAn[CE]
1
Overflow condition enable is required to allow interrupt signalling.
Table 25-41. Register Settings for Counting Examples
Register
Register Field
Simple Event
Triggering
Threshold
PMGC
FAC
0
0
0
PMIE
1
1
1
FCECE
1
1
1
PMLCAn
FC
0
0
0
CE
1
1
1
EVENT
121
68
33
Summary of Contents for MSC8144E
Page 1: ...MSC8144E Reference Manual Quad Core Media Signal Processor MSC8144ERM Rev 3 July 2009 ...
Page 48: ...MSC8144E Reference Manual Rev 3 xlviii Freescale Semiconductor ...
Page 86: ...MSC8144E Reference Manual Rev 3 1 38 Freescale Semiconductor Overview ...
Page 168: ...MSC8144E Reference Manual Rev 3 3 60 Freescale Semiconductor External Signals ...
Page 242: ...MSC8144E Reference Manual Rev 3 5 26 Freescale Semiconductor Reset ...
Page 314: ...MSC8144E Reference Manual Rev 3 8 24 Freescale Semiconductor General Configuration Registers ...
Page 414: ...MSC8144E Reference Manual Rev 3 10 14 Freescale Semiconductor MSC8144E SC3400 DSP Subsystem ...
Page 452: ...MSC8144E Reference Manual Rev 3 11 38 Freescale Semiconductor Internal Memory Subsystem ...
Page 520: ...MSC8144E Reference Manual Rev 3 12 68 Freescale Semiconductor DDR SDRAM Memory Controller ...
Page 1070: ...MSC8144E Reference Manual Rev 3 21 28 Freescale Semiconductor Timers ...