The maximum power dissipation of the LM324DG4 is 670mW, which is calculated based on the package thermal resistance and the maximum junction temperature.
While the LM324DG4 is an op-amp, it can be used as a comparator in a pinch. However, it's not the best choice due to its limited slew rate and bandwidth. A dedicated comparator like the LM339 would be a better choice.
To ensure stability, make sure to follow proper compensation techniques, such as adding a capacitor in the feedback loop to reduce the gain at high frequencies. Also, ensure that the op-amp is not oscillating by checking the output waveform with an oscilloscope.
The input impedance of the LM324DG4 is typically around 2MΩ, but it can vary depending on the specific application and operating conditions.
The LM324DG4 is rated for operation up to 125°C, but its performance may degrade at high temperatures. If you need to operate in a high-temperature environment, consider using a more temperature-stable op-amp like the OPAx197.