09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

General-purpose timers (TIM9 to TIM14) <strong>RM0090</strong><br />

Table 78. Output control bit for standard OCx channels<br />

CCxE bit OCx output state<br />

0 Output disabled (OCx=’0’, OCx_EN=’0’)<br />

1 OCx=OCxREF + Polarity, OCx_EN=’1’<br />

Note: The states of the external I/O pins connected to the standard OCx channels depend on the<br />

state of the OCx channel and on the GPIO registers.<br />

16.5.9 TIM9/12 counter (TIMx_CNT)<br />

Address offset: 0x24<br />

Reset value: 0x0000 0000<br />

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

CNT[15:0]<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bits 15:0 CNT[15:0]: Counter value<br />

16.5.10 TIM9/12 prescaler (TIMx_PSC)<br />

Address offset: 0x28<br />

Reset value: 0x0000<br />

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

PSC[15:0]<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bits 15:0 PSC[15:0]: Prescaler value<br />

The counter clock frequency CK_CNT is equal to f CK_PSC / (PSC[15:0] + 1).<br />

PSC contains the value to be loaded into the active prescaler register at each update event.<br />

16.5.11 TIM9/12 auto-reload register (TIMx_ARR)<br />

Address offset: 0x2C<br />

Reset value: 0x0000 0000<br />

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

ARR[15:0]<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bits 15:0 ARR[15:0]: Auto-reload value<br />

ARR is the value to be loaded into the actual auto-reload register.<br />

Refer to the Section 16.4.1: Time-base unit on page 481 for more details about ARR update<br />

and behavior.<br />

The counter is blocked while the auto-reload value is null.<br />

509/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!