Fujitsu FR81S User Manual

Page of 2342
CHAPTER 23: 32-BIT INPUT CAPTURE 
 
 
7. Q&A 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER
 : 32-BIT INPUT CAPTURE 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
30 
7.6.  How to Measure the Pulse Width of the Input Signal? 
This section shows how to measure the pulse width of the input signal. 
The setting example in ch.4 is shown. 
(1) The operation mode is set to the cycle measurement mode. (MSCL.MSC4: 1) 
(2) Both edges are specified for the edge detection. (ICSL.EG41-40: 11
B
(3) The interrupt request enabled bit is set to enable. (ICSL.ICE4: 1) 
(4) The interrupt request flag is cleared. (ICSL.ICP4: 0) 
The cycle measurement data is stored to MSCY4 and the pulse width measurement data is stored in input 
capture data register IPCP4. 
MB91520 Series
MN705-00010-1v0-E
905