Input/Output Pins; Clock Settings; T16A3 Operating Clock - Epson S1C17F13 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

16 16-BIT PWM TIMERS (T16A3)
T16A3
CLK_T16A0
EXCLx
Clock
generator
CLK_T16An
EXCLy
16.2

Input/Output Pins

Table 16.2.1 lists the T16A3 pins.
Pin name
EXCLm
TOUTAn/CAPAn,
TOUTBn/CAPBn
If the port is shared with the T16A3 pin and other functions, the T16A3 input/output function must be assigned to
the port before activating T16A3. For more information, refer to the "I/O Ports" chapter.
16.3

Clock Settings

16.3.1

T16A3 Operating Clock

When using T16A3 Ch.n, the T16A3 Ch.n operating clock CLK_T16An must be supplied to T16A3 Ch.n from the
clock generator. The CLK_T16An supply should be controlled as in the procedure shown below.
1. Enable the clock source in the clock generator if it is stopped (refer to "Clock Generator" in the "Power Supply,
Reset, and Clocks" chapter).
When an external clock is used, select the EXCLm pin function (refer to the "I/O Ports" chapter).
2. Set the following T16AnCLK register bits:
- T16AnCLK.CLKSRC[1:0] bits (Clock source selection)
- T16AnCLK.CLKDIV[3:0] bits (Clock division ratio selection = Clock frequency setting)
16-2
Counter
block Ch.0
PRUN
HCM
TRMD
PRESET
Counter
T16ATC[15:0]
MODEN
DBRUN
CLKDIV[3:0]
CLKSRC[1:0]
MULTIMD
Counter
block
Ch.n
Figure 16.
1.1 T16A3 Configuration
Table 16.
2.1 List of T16A3 Pins
I/O*
Initial status*
I
I (Hi-Z)
O or I
O (Low)
Seiko epson Corporation
Comparator/capture
block Ch.0
CCABCNT[1:0]
Compare A/Capture A register
CCA[15:0]
Compare A
CCAMD
buffer
CBUFEN
Comparator
Compare A
circuit
signal
Capture
circuit
Comparator
Compare B
circuit
signal
CBUFEN
CAPBTRG[1:0]
CAPATRG[1:0]
Compare B
CCBMD
buffer
Compare B/Capture B register
CCB[15:0]
Comparator/capture
block
Ch.n
External clock input
TOUTA/B signal output (in comparator mode) or
capture A/B trigger signal input (in capture mode)
* Indicates the status when the pin is configured for T16A3.
CAPBOWIE
CAPAOWIE
CAPBIE
CAPAIE
CMPBIE
CMPAIE
Interrupt
To interrupt
control circuit
controller
CAPBOWIF
CAPAOWIF
CAPBIF
CAPAIF
CMPBIF
CMPAIF
TOUT
control circuit
TOUTBMD[1:0]
TOUTBINV
TOUTAMD[1:0]
TOUTAINV
To interrupt
controller
Function
S1C17F13 TeChniCal Manual
(Rev. 1.0)
CAPA0
CAPB0
TOUTA0
TOUTB0
CAPAn
CAPBn
TOUTAn
TOUTBn

Advertisement

Table of Contents
loading

Table of Contents