The Wayback Machine - https://web.archive.org/web/20250520182126/https://github.com/adafruit/circuitpython/issues/4701
Skip to content

samd21: Correct DAC maximum speed #4701

Closed
@jeremyherbert

Description

@jeremyherbert

Hi,

This is a really esoteric issue, but I was looking through the code and found this line:

// SAMD21: This clock should be <= 12 MHz, per datasheet section 47.6.3.

However, in the datasheet here: https://ww1.microchip.com/downloads/en/DeviceDoc/SAM_D21_DA1_Family_DataSheet_DS40001882F.pdf

Section 47.6.3 does not exist (section 47.6 does, but that is the document revision history which doesn't have anything relevant). There is however a section 37.6, which contains Table 37.7 - "Maximum Peripheral Clock Frequencies". But this table states that the maximum DAC clock is 350kHz, not 12MHz. FWIW the table also states the maximum ADC clock frequency wrong as well, so unsure what I should be believing...

Could you please correct this comment to indicate where the 12MHz came from?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions