I am designing a battery charger ranging from 11.8V to 14.4V. The DC current through MOSFET Q1 is 3.24A. In practice, the actual battery voltage can be higher, for example, 12.8V.I think you are charging a 12V battery from a 18V power source.
It looks like there is no "max voltage" function. Full charge. By looking at the voltage across V2 you could stop/reduce the charging current when the voltage is too high.
As the V2 voltage get high you might hit the max duty cycle of the IC. This will limit the full charge voltage.
Current is measured by R6, which is the MOSFET current. (Average current 3.24A?)
Is this how it works?

error amplifier in the UC3842 How do I connect this? Can you show me a diagram?You have added two further amplifier stages each with its own RC network, each will shift the phase 90°, so you have made an oscillator.
Why not use the error amplifier in the UC3842. That's why it has one. Join the SENSE pin to the current sense resistor, and let it do its job,
Start out with a differential amplifier. (Vtop of battery) - (Vbottom end of battery) reference it to ground. The output of this op-amplifier is the battery voltage but from 0 to 12V. Now divide down to 2.5V where the UC3842 regulates. Most car batteries should be limited to 14V so set the circuit so 14V of the battery causes 2.5 on the FB pin of the IC. The current will fall back when the voltage gets too high.error amplifier in the UC3842 How do I connect this? Can you show me a diagram?

R11=1k. Gain is set by R10,R12 also R2,R11. With a gain of 1 the battery voltage will appear on the output of the op-amp.but I don't know how it works.

Neat. I'd not thought of that. Constant Off Time is less prone to sub-harmonics oscillations than normal PWM. I wonder if you could do constant on time - that has the advantage of slowing down and reducing switching losses at low power.I have a project to drive 3A into an LED. So, I modified the schematic to get 3A into a battery.
The battery is C7, R12 and D1.
Current is set by R1 and the voltage on "COMP" pin of U1. If COMP=5V then the current is 3A.
Over voltage protection is set by Q3. If the voltage is too high the "FB" pin is pulled up which reduces the current by pulling down COMP.
This is not a normal PWM way of using the IC. It is a constant off time controller. Any time Q1 (big MOSFET) is on then Q2 (very small MOSFET) is also on, which crushes the oscillator in the UC3843. In this mode the IC turns on Q1 until the current reaches the desired level. Now the MOSFETs are turned off. There is a dead time set by R3 & C1. Then the next cycle starts.
View attachment 371346
I attached the LTspice file.
The CU384x series had a Hysteresis control that I really liked but no one used it but me. LOL So, it was discontinued. It would work very well here. It turns on and off at set amounts of inductor current. For example, it turns off at 3.3A and back on at 3.0A. The error amplifier moves the 3.3/3.0A point up or down to control the power. It is not constant frequency. For battery charging the hysteresis and the constant off time work much the same.Constant Off Time

With the UC3842 operating at a frequency of 33 kHz, can VDC be calculated when R6 = 2 ohm?You ask about why 480mV changed to 315mV. I think you should be asking about why 778mVp-p changed to 3,360mV.
Why the frequency is different? Too many things change to know without seeing a closeup picture of that waveform(s).