ICU and timer channel?

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

trunet
Posts: 54
Joined: Fri Apr 06, 2012 7:18 pm

Re: ICU and timer channel?

Post by trunet »

Is it possible to use both channels 1 and 2 at same time on different callbacks with this patched ICU driver?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ICU and timer channel?

Post by Giovanni »

Hi,

It is not possible, the TIM timers support one ICU channel at time.

Giovanni
tamas
Posts: 1
Joined: Fri Apr 25, 2014 12:56 pm

Re: ICU and timer channel?

Post by tamas »

Dear Giovanni,

I would like to use the ICU driver on STM32F4 Discovery board. The ICU driver 1 works fine on PE9 (configured as Tim1 CH1).
But when I want to use the PB0 (configured as Tim1 CH2N) as ICU input, unfortunately it doesn't work.
Can ICU driver support the negated timer channel?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ICU and timer channel?

Post by Giovanni »

Hi,

It can't, it can use only CH1 or CH2, if I remember well it is an STM32 limit.

Giovanni
Post Reply