CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
274
7.4.7 One-shot pulse output operation
A one-shot pulse can be output by setting the TMC01.TMC013 and TMC01.TMC012 bits to 01 (free-running timer
mode) or to 10 (clear & start mode entered by the TI010 pin valid edge) and setting the TOC01.OSPE01 bit to 1.
When the TOC01.OSPT01 is set to 1 or when the valid edge is input to the TI010 pin during timer operation,
clearing & starting of the TM01 register is triggered, and a pulse of the difference between the values of the CR010
and CR011 registers is output only once from the TO01 pin.
Caution Do not input the trigger again (setting OSPT01 to 1 or detecting the valid edge of the TI010 pin)
while the one-shot pulse is output. To output the one-shot pulse again, generate the trigger after
the current one-shot pulse output has completed.
Remarks 1.
For the alternate-function pin settings, refer to
Table 4-12 Settings When Port Pins Are Used for
Alternate Functions
.
2.
For enabling the INTTM010 and INTTM011 interrupts, refer to
CHAPTER 17 INTERRUPT/
EXCEPTION PROCESSING FUNCTION
.
Figure 7-34. Block Diagram of One-Shot Pulse Output Operation
16-bit counter
(TM01)
Output
controller
Compare register
(CR011)
Match signal
TO01 pin
Match signal
Interrupt signal
(INTTM010)
Interrupt signal
(INTTM011)
Compare register
(CR010)
Operable bits
TMC013, TMC012
Count clock
TI010 edge detection
OSPT01 bit
OSPE01 bit
Clear
Содержание ?PD703302
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO ...