Closed viktoryou closed 4 months ago
It is only the "counter overflows when OF bit is zero" that can cause the interrupt. It is not a 0->1 edge of the OF that sets the interrupt pending. It is the carry out from the counter when OF is 0 that sets the interrupt pending.
From the spec,
From my understanding, it is also allowed to set the OF by software since the bit has the attribute of RW instead of RW1S. Would the behavior that setting the OF by software be regarded as another counter overflows?
Then, should a HPM Counter Overflow interrupt be generated due to setting the OF by software from zero?