English
Language : 

W79E225A_08 Datasheet, PDF (131/203 Pages) Winbond – 8-bit Microcontroller
Preliminary W79E225A/226A/227A Data Sheet
The trigger option is programmable through CCTx [1:0] (CAPCON0). It supports positive edge,
negative edge and both edge triggers. Each capture module consists of an enable, ICEN0~2. [Note:
x=0, 1, 2 for capture 0, 1, 2 block].
Capture blocks are triggered by external pins IC0, IC1 and IC2, respectively. If ICENx is enabled, each
time the external pin triggers, the content of the free running 16 bits counter, TL3 & TH3 (from Timer 3
block) will be captured/transferred into the corresponding capture registers, CCLx and CCHx. This
action also causes the corresponding CPTFx flag bit in CAPCON1 to be set, and generate an interrupt
(if enabled by ECPTF bit in SFR, EIE1.4). The CPTF0-2 flags are logical “OR” to the interrupt module.
Input Capture 0~2 share one interrupt named Capture Interrupt. Flag is set by hardware and cleared
by software.
Setting the T3CR bit (T3MOD.3), will allow hardware to reset timer 3 automatically after the value of
TL3 and TH3 have been captured. Priority is given to T3CR to reset counter after capture the timer
value into the capture register. When CMP/RL3 = 0 (reload mode, with T3CR=0 and ENLD=1),
RCAP3 will be loaded into Timer 3 counter upon overflow. While the rest of the condition of
combination of setting for T3CR and ENLD will reset the counter to 0000H.
$$5<>
$BQUVSF#MPDL
8JUI
4DINJUU
5SJHHFS
*$
&/' <>
/PJTF
'JMUFS
<>
<>
*$&/
<>
$$- $$)
$15'
$BQUVSF
#MPDL
$BQUVSF
#MPDL
/PUF
*$
*$
$15'
$15'
'PTD
%*7CZ
   
$15'
$15'
$15'
5$3
5-
$$%*7<>
53
3FTFU
5JNFS
5)
$.13-
5.'

5'

507'
$15'
$15'
$15'

 &/-%
 $.13-

3$"1-
5.'

$.13-
3$"1)
$$-%<>
5JNFS#MPDL
Note:TOVF3 = Timer 3 overflow
TMF3 = Internal Timer 3 Flag signal.
Input Capture 2 block (refer to Figure 15-3).
Figure 15-2: Timer3/Capture/Compare/Reload modules
- 131 -
Publication Release Date: April 15, 2008
Revision A4.0