Timer on Due : Route TIOBx lines

Hi all, and sorry for my bad english
I can't figure out how to routes the TIOBx lines between timers and I/O

I've tried that (for example with pin13 (LED) which is route to the line B of the first timer):

int led = 13;
PIO_Configure(g_APinDescription[led].pPort,
g_APinDescription[led].ulPinType,
g_APinDescription[led].ulPin,
g_APinDescription[led].ulPinConfiguration);

On every timers it works fine with TIOAx lines but not with TIOBx.

I've follow the method given by Sebastian Vik to configure the timer and the interrupt ( Timer Interrupts on Due - #10 by system - Arduino Due - Arduino Forum )

thank you in advance :slight_smile:

Hi, I wrote the library using timer registers and while writing I took both TIOA and TIOB into consideration as I intend to use timers for pulse generation. Most of the libraries available are focused on generating software interrupts and don't take TIOB into account. That means libraries are not written for TIOB. So please check the library you are using. You may have to edit it according to your needs. Sorry for not being specific as I am not working on DUE now.

Jankai,

You indicate that you have written a lib for the Timers -> Pin function.
Please share it here so we can see your work.
Dan