No breakout pins, how to probe?

Hi,
I am using TC1 (i.e, TC 0 Channel 1) for setting up a 4 kHz PWM waveform of 50 % duty ratio. I want to trigger the ADC at its positive edges. But I also want to see all this on the scope. The ADC can only be triggered by the TC0 channels, but I think only TIOA0 on pin D2 of the arduino due can be probed, and I'm using that for something else.

Is there a way to assign this TC1 output to any of the other digital pins on the Due, or any other suggestions in general? Or please let me know if I've interpreted the Arduino Due pinout diagram incorrectly.

Thanks.

Go to the data sheet for the answers to questions like that.

Hi @anon57585045
Would you point me to the right chapter in the datasheet? I did try looking through it but couldn't figure out how to get the pwm output on to a digital pin, since it has many registers associated with it.

Sorry, I don't use the Due very much and it's a huge manual so I can't go through it for that, it would be a lot of work.

Look at Sam3x datasheet, page 1333 ADC_MR_TRGSEL.

I would heavily encourage reading the datasheets chapters on Timer Counters (ch36, pg856-879), the PIO Controller (ch618, pg618-631) and the PIO Controllers multiplexing definitions (ch9, pg40-46) for all the details you're looking for. But short answer, no, each TC channel has 2 lines, and each line is only assigned to 1 GPIO pin. There is no way to change the lines output from 1 GPIO pin to another.

Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-11057-32-bit-Cortex-M3-Microcontroller-SAM3X-SAM3A_Datasheet.pdf
Table on Contents: pg1451

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.