Results 1 to 7 of 7

Thread: Multiple versions

  1. #1
    Join Date
    May 2007
    Posts
    4,969
    Post Thanks / Like

    Default Multiple versions

    Right now there are two versions of the source code firmware file (one for regular use, one for PWM), and there will shortly be a third version (DC-only PWM mode). This will become more and more of a mess to keep updated (ensuring that bug fix in one version ends up correctly implemented in the others), so I intend to go back to one source file, with DEFINE statements to select between the various options. There will be one line that the user will have to change to enable PWM use, and one other line to enable DC operation.

    --

    Phil

  2. #2
    Join Date
    May 2007
    Location
    Mountain House California
    Posts
    216
    Post Thanks / Like

    Default

    That is a great idea. It will make things alot cleaner and easier to follow.
    David Scott

    If it aint broke, I got a bigger hammer.

  3. #3
    cmurray Guest

    Default

    What about baud rate
    and internal vs external clock.

    Just trying to be difficult.

    joel

    And don't loose that diagnostic code.
    Got a feeling a lot of people are going to be using it this year.

  4. #4
    Join Date
    May 2007
    Posts
    4,969
    Post Thanks / Like

    Default

    There is already a DEFINE for baudrate, as well as one for the clockrate. Changing the clock source takes a one line change, I think, in the __CONFIG statement.

    --

    Phil

  5. #5
    Join Date
    Jun 2007
    Location
    Tulsa, Ok
    Posts
    428
    Post Thanks / Like

    Default

    What is the difference between the DC PWM and the AC PWM code?

  6. #6
    Join Date
    May 2007
    Posts
    4,969
    Post Thanks / Like

    Default

    In AC PWM mode the PWM is synchronized to the AC power line (more specifically to the zero-crossing), in DC PWM mode it is free-running (so the zero-crossing signal is ignored).

    --

    Phil

  7. #7
    Join Date
    May 2007
    Location
    San Dimas, CA
    Posts
    410
    Post Thanks / Like

    Default

    Thank you for all that work so i can do my project
    Truth is a three edged sword....
    Embassador Kash Vorlon Empire


    http://www.tgconley.com

Bookmarks

Posting Permissions

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