s5pv210 datasheet_system_TIMER

2019-07-13 22:57发布

1 PULSE WIDTH MODULATION TIMER
1.1 OVERVIEW OF PULSE WIDTH MODULATION TIMER
The S5PV210 has five 32-bit Pulse Width Modulation (PWM) timers. These timers generate internal interrupts for
the ARM subsystem. In addition, Timers 0, 1, 2 and 3 include a PWM function, which drives an external I/O signal.
The PWM in timer 0 has an optional dead-zone generator capability to support a large current device. Timer 4 is
internal timers without output pins.
S5PV210有五位脉冲宽度调制(PWM)定时器。这些定时器为ARM子系统产生内部中断 。此外,定时器0、1、2和3包括一个脉宽调制函数,它驱动一个外部输入/输出信号。 在定时器0中的脉宽调制有一个可选死区发电机的能力,以支持一个大电流设备。定时器4 没有输出引脚的内部定时器。
The Timers use the APB-PCLK as source clock. Timers 0 and 1 share a programmable 8-bit prescaler that provides the first level of division for the PCLK. Timers 2, 3, and 4 share a different 8-bit prescaler. Each timer has
its own private clock-divider that provides a second level of clock division (prescaler divided by 2, 4, 8, or 16).
Alternatively, the timers can select a clock source from CMU. Timers 0, 1, 2, 3, and 4 select SCLK_PWM.
定时器的使用apb-pclk作为时钟源。定时器0和1共用一个可编程8位预分频器, 提供了第一级分频PCLK时钟。定时器2,3,4公用不同的8分频器。每个定时器有 它自己的时钟分频器,提供了一个二级时钟分频(分频器分为2,4,8,或16)。 另外,定时器的时钟源可以选择CMU。定时器0,1,2,3,和4的选择sclk_pwm。
Each timer has its own 32-bit down-counter which is driven by the timer clock. The down-counter is initially loaded from the Timer Count Buffer register (TCNTBn). If the down-counter reaches zero, the timer interrupt request is
generated to inform the CPU that the timer operation is complete. If the timer down-counter reaches zero, the
value of corresponding TCNTBn automatically reloads into the down-counter to start a next cycle. However, if the
timer stops, for example, by clearing the timer enable bit of TCONn during the timer running mode, the value of
TCNTBn is not reloaded into the counter.
每一个定时器都有它自己的32位逐减计数器,它是由定时器时钟驱动的。逐减计数器的初始化加载是 从定时器计数缓冲寄存器(TCNTBn)。如果计数器达到零,定时器中断请求是 所产生的通知的处理器告诉定时器操作完成。如果计时器计数器达到零, 相应的TCNTBn值自动重新加载到逐减计数器开始下一个循环。然而,如果 定时器停止,例如,在运行模式下,通过清除TCONn的使能位,TCNTBn不加载到计数器。
The PWM function uses the value of the TCMPBn register. The timer control logic changes the output level if down-counter value matches the value of the compare register in timer control logic. Therefore, the compare
register determines the turn-on time (or turn-off time) of a PWM output.
The TCNTBn and TCMPBn registers are double buffered to allow the timer parameters to be updated in the
middle of a cycle. The new values do not take effect until the current timer cycle completes. PWM功能使用的寄存器TCMPBn值。在定时器控制逻辑下如果逐减计数器的值和比较寄存器的值相匹配,定时器控制逻辑就会改变输出电平。 因此,比较寄存器决定了脉宽调制输出的导通时间(或关断时间)。 TCNTBn和TCMPBn寄存器是双缓冲,允许定时器参数周期中间进行更新。直到当前的计时器周期完成,新的值不起作用
2 SYSTEM TIMER
2.1 OVERVIEW OF SYSTEM TIMER
System timer provides two distinctive features, namely:
It provides 1ms time tick at any power mode except sleep mode.
Changeable interrupt interval without stopping reference tick timer.
系统定时器提供了独特的功能,即: 它提供了1ms的时间时钟除了睡眠模式的任何电源模式。 在不停止相关计时器的情况下的可变中断间隔。
3 WATCHDOG TIMER
3.1 OVERVIEW OF WATCHDOG TIMER
The Watchdog Timer (WDT) in S5PV210 is a timing device that resumes the controller operation after
malfunctioning due to noise and system errors. WDT can be used as a normal 16-bit interval timer to request
interrupt service. The WDT generates the reset signal.
The difference between WDT and PWM timer is that WDT generates the reset signal.
看门狗定时器(WDT)在S5PV210是一个计时装置,用于恢复由于噪声和系统故障后的控制器的运行 看门狗可以作为一个正常的16位内部定时器去请求中断服务。WDT产生复位信号。 看门狗定时器、PWM定时器的区别是,WDT产生复位信号。
3.2 KEY FEATURES OF WATCHDOG TIMER
Supports Normal interval timer mode with interrupt request
Activates Internal reset signal if the timer count value reaches 0 (Time-out).
Supports Level-triggered Interrupt mechanism

用中断请求支持正常的间隔定时模式 如果计时器计数值达到0(超时),激活内部复位信号。 支持触发中断机制
4 REAL TIME CLOCK (RTC)
4.1 OVERVIEW OF REAL TIME CLOCK
The Real Time Clock (RTC) unit can operate using the backup battery while the system power is off. Although
power is off, backup battery can store the time by Second, Minute, Hour, Day of the week, Day, Month, and Year
data. The RTC unit works with an external 32.768 kHz crystal and performs the function of alarm
实时时钟(RTC)单元可以使用备用电池,当系统电源关闭。 虽然电源关闭,后备电池可通过秒、分、小时、日、日、月、年等时间存储数据。 RTC单元与外部32.768 kHz晶体具有报警功能。 .

4.2 KEY FEATURES OF REAL TIME CLOCK
Supports BCD Number, that is Second, Minute, Hour, Day of the week, Day, Month, and Year.
Supports Leap Year Generator
Supports Alarm Function, that is ,Alarm-Interrupt or Wake-up from power down modes (idle, deep idle, stop,
deep stop, and sleep)
Supports Tick Counter Function, that is Tick-Interrupt or Wake-up from power down modes (idle, deep idle,
stop, deep stop, and sleep)
Supports Independent Power Pin (RTCVDD)
Supports millisecond tick time interrupt for RTOS kernel time tick .

•支持BCD码,这是第二,分钟,小时,天,天,月,年。 支持跃进发生器 支持报警功能,即报警中断或从掉电模式中唤醒(空闲、深度空闲、停止, 深度停止,睡眠) 支持勾选计数器的功能,即在掉电模式唤醒或中断(空闲、深度空闲的时候中断或唤醒,停止,停止,睡觉) •支持独立的电源引脚(rtcvdd) •支持毫秒滴答中断时间的实时操作系统内核时间滴答。