Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
162
Добавлен:
01.03.2016
Размер:
3.56 Mб
Скачать

Timer overview

RM0016

 

 

16 Timer overview

The devices in the STM8S and STM8AF family may be equipped with up to three different timer types: Advanced control (TIM1), general purpose (TIM2/TIM3/TIM5), and basic timers (TIM4/TIM6). The timers share the same architecture, but some have additional unique features. The common timer architecture, which includes identical register mapping and common basic features, simplifies their use and makes it easier to design applications. Table 33 shows the main timer characteristics.

In STM8S and STM8AF devices with TIM1, TIM5 and TIM6, the timers do not share any resources but they can be linked together and synchronized as described in

Synchronization between TIM1, TIM5 and TIM6 timers on page 157. In STM8S and STM8AF devices with TIM1, TIM2, TIM3 and TIM4, the timers are not linked together.

This section gives a comparison of the different timer features (Table 34), a glossary of internal timer signal names (Table 35).

Section 17: 16-bit advanced control timer (TIM1) contains a full description of all the various timer modes. The other timer sections (Section 18 and Section 19) are more brief and give only specific details on each timer, its block diagram, and register description.

Table 33. Timer characteristics

Symbol

Parameter

Min

Typ

Max

Unit

 

 

 

 

 

 

tw(ICAP)in

Input capture pulse time

2

 

 

tMASTER

tres(TIM)

Timer resolution time

1

 

 

tMASTER

ResTIM

Timer resolution with 16-bit counter

 

16

 

bit

 

 

 

 

 

Timer resolution with 8-bit counter

 

8

 

bit

 

 

 

 

 

 

 

 

 

tCOUNTER

Counter clock period when internal clock is

 

1

 

tMASTER

selected

 

 

tMAX_COUNT

Maximum possible count with 16-bit counter

 

 

65,536

tMASTER

Maximum possible count with 8-bit counter

 

 

256

tMASTER

 

 

 

132/454

Doc ID 14587 Rev 9

Соседние файлы в папке Минимум документации STM8_1