Any clever soul out there figured out a way to do that? ...Jim Thompson
-- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at
formatting link
| 1962 | I love to cook with wine. Sometimes I even put it in the food.
.STEP isn't the same as a step in temperature _during_ the simulation run.
.STEP simply applies a data change at the _beginning_ of a run.
I want, during a transient solution, to have a temperature change to test a temperature-related shutdown mechanism.
I suspect I will have to do a replacement in subcircuits...
TEMP => V(MyTemp)
and fudge it with a voltage step :-] ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics
160 North State Road #203
Briarcliff Manor NY 10510
hobbs at electrooptical dot net
http://electrooptical.net
So I gathered after I posted. You can set individual device temperatures to different constants, allegedly, so maybe putting some curly-brace function of time in there would work.
Cheers
Phil Hobbs
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics
160 North State Road #203
Briarcliff Manor NY 10510
hobbs at electrooptical dot net
http://electrooptical.net
But what I'm working on is a behavioral model of a real temperature sensor that I've curve-fitted.
Since "TEMP" is a "reserved word" in Spice I think the temporary solution, for testing purposes, is to substitute V(MyTemp) for TEMP in the equations, then simply apply a voltage step or maybe a ramp would be better.
Hmmmm! Helps to discuss... here's the solution...
Do the substitution, as above and leave it permanently.
The user can either input a voltage on node MyTemp, or hang an EValue source on it...
Evalue MyTemp 0 VALUE {TEMP} ; >:-}
Kicking ideas around almost always produces solutions! ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
Ruminating whilst shopping at the grocery... this behavioral model has an output pin with a _very_current-limited drive that is equivalent to the voltage that an LM94022 produces. Internally, the circuit views this voltage to determine circuit shutdown.
So a simple solution... back drive this pin with an equivalent to the LM94022 that is _not_ current-limited, and provide it with an input pin to load MyTemp into its equation. ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
Ooh ouch. So ideally you'd like to make sure that your temperature detection/shut down works correctly as temperature is changing dynamically?
I think I'd separate the circuit into part A and part B, where part A is the temperature sensor and part B is the rest. Characterize part A over temperature, fake its behavior in a subcircuit, then make sure that part B responds correctly to the changes in part A at a variety of different temperatures.
It'll probably be valid, unless the temperature shows strong gradients across the chip or changes as rapidly enough to be close to the time constants of any RC pairs.
--
Tim Wescott
Control system and signal processing consulting
www.wescottdesign.com
Yes. How I ended up fudging is sort of round-about, but it works...
In the actual circuit there is the equivalent of an LM94022 temperature sensor with GS0 and GS1 both set to 1's.
Internally to the overall circuit the output voltage of the LM94022 drives a comparator (with hysteresis) to effect the thermal shutdown.
Fortunately this voltage also comes out on a pin, so that the user can monitor temperature, if he wants (to me, not very useful :-)
Since I modeled the LM94022 for this application in the first place, I realized that the LM94022 has a weenie output, limited to +/-150uA.
So I made a test tool, an equivalent to an LM94022, but with a voltage source output, replaced every instance of "TEMP" in the equations with "V(MyTemp)", where "MyTemp" is an input pin.
The output of this test tool overdrives the internal LM94022 output, if I apply a voltage to pin "MyTemp" equal to the desired temperature.
So I can apply a ramp to "MyTemp" and watch the thermal shutdown function under transient conditions.
Works great!
...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.