-
Notifications
You must be signed in to change notification settings - Fork 76
Description
This data is not really present in the PDF-s.
Analog Inputs have an approximate 75 kOhm impedance, considering that the ADC resolution is 12 bits (0-4095) this load will cause 1 count ADC error already if the driving source's internal impedance is 18 Ohm !! (75000 / 4096). Drive the analog inputs always from an opamp voltage follower to ensure low impedance.
Method to measure : 3.3V input on ADC0 channel, resistor in series with the input, increase resistor until the ADC value drops to half scale (2047).
Inputs like pinMode( pin, INPUT ) are very high impedance. No worries.
Output like pinMode (pin, OUTPUT) source about 40mA and sink 46mA. Internal impedance 32.5 Ohm sourcing and 22 ohm when sinking. Method to measure : 50 Ohm load on PC0 output switched to 3.3V VCC or 0V VSS. Blink example on output runs at 1 kHz. Voltage drop measured with Rigol DS1054 oscilloscope. Sourcing pulse p-p drops to 2.0V. Sinking pulse p-p drops to 2.3V. Other output pins have very similar characteristics according to data sheet (variations 50mV, page 33 of CH32..DSO.pdf)
Conclusion : LED drive is possible without current limiting resistors, a 4-digit 7 segment LED multiplexed 1/4 of the time is driven by 10mA average current which is ideal.