I am coming from PIC18F23K22 and it has Max current 25mA Absolute Max:
Maximum output current sunk by any I/O pin 25 mAhttp://ww1.microchip.com/downloads/en/DeviceDoc/40001412G.pdf
Maximum output current sourced by any I/O pin 25 mA
page 497 gives curves
I was using it with 20mA for a quite some time with 5V power
With K40 the Absolute Max is +/-50mA and I understand this is preliminary.
Same for K42 parts, so this is not a typo.
I have a feeling that they made changes and can handle a higher current.
For my design, I need not more than 40mA and assuming that datasheet is correct, it will not exceed Absolute Max
post edited by Andy123 - 2017/08/12 14:53:42