Help troubleshooting slope in pwm waveform

I am trying to get a pwm control circuit using two picos and master and slave. the requirement is to be able to change the frequency and duty cycle and also be operational at 12v and 24v. consequently, we have created this circuit and prototyped a pcb. but when we check, we observe a slope at the start of every pwm. why is this happening and how can I solve this? have attached the waveform shape and the schematic.

Schematic_20250421_PWM_2025-07-18.pdf (385.6 KB)

Calibrate and use a 10:1 scope probe.

Where are you measuring this signal?

why is this happening and how can I solve this?

Not enough current to turn MOSFETs on fast.
Probably will need gate drivers for the MOSFETs.

Your schematic shows multiple (40) open drain MOSFETs.

When the MOSFET is turned on, there is a low resistance to GND which makes the signal you are observing fall rapidly.
When the MOSFET is turned off, something else has to pull the drain high.

I don't see anything on your schematic that pulls the drain high.

Looking at the oscilloscope trace, I can see from the position of the Channel 1 offset indicator (arrowed below) that you have the outer of your coax. lead connected to the +12V.
I see from the 1:1 probe attenuation factor setting that you are not using a X10 probe.

This indicates to me that it is only the 1MΩ input resistance of the oscilloscope that is pulling the open drain output high.

There will be stray capacitance between the MOSFET drain and source, which together with the capacitance of the BNC lead (up to 100pF/m) and the 1MΩ form an RC circuit. This causes the slow rise time.

If you were to connect a resistor of around 1kΩ between the +12V and the open drain then the rise time of the signal will be reduced, making the trace look better.

I have been able to recreate your trace by making the connections that I think you have.
The blue trace is the Arduino PWM output.

Here is the trace I got with a 100kΩ resistor connected between the MOSFET drain and the 12V supply. There is some improvement in the rise time:

With a 1kΩ load resistor, that I suggested in post #4 the trace looks much better: