05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Performance Monitors<br />

C9.4 Behavior on overflow<br />

On counter overflow:<br />

An overflow status flag is set to 1. See c9, Overflow Flag Status Register (PMOVSR) on<br />

page C10-110.<br />

An interrupt request is generated if the processor is configured to generate counter overflow<br />

interrupts. For details see c9, Interrupt Enable Set Register (PMINTENSET) on page C10-118 <strong>and</strong><br />

c9, Interrupt Enable Clear Register (PMINTENCLR) on page C10-119.<br />

The counter wraps to zero <strong>and</strong> continues counting events. Counting continues as long as the counters<br />

are enabled, regardless of any overflows.<br />

The counter always resets to zero <strong>and</strong> overflows after 32 bits of increment. To enable a more frequent<br />

generation of interrupt requests, the counters can be written to. For example, an interrupt h<strong>and</strong>ler might reset<br />

the overflowed counter to 0xFFFF0000 to generate another overflow interrupt after 16 bits of increment.<br />

Note<br />

The mechanism by which an interrupt request from the performance monitors generates an FIQ or IRQ<br />

exception is IMPLEMENTATION DEFINED.<br />

The interrupt h<strong>and</strong>ler for the counter interrupt must cancel the interrupt by clearing the overflow flag.<br />

C9-6 Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DDI 0406B

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!