The rise-time from a square wave from one of the digital pins I'm measuring is around 10nsec with a 50 Ohm input impedance on the Oscilloscope.
I working on a project where I need a faster rise-time so I tried combining 6 of the digital pins, all outputting a square wave with the PORTb command so they are synchronous. Now I'm measuring 3.6nsec.
It looks like as the current requirement decreases from each pin, the rise-time out of the pins gets faster. Why could this be. I don't think this is a limitation of the scope that I'm using so its something within the arduino that's slowing down the rise-time as it outputs more current.
Would anyone know why this is happening?
EDIT: I am connecting the output of the digital pin to a scope with a coaxial cable. I am not using a 10x probe. I know this is not standard practise but my experiment requires the use of a coaxial cable.
Those outputs have their own rise time characteristics but they are also charging some external capacitance. As you connect more outputs together they can collectively charge that external capacitance faster.
Also you can use things like an external Schmidt trigger or even just a logic gate to decrease the rise time.
And why do you think things are slowing down? 3.6ns is faster than 10ns
Can you switch the 'scope input from 50 Ohm to the typical 1 megohm input impedance? If so, we usually use the 1 meg setting and a 'scope probe for most measurements.
Even if its charging an external capacitance which in this case is 20pF i.e the input capacitance of the oscilloscope, the rise time should not exceed ~2ns
The capacitance is charged and discharged by CURRENT, not voltage! So current limits of the pin electronics limits the current maximum, resulting in slower pulse changes.