10.2
Block Diagram
This section shows the PWC block diagram.
■ PWC Block Diagram
PWCR0/PWCR1 read
Measurement end interrupt request
Overflow interrupt request
15
/
CHAPTER 10 PWC (Pulse Width Count: Pulse Width Measurement)
Figure 10.2-1 PWC Block Diagram
Error detection
16
/
PWCR0/PWCR1
/
16
/ 16
Reload
Data transfer
16-bit up counter
Overflow
Control circuit
End edge
Start edge
selection
selection
Measurement
start edge
Edge
detection
Measurement
end edge
ERR
PWCSR0/PWCSR1
ERR
/ 16
Clock
Clear
Count enable
Division
ON/OFF
PIS1/PSI0
CKS1/CKS0
Divide ratio selection
2
/
PDIVR0/PDIVR1
Internal clock
(machine clock /4)
2
2
Clock
divider
3
2
CKS1/
CKS0
Divider clear
Input
PWI0
waveform
PWI1
comparator
8-bit
divider
185