Setting/Resetting The Counter Value - Epson S1C17704 Technical Manual

Cmos 16-bit single chip microcomputer
Table of Contents

Advertisement

13.3 Setting/Resetting the Counter Value

To reset the PWM & capture timer, write 1 to the T16ERST bit (D1/T16E_CTL register). This initializes the coun-
ter to 0.
∗ T16ERST: Timer Reset Bit in the PWM Timer Control (T16E_CTL) Register (D1/0x5306)
Normally, reset the counter before starting count-up by writing 1 to this control bit.
After the counter starts counting, it will be reset by the hardware when the counter reaches compare data B.
Furthermore, any data can be set to the counter by writing it 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)
S1C17704 TECHNICAL MANUAL
13 PWM & CAPTURE TIMER (T16E)
EPSON
13-3

Advertisement

Table of Contents
loading

Table of Contents