Atmel SAM D21 reason for two output drive strengths? - Page 1
Forum section: electronics / general

author: MLXXXp
author_rank: Frequent Contributor
timestamp: August 28, 2016, 11:39:04 pm
content: The Atmel SAM D21 microcontroller series has the capability to set an output pin to two different drive strengths, controlled by the DRVSTR bit for each pin. With a 3.3V supply, low drive specifies a maximum 2.5mA sink and 2mA source. High drive specifies 10mA sink and 7mA source.Let me state that I'm aware that the I/O pins are grouped into clusters, with a maximum total source and sink current specified for each cluster. Unless it relates to the answer, assume that these limits will not be a factor.In theabsolute maximum ratingsthere are no maximum safe currents specified for the outputs.If the circuitry that's attached to an output limits the current externally, why would I want to set for low drive instead of high drive?If an output is shorted, will the current be safely limited internally? For instance, with low drive could you attach an LED directly between a pin and power or ground, without a dropping resistor, and have it safely be driven at around 2mA? Likewise, in high drive mode will current safely be limited to the specified higher values?If the two drive strengths aren't intended to provide some kind of safe current limiting, the only other reason I can think of is to somehow affect slew rates, but I've found no mention in thedatasheetabout this.

author: JoeN
author_rank: Frequent Contributor
timestamp: August 29, 2016, 02:37:34 am
content: Quote from: MLXXXp on August 28, 2016, 11:39:04 pm

author: radar_macgyver
author_rank: Frequent Contributor
timestamp: August 29, 2016, 05:24:22 am
content: Drive strength will affect the way the I/O pins interact with transmission lines. If you're using the I/O lines at high speed, you'll have two different IBIS models that you can use when designing termination networks attached to the pins. Slower drive strength will imply lower amounts of ringing and crosstalk, at the expense of speed.The DC currents are not limited by these settings. If you're driving an LED, for example, you will still need a dropper resistor. You'll also find that the LED brightness won't change regardless of the drive strength selected.

author: MLXXXp
author_rank: Frequent Contributor
timestamp: August 29, 2016, 11:31:58 am
content: Quote from: radar_macgyver on August 29, 2016, 05:24:22 amSo I was correct when I said:QuoteIt's strange that the datasheet doesn't point this out, and doesn't specify a maximum safe current in theAbsolute Maximum Ratings.Thanks @radar_macgyver

author: mubes
author_rank: Regular Contributor
timestamp: August 29, 2016, 09:11:59 pm
content: Quote from: MLXXXp on August 28, 2016, 11:39:04 pmIndeed that is what its for. The overly simplistic way I think of it is this; The drive strength defines the 'rate' at which electrons can be sourced (or sunk) through the pin. Since the pin will always have some capacitance attached to it (in the order of a few pF for a simple track) then this defines how fast you can fill (or empty) the track...and hence the speed at which the voltage will change. A lot of electrons flowing has impacts in both EMC performance and supply rail behaviour and so, in general, if you can get away with a slow slew rate, then you do so.DAVE