Managing multiple channels driving triacs


Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263

    Unhappy Managing multiple channels driving triacs

    Using: 16F88 at 8 MHz and Darrel's interrupts (INT_INT).

    Overview: I'm reading 5 different analog values and attempting to drive 5 corresponding triacs with outputs proportional to the analog voltages (forward phase-cutting). INT_INT provides the AC zero-crossing signal.

    Successes so far: All blinkies have worked. I can get any one channel to do what I want, but I can't manage all five.

    What I've been doing: I read the analog channel(s) in MAIN (looped), then let the interrupt handler turn on the channel(s).

    One problem seems to be manipulating the analog values. If I do this in MAIN, even for a single channel, the output result is screwy, so I do it in the handler, which begins to bog it down time-wise. In the handler, I've tried loops counting up, loops counting down, and in either case it seems the killer is the conditional testing to determine when to fire the triac(s).

    I'm not asking anyone to write the code for me; I've got working fragments from here to hell and back.

    I'm looking for a strategy. Suggestions, please?
    Last edited by RussMartin; - 4th February 2010 at 02:33.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

Similar Threads

  1. Replies: 3
    Last Post: - 17th April 2007, 14:45
  2. Reading multiple ADC channels FAST
    By lwindridge in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st April 2004, 22: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