MOSFET control using PWM & 16C711?


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default I agree with mister_e

    Hi there,

    Using the HWPWM is not a big issue at all. All you have to do is set the correct registers and check for overflows through interrupt. To make your life easier there is a freeware by Doug McDonale called PIC HWPWM Calculator (I cannot remember the link now).
    PBP makes your life easy and lets you concentrate on the program flow but it is always a good idea to keep yourself updated with the MPASM routines. Read your manual thoroughly.

    Regards

    Sougata

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    If you have followed the hints penelopepug has given
    and if you are wondering why your FET is dissipating that much heat
    when using PBP's PWM instead of HPWM:
    scope the output and the aswer will be on your scopes screen.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



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


    Did you find this post helpful? Yes | No

    Default

    I feel it's the way PBP produce the PWM. I feel they switch the pin direction from output, input and then output... i didn't check the PWM assembler source but i remember few user PMs about problem at the end of a PWM execution. With a LED(s) attach to the PWM pin(s),In some case the output state was set to high, sometimes low, sometimes XYZ=> wich looks more than a pin set to input.

    Problem was fix when setting the PIN to output and LOW after the execution of PWM.

    I prefer to stick with timer interrupt or HPWM(if i don't need many channels)
    Steve

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

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Hi Steve,

    your findings match my findings which results in: "DON'T USE PWM" (in terms of PBP's Software PWM)
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



Similar Threads

  1. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  2. Voltage monitor and PWM control
    By StoneColdFuzzy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th May 2009, 16:11
  3. Transistor selection, PWM fan control
    By 124C41 in forum Schematics
    Replies: 5
    Last Post: - 22nd December 2008, 15:33
  4. CCP vs power control PWM
    By luminas in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 4th September 2008, 03:09
  5. Help needed - MOSFET driven by PWM
    By bcd in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd April 2008, 05:02

Members who have read this thread : 1

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