Serial controlled PWM


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default Serial controlled PWM

    Hi. Im back to the circuit i started a while ago that uses PWM. Unfortunately the link in the other thread doesnt seem to work now. I have a few questions.

    Do i need 2 interrupt pins? 1 to detect a zero crossing and 1 for the serial input?

    1 circuit im making is for DC so it wont need the zero crossing pin but what about the serial input? Im sure it would take way too long using serin2 and a timeout.

    On the AC circuit should the zero crossing be put through an optoisolator? Will a simple resistor be fine to lower the 9-18V input?

  2. #2
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    I could really do with making the AC circuit soon. I know i will have to use software PWM because i need quite a few outputs. Im just not sure about the interrupts because ive never used them before. I need to know that before i start designing this circuit and im hoping to have it completed within a week. I also have to buy the parts and etch the PCB so a quick response would be greatly apreciated.

    Ive searched google but ive not found anything about using PWM and serial together.

Similar Threads

  1. Half-bridge PWM with a 16F684 ?
    By Byte_Butcher in forum General
    Replies: 7
    Last Post: - 17th January 2010, 22:18
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  3. pot controlled pwm -- help
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 29th January 2006, 12:29
  4. Tidying Up PWM Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st February 2005, 00:26
  5. PIC controlled serial LCD
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd March 2004, 18:04

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