Howdy again all,
I'm in the process of trying to figure out the SAMD11C14 and ASF, and I'm running into a problem configuring the TCC timer for 4 channels of PWM output.
Based on the datasheet and the examples, I *think* I'm doing the right things to config the timer block and wgm mode (I am seeing PWM come out, and I can change the clocking and resolution to obvious effect), but the output I'm getting is weird.
Here's how I have the TCC set up:
Module is TCC0
Compare/match channel 0 is assigned to output "A" which is coming out on W04 and physically on PA08
Compare/match channel 1 is assigned to output "B" which is coming out on W05 and physically on PA09
Compare/match channel 1 is assigned to output "C" which is coming out on W00 and physically on PA14
Compare/match channel 1 is assigned to output "D" which is coming out on W01 and physically on PA15
Here's what I'm seeing when I set a match value on a given channel, and leave the rest at zero:
Channel A -> PWM output on A and C
Channel B -> PWM output on B and D
Channel C -> no output
Channel D -> no output
Based on the results I'm getting I think problem exists between TCC and output pins, probably related to the pin muxer.
I've attached a copy of the code I'm using (a hacked up ASF example) and the schematic; this may very well be simply a case of me not seeing an obvious error, so just another set of eyes would be appreciated.
Thanks for any input on this!