ST90158 - MULTIFUNCTION TIMER (MFT)
MULTIFUNCTION TIMER (Cont’d)
OUTPUT A CONTROL REGISTER (OACR)
R252 - Read/Write
Bits 3:2 = OUE[0:1]: OVF/UNF event bits.
These bits are set and cleared by software.
Register Page: 10
Reset value: 0000 0000
Action on TxOUTA pin on an Over-
OUE0 OUE1 flow or Underflow on the U/D coun-
ter
7
0
C0E0 C0E1 C1E0 C1E1 OUE0 OUE1 CEV 0P
0
0
1
1
0
1
0
1
Set
Toggle
Reset
NOP
Note: Whenever more than one event occurs si-
multaneously, the action taken will be the result of
ANDing the event bits xxE1-xxE0.
Bits 7:6 = C0E[0:1]: COMP0 event bits.
These bits are set and cleared by software.
Note: Whenever more than one event occurs si-
multaneously, the action taken will be the result of
ANDing the event xxE1-xxE0 bits.
Action on TxOUTA pin on a suc-
C0E0 C0E1 cessful compare of the CMP0R
register
Bit 1 = CEV: On-Chip event on CMP0R.
This bit is set and cleared by software.
0: No action
1: A successful compare on CMP0R activates the
on-chip event signal (a single pulse is generat-
ed)
0
0
1
1
0
1
0
1
Set
Toggle
Reset
NOP
Bits 5:4 = C1E[0:1]: COMP1 event bits.
These bits are set and cleared by software.
Bit 0 = OP: TxOUTA preset value.
This bit is set and cleared by software and by hard-
ware. The value of this bit is the preset value of the
TxOUTA pin. Reading this bit returns the current
state of the TxOUTA pin (useful when it is selected
in toggle mode).
Action on TxOUTA pin on a suc-
C1E1 cessful compare of the CMP1R reg-
ister
C1E0
0
0
1
1
0
1
0
1
Set
Toggle
Reset
NOP
124/199
9