
EM358x
192
Rev. 0.4
Note:
In this example both timers are initialized before starting by setting their respective TIM_UG bits. Both
counters starts from 0, but an offset can be inserted between them by writing any of the counter registers
(TIMx_CNT). The master/slave mode inserts a delay between CNT_EN and CK_PSC on Timer 1.
Figure 10-36. Triggering Timer 1 and 2 with Timer 1 TI1 Input
10.3.16 Timer Signal Descriptions
Table 10-4. Timer Signal Descriptions
Signal
Internal/
External
Description
CK_INT
Internal
Internal clock source: connects to EM358x peripheral clock (PCLK) in internal clock mode.
CK_PSC
Internal
Input to the clock prescaler.
ETR
Internal
External trigger input (used in external timer mode 2): a clock selected by TIM_EXTRIGSEL in
TIMx_OR.
ETRF
Internal
External trigger: ETRP after filtering.
ETRP
Internal
External trigger: ETR after polarity selection, edge detection and prescaling.
ICy
External Input capture or clock: TIy after filtering and edge detection.
ICyPS
Internal
Input capture signal after filtering, edge detection and prescaling: input to the capture register.
ITR0
Internal
Internal trigger input: connected to the other timer’s output, TRGO.
OCy
External Output compare: TIMxCy when used as an output. Same as OCyREF but includes possible polarity
inversion.
OCyREF
Internal
Output compare reference: always active high, but may be inverted to produce OCy.
PCLK
External Peripheral clock connects to CK_INT and used to clock input filtering. Its frequency is 12 MHz if
using the 24 MHz crystal oscillator and 6 MHz if using the 12 MHz RC oscillator.
TIy
Internal
Timer input: TIMxCy when used as a timer input.
TIyFPy
Internal
Timer input after filtering and polarity selection.
TIMxCy
Internal
Timer channel at a GPIO pin: can be a capture input (ICy) or a compare output (OCy).
TIMxCLK
External Clock input (if selected) to the external trigger signal (ETR).
TIMxMSK
External Clock mask (if enabled) AND’ed with the other timer’s TIMxCLK signal.
TRGI
Internal
Trigger input for slave mode controller.
Summary of Contents for EMBER EM358 series
Page 2: ...EM358x 2 Rev 0 4 ...
Page 7: ...EM358x Rev 0 4 7 ...