Yes, the current through Roff2 is to prevent the OFF time becoming infinite, causing the inductor current to drop to zero. As well as there being no current to immediately flow though the LEDs when the DIM MOSFET is turned off, the whole thing may not even start for a long time.
I would set the value of Roff2 by testing various values. It wouldn't matter much if the OFF time is a bit on the long side causing higher than normal current ripple. But it's possible for the frequency to drop low enough to be audible.
The value of Roff2 will interact with Roff1 but not not visa versa.
EDIT: I cant see the need for the diode in series with Roff2.
Thanks for explaining, that does make sense. The value of resistance I get from the formula is pretty high, on the order of 40MΩ, so I guess the idea is a little trickle of current would always come through from VDD, insuring that the capacitor charges even if Vout is too low to effectively provide enough power. In essence I am setting a lower bound of the frequency that the controller will run at.
I guess I'm also wondering what the formula they provide is trying to represent. Like I can see that the bottom of the equation is I X R, which would give us the value of Vout when the output is shorted, but I'm struggling to understand what exactly they are doing to calculate a usable value for ROFF2.
[edit] So someone pointed out to me that the formula provides a value for ROFF2 relative to ROFF1 that is the same as the ratio between the shorted Vout and VDD.
Just so I understand this correctly, this is my sense of what is going on:
ROFF1 and COFF create an RC network, and the time constant of this network is given by T = RC. However, in this case the internal logic of the converter doesn't wait for the capacitor to charge up to the Vout voltage, but rather discharges the capacitor when it reaches 1.24V. Thus the formula provided in the datasheet:
TOFF = -ROFF X (COFF plus (parasitic capacitance)) X ln(1 - 1.24V/Vout)
I'm guessing this formula tells us how long the capacitor takes to charge to 1.24V, rather than the full Vout. This works fine in the normal case, where Vout will be > 1.24V, but when the output is shorted, the voltage falls below 1.24V because of the low RDS(on) of the shunt mosfet. In this case we use VDD as a fallback, and use a resistor with a value that provides an RC timing constant that is the same as what the ROFF1 resistor would generate if it was being fed with a voltage high enough to trigger the 1.24V cutoff in the controller.
In terms of what's going on in the controller, I want the frequency to be as low as possible without exceeding the maximum off time, which would shut the controller off. It would also be nice to not have the controller make noise, so maybe set a minimum of 20khz or something, in which case I could use the formulas in the datasheet to calculate a resistor value that would result in the minimum frequency I want the controller to operate at in the shunted state.
Is there any downside to having the controller operate at a higher frequency than is strictly necessary in the shunted state?