Bassic cmos output drive characteristics -
As you can see the more current you source out of the SAM3x the higher the voltage drop acxross
the output P channel device.
Same is true for sink current, but it generally is lower drop for same current. Has to do with source
bulk effect on PMOS side.
Generally it is best to drive the LED to ground rather than thru its supply rail, eg.
Vdd > LED Rlimit > LED > Pin rather than Pin > LED Rlimit > LED > Vss
The problem with dropping R2 is that if you draw too much current from buffer, internally
its supply rail droops in V and can introduce logic errors because you violate noise margin
for CMOS logic. Simple buffers not a problem, ones with more complex logic suffer the effect.
Processor I/O pins are complex logic architectures.
Most modern processors specify the max current on all pins in a port or I/O ring that is allowed because
of this issue.
Regards, Dana.