solved: Sanity check please: SAMD10D13A, clocks, PWMs, and ADC/AC...

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think I have read the datasheet right but every one of these chips has its own nuances, so:

 

I believe that TCC0 can control an RGB diode (three independent duty cycles, one clock) using PA08, PA14, and PA22 but I have to ask because START offered up nonexistent pins and because it only offered up one duty cycle.

It looks like the ADC on this part only works with the bandgap reference and not with VddAna as reference?

Can the entire chip clock system be run from the LP32K --> GCLK --> FPLL?

 

 

jeff

Last Edited: Sun. Aug 2, 2020 - 12:37 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The TCC has 4 compare channels by default output on WO/0 - WO/3 and then repeated on WO/4 - WO/7, you must avoid using the same compare channel twice (PA14 WO/0 and PA22 WO/4 for example, this will be the same duty cycle from compare channel 0). You may have to set the TCC registers directly (to set duty cycle in the CC registers, i.e., I can't see START supports more than one channel with the PWM driver).

jcandle wrote:
It looks like the ADC on this part only works with the bandgap reference and not with VddAna as reference?

1/2 VDDANA e.g. should be possible (common to pair that with 2 x gain).  VDDANA itself can't be the reference voltage since the max VREF is VDDANA-0.6V.

jcandle wrote:
Can the entire chip clock system be run from the LP32K --> GCLK --> FPLL?

Yes (not that I have tested, I don't have a SAMD10 but works on other SAM).

/Lars

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks,  I have worked with D51 a bit and S70 even less.  Just starting to look at cheap and low power parts.  I will try to find a combination that does not use both 14 and 22 then...

jeff

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, 14, 15, and 8 are /0, /1, and /2...

I cannot use the AC/CMPx due to other conflicts.  It offers PA10 for CMP0 but that is Vddana and PA11 for CMP1 but that is Vssana.

I was going to route CMPx to a test pin but I can use an ISR and a GPIO.

 

 

jeff