How to model output pin of microcontroller in SPICE?
The push-pull output of a CMOS device is a MOSFET P-N half-bridge. Simply choose or model MOSFETs that meet the characteristics described in the datasheet.