EAGLE
PRELIMINARY
Ver 1.3
3.24
Timer / PWM / Capture
3.24.1 Introduction
EAGLE has a 4-channel Timer/Counter which includes the basic PWM and Capture functions.
3.24.2 10bit Pre-scale
Pre-scale select Main clock source and generates 2 ~ 1024 times divided clock by using 10bit Counter.
Figure 3-42 Pre-scale Block Diagram
3.24.3 Timer/Counter
Timer/Counter issues an interrupt when the internal counter reaches the same value as the value set by user in timer
counter register value. The internal counter is always initialized or reset to 0x0000 and increases by 1 count per clock divided
by Pre-scale. Once the internal clock reaches the timer counter register value, it is reset back to 0x0000.
If Timer counter value is ‘N’, interrupt period is ‘N’. The 16-bit counter generates the interrupt by counting 0 ~ N-1
periodically.
Interrupt assertion duration is determined by the Pre-scale value and timer counter value. The longest interrupt duration is
1/32,768 X 1024 X 2^32 = 134217728 Sec for 32.768 KHz clock and 1/100,000,000 X 1024 X 2^32 = 43980.46511104 Sec
if 100 MHz clock is used.
3.24.4 PWM
PWM (Pulse Width Modulation) peripheral generates pulse based on the pre-programmed duty cycle and period value.
This function operates according to Pre-scale clock and PWM period register value.
The PWM output pulse is inverted each time the 16-bit counter counts up to the value specified in PWM Duty register or
PWM Period register.
Beijing Peak Microtech Co.Ltd.
CONFIDENTIAL
184