IP2022 Data Sheet
www.ubicom.com
99
7.1.22 TxCFG2H Register
Timer 1 and 2 configuration.
CAP2IF
or
PWM mode: Compare 2 interrupt flag (i.e.
timer value matched TxCMP2 value)
CMP2IF
Capture/Compare mode: Capture 2 flag
(i.e. TxCPI2 input triggered)
0 = No capture/compare 2 event
has occurred since this bit was
last cleared
1 = Capture/compare 2 event has
occurred
CAP1IF
Capture 1 interrupt flag
0 = No capture 1 event has
occurred since this bit was last
cleared
1 = Capture 1 event has occurred
CMP1IF
Compare 1 interrupt flag
0 = No compare 1 event has
occurred since this bit was last
cleared
1 = Compare 1 event has occurred
Name
Description
7
6
5
4
3
0
0
0
0
0
PS3:0
Name
Description
PS3:0
Timer prescaler divisor
0000 = 1
0001 = 2
0010 = 4
0011 = 8
0100 = 16
0101 = 32
0110 = 64
0111 = 128
1000 = 256
1001 = 512
1010 = 1024
1011 = 2048
1100 = 4096
1101 = 8192
1110 = 16384
1111 = 32768