09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>RM0090</strong> General-purpose timers (TIM2 to TIM5)<br />

15.4.20 TIM5 option register (TIM5_OR)<br />

Address offset: 0x50<br />

Reset value: 0x0000<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

TI4_RMP<br />

Reserved<br />

rw rw<br />

Reserved<br />

Bits 15:8 Reserved, must be kept at reset value.<br />

Bits 7:6 TI4_RMP: Timer Input 4 remap<br />

Set and cleared by software.<br />

00: TIM5 Channel4 is connected to the GPIO: Refer to the Alternate function mapping table<br />

in the datasheets.<br />

01: the LSI internal clock is connected to the TIM5_CH4 input for calibration purposes<br />

10: the LSE internal clock is connected to the TIM5_CH4 input for calibration purposes<br />

11: the RTC wakeup interrupt is connected to TIM5_CH4 input for calibration purposes.<br />

Wakeup interrupt should be enabled.<br />

Bits 5:0 Reserved, must be kept at reset value.<br />

15.4.21 TIMx register map<br />

TIMx registers are mapped as described in the table below:<br />

31<br />

Table 76. TIM2 to TIM5 register map and reset values<br />

Offset Register<br />

0x00<br />

0x04<br />

0x08<br />

0x0C<br />

0x10<br />

30<br />

29<br />

28<br />

27<br />

26<br />

25<br />

24<br />

23<br />

22<br />

21<br />

20<br />

19<br />

18<br />

17<br />

16<br />

15<br />

14<br />

13<br />

12<br />

11<br />

10<br />

9<br />

8<br />

7<br />

6<br />

5<br />

4<br />

3<br />

2<br />

1<br />

0<br />

DIR<br />

TIMx_CR1<br />

Reserved<br />

CKD<br />

[1:0]<br />

CMS<br />

[1:0]<br />

Reset value 0 0 0 0 0 0 0 0 0 0<br />

TI1S<br />

TIMx_CR2<br />

Reserved<br />

MMS[2:0]<br />

Reserved<br />

Reset value 0 0 0 0 0<br />

ETP<br />

TIMx_SMCR<br />

Reserved<br />

ETPS<br />

[1:0]<br />

ETF[3:0] TS[2:0] SMS[2:0]<br />

Reset value 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0<br />

TIMx_DIER<br />

ECE<br />

Reserved TDE<br />

Reset value 0 0 0 0 0 0 0 0 0 0 0 0 0<br />

TIMx_SR<br />

Reserved<br />

Reset value 0 0 0 0 0 0 0 0 0 0<br />

TG<br />

0x14<br />

TIMx_EGR<br />

Reserved<br />

Reset value 0 0 0 0 0 0<br />

TIMx_CCMR1<br />

Output Compare<br />

mode<br />

Reserved<br />

OC2M<br />

[2:0]<br />

CC2S<br />

[1:0]<br />

OC1M<br />

[2:0]<br />

CC1S<br />

[1:0]<br />

0x18<br />

Reset value<br />

TIMx_CCMR1<br />

Input Capture<br />

mode<br />

Reserved<br />

0 0 0 0<br />

IC2F[3:0]<br />

0 0<br />

IC2<br />

PSC<br />

[1:0]<br />

0 0<br />

CC2S<br />

[1:0]<br />

0 0 0 0<br />

IC1F[3:0]<br />

0 0<br />

IC1<br />

PSC<br />

[1:0]<br />

0 0<br />

CC1S<br />

[1:0]<br />

Reset value 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0<br />

OC2CE<br />

COMDE<br />

CC4DE<br />

CC4OF<br />

CC3OF<br />

CC3DE<br />

CC2DE<br />

OC2PE<br />

OC2FE<br />

CC2OF<br />

CC1OF<br />

CC1DE<br />

UDE<br />

Doc ID 018909 Rev 3 476/1416<br />

Reserved<br />

ARPE<br />

MSM<br />

Reserved<br />

TIE<br />

OC1CE<br />

TIF<br />

Reserved<br />

CC4IE<br />

Reserved<br />

CC4IF<br />

Reserved<br />

CC4G<br />

OPM<br />

URS<br />

CCDS<br />

Reserved<br />

CC3IE<br />

CC2IE<br />

CC3IF<br />

CC2IF<br />

CC3G<br />

CC2G<br />

OC1PE<br />

OC1FE<br />

UDIS<br />

CEN<br />

CC1IE<br />

UIE<br />

CC1IF<br />

UIF<br />

CC1G<br />

UG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!