VFD and HPWM


Closed Thread
Results 1 to 4 of 4

Thread: VFD and HPWM

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default

    Hi,
    You can get any PIC with enough PWM-channels to output the required PWM, you may just have to set the registers "manually" instead of using the HPWM command.

    Have a look at the 18F2431 for example, it's designed for motor control applications, has 3 complementary pairs of PWM output (one pair per half bridge) with 14bit resolution, quadrature encoder counter module, high speed ADC with 2 channel simultaneous sampling and more.

    If you just want to spin the motor it may very well be doable but the more advanced stuff like flux/vector control, slip compensation etc is probably too much for this PIC, a dsPIC would probably be a better choise in that case but then you can't use PBP.


    You can upgrade your 2.46 to 2.50 by contacting your dealer or Melabs directly, the cost is $25, I believe (including new manual).

  2. #2
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79


    Did you find this post helpful? Yes | No

    Default Hpwm

    Chip I am using is the 18LF6722, the data sheet says it has 3 ECCP pins. Using pbp 2.46 is it possible to run 3 seperate HPWM pins. I assume that the frequency has to be the same for all three, but that is ok.

    I read in a post that pbp 2.50 allows up to 4 HPWM channels but I can not found how many channels pbp 2.46 allows. I only need three so if pbp 2.46 allows three I do not want to buy pbp 2.5. I can't find a sales reciept although I think I bought pbp 2.46 directly from the melab site. If PBP 2.46 allows 3 HPWM channels I have yet to figure out how to access the third. Can someone help please.

  3. #3
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    The PBP HPWM command is very limiting, so I have never used it, although I use th HPWM features extensively.

    You can use all the channels your chip has by directly writing to the CCPx registers. *ANY* version of PBP will work.

    The part where most people get messed up is that you have to write bit 0 of the PWM value to CCPxCON.4 and bit 1 to CCPxCON5. The
    rest of the value (shift the value right two places) goes to CCPRxL.
    Charles Linquist

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