Pages: [1]   Go Down
Author Topic: Timer on Due : Route TIOBx lines  (Read 300 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ( http://forum.arduino.cc/index.php?topic=130423.msg984328#msg984328 )

thank you in advance smiley
Logged

Warangal
Offline Offline
Newbie
*
Karma: 0
Posts: 4
I am new here ..... :)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: