CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
233
(2) Capture/compare control register 01 (CRC01)
The CRC01 register is the register that controls the operation of the CR010 and CR011 registers.
Changing the value of the CRC01 register is prohibited during operation (when the TMC01.TMC013 and
TMC01.TMC012 bits = other than 00).
This register can be read or written in 8-bit or 1-bit units.
Reset sets this register to 00H.
After reset: 00H R/W
Address: CRC01 FFFFF618H
7 6 5 4 3 2 1 0
CRC01
0 0 0 0 0
CRC012
CRC011
CRC010
CRC012
CR011 register operating mode selection
0
Operates as compare register
1
Operates as capture register
CRC011
CR010 register capture trigger selection
0
Captures on valid edge of TI011 pin
1
Captures on valid edge of TI010 pin by reverse phase
Note
The valid edge of the TI011 and TI010 pin is set by the PRM01 register.
If PRM01.ES101 and PRM01.ES100 are set to 11 (both edges) when CRC011 is 1, the valid edge of the
TI010 pin cannot be detected.
CRC010
CR010 register operating mode selection
0
Operates as compare register
1
Operates as capture register
If TMC013 and TMC012 are set to 11 (clear & start mode entered upon a match between TM01 and
CR010), be sure to set the CRC010 bit to 0.
Note
When the valid edge is detected from the TI011 pin, the capture operation is not performed but the
INTTM010 signal is generated as an external interrupt signal.
Caution To ensure that the capture operation is performed properly, the capture trigger requires a
pulse two cycles longer than the count clock selected by the PRM01 or SELCNT1 register.
Содержание ?PD703302
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO ...