not too sure what you mean "burst mode" is that like on 1 sec off 4 secon = 20% heat?. I'll try instant interupt but I'm a little affraid of asm..... I hate it!
not too sure what you mean "burst mode" is that like on 1 sec off 4 secon = 20% heat?. I'll try instant interupt but I'm a little affraid of asm..... I hate it!
and let the fun begin! can somebody tell me what error: variable wsave3 request 416 beyond ram_end 79 means? I have 3 errors like this in my first attempt at compiling. I installed mpasm and the include files for instant interupt.
Hi,
this is it ... in the end BUT, exactly ... the half waves are "full" , THANKS to the MOC 3041.
for your example you will have 100 half waves ON ( always an integer ! ) @ 50 Hz = 1s followed by 400 "half waves OFF" @ 50 Hz = 4 sec ...
as the DS1820 needs ~ 750 ms for conversion, just fix your regulator period to 1 sec ( in your example .2sec ON and .8 sec OFF ) and you'll have a .5% resolution in power ...
far more than you need ... but very easy for your regulating soft calculations.
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Why not just skip the busy state of the temp conversation??
If the temp conversation is in progress, do not wait, just pass it.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Hi, Sayzer
WHILE temp conversion ...
REGULATOR loops ...
of course !
just have to verify that the Process time. constant is 10 times or more the sensor time constant ...
If you want it to look at, I committed sometimes ago a DS 1820 temp regulator : a R/C servo drives air flow section to cool some heating stuff ...
Let's say it is intended to control the air flaps of a model "Corsair F4U " engine cowling ...
Alain
Last edited by Acetronics2; - 30th April 2008 at 12:45.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
thanks for you suggestion acetronics but burst will not work for me, I really need to regulate via dimming an incandescent bulb so it is not switching on and off all the time annoying eyes. I have checked only sending ayet this still makes a flicker which tells me that my interupt is not being seen while sending this message. does anybody know or can work out how long this command takes so I may be able to time when to send it?Code:OWOut DQ, 1, [$CC, $44] ' Start temperature conversion
when sending this line ... it just tell the DS to do it's measurement.
what takes time is wait for the DATA line to come back high ...
you can do other things just past this line ... PbP doesn't poll the line or insert a Pause "by itself " to let you do what you want during the conversion time.
some MPLAB "stopwatch" to justify it.
Owout $CC,$44 ... 473 µs @ 4 Mhz
$CC,$BE ... id !!!
Owin.. ... 1140 µs ( read result )
will be difficult not to see "something" happens when "talking" with the DS ...
I remember having soldered a an Incubator regulator with a single TDA 1023 ... which has a voltage setpoint input.
The pic could make the temp measurement, drive alarms (?), convert digital setpoint ( a simple R/2R ladder as a DAC will be enough ) to an analog setpoint , and drive a cute viewing LCD display panel ...
can of course being done with a Pic, but some trickery will be compulsory to place the different DS commands in the cycle time ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
I love IT! This chip rocks, so an input voltage = output duty cycle. Is that right in simple terms? I'm going to study this data sheet. thanks for the suggestion!
Clint
Bookmarks