Need some advice.


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    You may try to switch to asm interrupt or Darrel's instant interrupt to see if it works better.

    A real schematic would help...

    To generate 10uSec with PAUSEUS, you need at least a 10MHz crystal. If you're using a 4MHz, you'll need to use asm NOP or GOTO

    A scope is handy for those things. 1 channel on the Main AC, the other on the PIC output... now you see if you're really in-synch. Be careful if you do that, unless we might see some smoke messages
    Last edited by mister_e; - 28th April 2008 at 05:36.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Apr 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    my interup seems to work fine it just that the owin owout commands seem to really take alot of time and the interupts are missed in the process. i'll try to draw up a schematic.

  3. #3
    Join Date
    Apr 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    here is a quick diagram, I know thats not a moc3021

  4. #4
    Join Date
    Apr 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    here abit smaller
    Attached Images Attached Images  

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by cphillips82 View Post
    my interup seems to work fine it just that the owin owout commands seem to really take alot of time and the interupts are missed in the process. i'll try to draw up a schematic.
    This is why i've suggested to use Darrel's instant interrupts
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking Why making it simple ???

    Hi,

    The MOC 3041 ( and not 3021 ...) permitted to avoid all the zero detection AND the interrupts ...

    burst mode is really not a problem with heating systems ...

    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 " !!!
    *****************************************

  7. #7
    Join Date
    Apr 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Angry

    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!

  8. #8
    Join Date
    Apr 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    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.

  9. #9
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by cphillips82 View Post
    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!
    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 " !!!
    *****************************************

  10. #10
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    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

Similar Threads

  1. Advice on Wiegand Buffer
    By brutc001 in forum Schematics
    Replies: 0
    Last Post: - 19th December 2009, 01:31
  2. Need "PIC16F84A" Controler schematic Advice...
    By Kyo_89 in forum Schematics
    Replies: 1
    Last Post: - 28th May 2009, 00:03
  3. Your OTP advice?
    By truvahorse in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th June 2008, 17:37
  4. Decoding an incoming infrared signal: need advice
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th May 2008, 17:28
  5. Advice needed on 'neat' Project!
    By vacpress in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th February 2007, 07:21

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts