Dimmer


Results 1 to 40 of 68

Thread: Dimmer

Threaded View

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


    Did you find this post helpful? Yes | No

    Wink Got it !!!

    Hi, Reven

    Just understand what the interrupt routine does instead of should have done ...

    ""
    ' ACDetect
    ' --------
    '
    ' Interrupt routine called by ACLine (GP4) pin state change
    '
    disable
    ACDetect:
    if ACline==1 then ' Check for rising edge of AC signal
    if triacdelay > 0 then
    Triac=1 ' Activate TRIAC

    Alain's : ;;; No,No,No ... here we have to wait for ( Maxdelay - Triacdelay ) !!! THEN fire the Triac for, say, 20µs ... then let things quiet.

    if FullBright==0 then ' In case Brightness flag is not set
    pauseus triacdelay ' do the selected delay
    triac=0 ' Disable TRIAC
    endif
    else
    triac=0
    endif
    endif
    INTCON.0=0 ' Clear GPIF (interrupt on GP4 change)
    resume
    enable

    ""


    *** This part of program smells to have been taken from a heather using burst mode dimming ...

    Sorry, Steve ... je t'aimais bien ( avec la musique de circonstance ... )

    Alain
    Last edited by Acetronics2; - 13th December 2005 at 12:15.
    ************************************************** ***********************
    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 " !!!
    *****************************************

Similar Threads

  1. PICDIM Lamp Dimmer for the PIC12C508 - PICREF-4
    By charudatt in forum General
    Replies: 8
    Last Post: - 2nd September 2015, 07:14
  2. Dimmer switch
    By iugmoh in forum Off Topic
    Replies: 4
    Last Post: - 20th March 2009, 16:02
  3. Ideas on ir-code for dimmer
    By tirithen in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th February 2009, 23:22
  4. 50hz sync for light dimmer
    By tirithen in forum General
    Replies: 2
    Last Post: - 6th September 2008, 19:29
  5. Dimmer Circuit
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th January 2007, 14:37

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