14.3.4
Duty Measurement Control Register 2 (TWCR2)
TWCR2 controls enabling or disabling interrupt request signals, status flag indication, and duty
measurement operation.
Bit
Bit Name
Initial Value
7
ENDIE
0
6
OVIE
0
5
ENDF
0
4
OVF
0
3 to
All 0
1
Rev. 1.00, 09/03, page 404 of 704
R/W Description
R/W Duty Measurement End Interrupt Enable
When the ENDF flag in TWCR2 is set to 1, this bit
enables or disables an interrupt request by the ENDF
flag.
0: Disables an interrupt request (TWENDI) by ENDF
1: Enables an interrupt request (TWENDI) by ENDF
R/W Overflow Interrupt Enable
When the OVF flag in TWCR2 is set to 1, this bit enables
or disables an interrupt request by the OVF flag.
0: Disables an interrupt request (TWOVI) by OVF
1: Enables an interrupt request (TWOVI) by OVF
R/(W
Duty Measurement End
)*
A status flag indicating that duty measurement has
ended.
[Setting condition]
When duty measurement ends
[Clearing condition]
When 0 is written to ENDF after reading ENDF = 1
R/(W
Overflow Flag
)*
A flag indicating that a TWCNT overflow has occurred.
[Setting condition]
When TWCNT overflows from H'FF to H'00
[Clearing condition]
When 0 is written to OVF after reading OVF = 1
R/W Reserved
The initial value should not be changed.