CHAPTER 3 FUNCTIONAL OUTLINE
PRELIMINARY
NEC confidential and Proprietary
95
The following figure shows the functions related to the counters and the registers that implement them.
Figure 3-28. Performance Counter Related Register
31 16
15
0
Counter
15
0
CSMPT or
CSMPR register
1
Set the bit corresponding to the desired counter to 1.
31 16
15
0
(a) Monitoring a counter
All the counters are 32 bits wide. After power-on, each counter starts counting the number of events
associated with it. A counter unit consists of a counter that actually counts the number of events and a load
register in which the counter value is stored temporarily.
1. The CPU sets the bits in the CSMPT and CSMPR register corresponding to the counter whose value is to
be obtained to 1.
2. The
µ
PD98413 loads the count value at the time of the counter that has been set to 1 to the load register,
and clears the counter to 0. It also clears the bits of the CSMPT and CSMPR register to 0.
3. The CPU reads the count value from the load register. The count value that has been stored to the load
register is retained until a new value is loaded by the CAMPR register.
4. If the counter will be overflow, the counter start counting from 0 again, and the corresponding bit of the
registers is set to 1 to report the overflow to the CPU.
The CPU reads the count value.
Load
Reset the counter when loading.
Load register
Counter
Summary of Contents for NEASCOT-P65
Page 4: ...PRELIMINARY NEC confidential and Proprietary 4 MEMO ...
Page 8: ...PRELIMINARY 8 MEMO ...
Page 35: ...PRELIMINARY NEC confidential and Proprietary 35 MEMO ...
Page 135: ...CHAPTER 4 INTERFACES PRELIMINARY NEC confidential and Proprietary 135 ...
Page 166: ...CHAPTER 5 REGISTERS PRELIMINARY NEC confidential and Proprietary 166 5 2 Register summary ...
Page 167: ...CHAPTER 5 REGISTERS PRELIMINARY NEC confidential and Proprietary 167 ...
Page 168: ...CHAPTER 5 REGISTERS PRELIMINARY NEC confidential and Proprietary 168 ...
Page 303: ...CHAPTER 5 REGISTERS PRELIMINARY NEC confidential and Proprietary 303 MEMO ...
Page 317: ...CHAPTER 6 JTAG BOUNDARY SCAN PRELIMINARY NEC confidential and Proprietary 318 MEMO ...