Thank you for your response! A couple questions:
- How can we configure PC1 to simultaneously generate the same signal as PC0 per your demonstration logic instead of PA6? Would this be the only change needed?
// TCD0_FAULTCTRL |= TCD_CMPCEN_bm;// // enable Waveform Output C (WOC) from TCD0 to PC0
// TCD0_FAULTCTRL |= TCD_CMPDEN_bm;// // enable Waveform Output D (WOD) from TCD0 to PC1
TCD0_FAULTCTRL |= TCD_CMPCEN_bm | TCD_CMPDEN_bm; // enable both at the same time
-
Our output duty cycle will need to change from 1/2 brightness (50%) to full brightness (100%) based upon decision logic in the loop() function. Can analogWrite be used in the same fashion it is used for TCA and TCB PWM capable pins that work out of the box with the Arduino framework?
-
Why is this timer not configured in the same manner as TCA and TBC out of the box? Is there a reason the Arduino framework doesn't automatically configure this under the hood when analogWrite is used on PC0 or PC1?