CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ6V0UD
202
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
16-bit capture/compare registers: 16 bits
×
2 each (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 the 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 the 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 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
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...