Open collector with Atmega48
If you want to use a PSMNOR9-25, which is an 100A N-Channel MOSFET, then the following is a suitable circuit. You could replace Q1 with a small N-Channel MOSFET such as a 2N7000.






simulate this circuit &ndash; Schematic created using CircuitLab