Epson S1C17624 Technical Manual page 134

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

12
16-bit PWM Timer (T16E)
12.1
T16e Module Overview
The S1C17624/604/622/602/621 includes a 16-bit PWM timer module (T16E) with one timer channel (Ch.0).
The features of T16E are listed below.
• 16-bit up counter with a comparator
• The counter value can be compared with two specified comparison values by the comparator.
• The comparison results generate two different types of interrupts.
• Can generate inverted and non-inverted PWM signals from the comparison results and output them outside the
IC.
• Supports event counter function using an external clock.
Figure 12.1.1 shows the T16E module configuration.
EXCL3 (Ch.0)
Count clock select
Divider
PCLK
CLG
(1/1–1/16K)
Fine mode select
Inverted output
Initial output level select
Clock output enable
TOUT3 (Ch.0)
TOUTN3 (Ch.0)
To ITC
The T16E module includes a 16-bit up-counter (T16E_TCx register), two 16-bit compare data registers (T16E_CAx
and T16E_CBx registers), and the corresponding buffers.
The 16-bit counter value can be configured, reset to 0, and read via software. The counter counts up with a divided
PCLK clock or an external signal input from the EXCLx pin.
The compare data A and B registers hold data for comparison against the up-counter contents. Data can be read or
written directly from/to the compare data registers. The compare data buffers enable loading to the compare data
registers of comparison values set when the counter is reset via software or by the compare B match signal.
Software can select either the compare data register or the buffer for writing comparison values.
If the counter value matches the contents of each compare data register, the comparator outputs a signal to control
interrupts and output signals. These registers can be used to program the interrupt occurrence cycle and output
clock frequency and duty ratio.
notes: • The letter 'x' in register names refers to a channel number (0).
Example: T16E_CTLx register
Ch.0: T16E_CTL0 register
• The letter 'x' in EXCLx, TOUTx, and TOUTNx pins refers to a signal number (Ch.0 = 3).
Ch.0: EXCL3, TOUT3, TOUTN3
S1C17624/604/622/602/621 TeChniCal Manual
CBUFEN
Compare buffer enable
T16ERST
Timer reset
T16ERUN
Run/stop control
CLKSEL
Input clock select
T16EDF[3:0]
SELFM
INVOUT
INITOL
OUTEN
control circuit
PWM output
Interrupt
Compare A interrupt request
Compare B interrupt request
control circuit
Figure 12.
1.1 T16E Module Configuration
Seiko epson Corporation
Compare A
signal
Count
control circuit
Compare B
signal
Output
CAIE
Compare A interrupt enable
CBIE
Compare B interrupt enable
12 16-BiT PWM TiMeR (T16e)
16-bit PWM timer (T16E) Ch.x
Compare data A buffer
(T16E_CAx)
Compare data A register
T16E_CAx
Comparator
Up counter
T16E_TCx
Comparator
Compare data B register
T16E_CBx
Compare data B buffer
(T16E_CBx)
12-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17604S1c17622S1c17602S1c17621

Table of Contents