CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ4V0UM
176
(5) Square wave output
Can output a square wave of any frequency.
(6) One-shot pulse output
Can output a one-shot pulse with any output pulse width.
7.1.3 Configuration
Timers 0 and 1 include the following hardware.
Table 7-1. Configuration of Timers 0 and 1
Item
Configuration
Timer registers
16 bits
×
2 (TM0, TM1)
Registers
Capture/compare registers: 16 bits
×
2 (CRn0, CRn1)
Timer outputs
2 (TO0, TO1)
Control registers
16-bit timer mode control registers 0, 1 (TMC0, TMC1)
Capture/compare control registers 0, 1 (CRC0, CRC1)
16-bit timer output control registers 0, 1 (TOC0, TOC1)
Prescaler mode registers n0, n1 (PRMn0, PRMn1)
(1) 16-bit timer registers 0, 1 (TM0, TM1)
TMn is a 16-bit read-only register that counts count pulses.
The counter is incremented in synchronization with the rising edge of an input clock. If the count value is read
during operation, input of the count clock is temporarily stopped, and the count value at that point is read. The
count value is reset to 0000H in the following cases:
<1> At RESET input
<2> If TMCn3 and TMCn2 are cleared
<3> If valid edge of TIn0 is input in the clear & start mode entered by inputting the valid edge of TIn0
<4> If TMn and CRn0 match each other in the clear & start mode entered upon a match between TMn and
CRn0
<5> If OSPTn is set or if the valid edge of TIn0 is input in the one-shot pulse output mode
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...