Setting And Resetting Counter Value - Epson S1C17001 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

13.3 Setting and Resetting Counter Value

The PWM & capture timer counter can be reset to 0 by writing 1 to the T16ERST bit (D1/T16E_CTL register).
∗ T16ERST: Timer Reset Bit in the PWM Timer Control (T16E_CTL) Register (D1/0x5306)
Normally, the counter should be reset by writing 1 to this bit before starting the count.
The counter is reset by hardware if the counter matches compare data B after the count starts.
The counter can also be set to any desired value by writing data to T16ETC[15:0] (D[15:0]/T16E_TC register).
∗ T16ETC[15:0]: Counter Data in the PWM Timer Counter Data (T16E_TC) Register (D[15:0]/0x5304)
S1C17001 TECHNICAL MANUAL
13 PWM & CAPTURE TIMER (T16E)
EPSON
143

Advertisement

Table of Contents
loading

Table of Contents