18f4431 pwm4 and pwm 5 issues


Closed Thread
Results 1 to 8 of 8

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Don't worry about that, we are here to help each other!

    I think Bruce's post can help you. Easy to convert to PDS later anyways
    Steve

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

  2. #2
    Join Date
    Apr 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Smile

    Steve you will be happy to know that i am currently checking the config settings within the datasheet as we speak/ type.

    I have Bruce's PWM scaling code working but needed to make the full step to using the override function for the PWM Brushless sequence output.

    I must add when I do crack it I will post on this forum to hopefully assist others who may be trying to get this pretty interesting PIC working.

    Anyway back to the datasheet....what joy

  3. #3
    Join Date
    Apr 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Red face the basics...its always the basics

    As promised I have found the resolution to my problem (the PWM issue not the posting on the wrong forum issue) after much soul searching and datasheet reading I tracked it down to be a typo.

    the line:

    PDC2L = Duty.LowByte
    PDC2L = Duty.HighByte
    should have been:

    PDC2L = Duty.LowByte
    PDC2H = Duty.HighByte
    the code works fine now and I can now move through the commutation pattern of the brushless motor drive. I cant believe it came to this damn you cut-copy-paste.

    Once again I apologies for posting here

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


    Did you find this post helpful? Yes | No

    Thumbs up

    Glad to hear you have it working now!

    No need for apologies, your post will be useful for some.
    Steve

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

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