
Preliminary W79E225A/227A Data Sheet
Publication Release Date: December 14, 2007
- 40 -
Revision A2.0
Continued
BIT
NAME
FUNCTION
1-0
CCLD.1-0
Reload trigger select.
CCLD1 CCLD0
0
0
1
1
Description
0
1
0
1
Timer 3 overflow (default)
Reload by capture 0 block
Reload by capture 1 block
Reload by capture 2 block
CAPTURE CONTROL 1 REGISTER
Bit:
7
6
5
4
3
2
1
0
-
-
ENF2
ENF1
ENF0
CPTF2
CPTF1/
CPTF0
Mnemonic: CAPCON1
Address: A4h
BIT
7-6
5
4
3
2
NAME
FUNCTION
-
ENF2
ENF1
ENF0
CPTF2
Reserved.
Enable filter for capture input 2.
Enable filter for capture input 1.
Enable filter for capture input 0.
Input capture/reload 2 interrupt flag.
Input Capture 2 flag share the same bit with DIRF flag.
IC mode
- Input capture/reload 1 interrupt flag.
QEI mode
- Direction changed interrupt flag. Bit is set by hardware when
direction index (DIR) changes state and direction change interrupt is
requested if it is enabled. DIRF is cleared by software.
Input Capture
0
flag share the same bit with QEI flag.
IC mode
– Input capture/reload 0 interrupt flag.
QEI mode
- QEI interrupt flag.
1. In free-counting mode, if Pulse Counter overflows or underflows.
2. In compare-counting mode, if Pulse Counter overflows from Maximum
Count to zero or underflows from zero to Maximum Count.
1
CPTF1/DIRF
0
CPTF0/QEIF
PORT 4
Bit:
7
6
5
4
3
2
1
0
-
-
-
-
P4.3
P4.2
P4.1
P4.0
Mnemonic: P4
Address: A5h
BIT
7-4
3-2
NAME
FUNCTION
-
P4
Reserved.
GPIO.
GPIO. Alternate function T2EX/IC2 for Timer 2 external trigger/Input Capture 2
respectively.
GPIO. Alternate function STADC. External start ADC trigger input.
1
P4
0
P4