I am using Texas Instrument SG3524 PWM controller for 400Khz but I am getting constant output and not pulse (100% duty). Someone please tell where I am doing wrong or can share the circuit.
Do you have Vcc=10V ? Should have a capacitor from Vcc to GND.
Do you have "Vref on the left side connected to Vref on the right side?
Is the switch on pin 10 open or closed?
1k pot should be turned so pin 4 and pin 5 have almost the same voltage.
Trouble shooting from 1/2 way around the world is hard. You must give much more information.
Do you have a oscilloscope?
What is happening on every pin? Voltage, wave form, etc
Example: CT should have a saw-tooth wave form. What about OSC OUT? Vref?
Do you have Vcc=10V ? Should have a capacitor from Vcc to GND.
Do you have "Vref on the left side connected to Vref on the right side?
Is the switch on pin 10 open or closed?
1k pot should be turned so pin 4 and pin 5 have almost the same voltage. View attachment 111319
I think not. See picture below. The block "T" will keep duty cycle below 50%. (only one output can be on at a time) If you connect COL 1 and COL 2 together than yes you can get 90%.
Sawtooth ramp on CT is 0V to 3.5V (about) The voltage at COMP is compared to the sawtooth ramp. This is where duty cycle is made.
Inputs(-) and Input (+) only work right is they are from 1.8 to 3.4 volts. In your test circuit there is a 2k/10k Pot/2k. It limits the voltage on Input(+).
Because INPUT(-) is connected to COMP the gain of this amplifier is one. So the voltage on COMP will be the same as the arm of the pot.
To get less duty cycle the voltage on COMP needs to be lower. There are two ways.
1) pull down on COMP to force it lower.
2) increase the gain on the error amplifier.
Back to your circuit. I added two 10k resistors to make a 2.5V.
I cut open pins 1 and 9 and replaced with 100k resistor. Now the error amp has gain!
Now when you move the 10k pot; low voltage = 0%, high voltage = max duty cycle. When the pot output voltage is near 2.5V you will see the duty cycle change. Now the COMP voltage can change over a larger range.
I don't know what your circuit is supposed to do, but the IC pins aren't being used in the normal way and the pins don't line up with connections to other components in the sim.
If it helps, here is a test file for the model.