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