cancel
Showing results for 
Search instead for 
Did you mean: 

TIM3 and I2C1

tran
Associate II
Posted on November 13, 2009 at 12:06

TIM3 and I2C1

3 REPLIES 3
tran
Associate II
Posted on May 17, 2011 at 13:29

Hello,

We are using STM32101R6T6

We have a probleme when we want to use TIM3 channel 2 and I2C1 in the same time.

The objective is to have a signal PWM on the PB5 and use TIM3 , I2C in the same time.

The problem is : when i active the clock of I2C ( on the APB1)==> the PWM on PB5 isn't PWM anymore.

When I2C1 clock is inactive==> the PWM on PB5 is present.

The datasheet of R6 said : PB5= I2C_SMBAI ( Alternate functions defaut)

and PB5= TIM3_CH2/SPI_MOSI ( Alternate functions Remap).

And i'm sure that the remap was done.

Are there any problem when we want to use like this? why was the pwm lost?

Does somone know the problem?

Thank all very much,

tomas23
Associate II
Posted on May 17, 2011 at 13:29

Check errata sheet, chapter 2.4.5:

Workaround

To avoid this conflict, TIM3_CH2 can only be used in input mode.

tran
Associate II
Posted on May 17, 2011 at 13:29

Oh, i saw it.

Thx you very much