HPWM on second half


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Thanks, Bruce. I have not used the PIC12 (only use PIC18, PIC24 and dsPIC33) so am not familiar with it.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If your compiler supports the 615, it's worth looking at. My 1st go-round with this one was
    a batch of serial motor control ICs for a customer. Very cool little controllers. We use them
    for our 8-pin encoder/decoder ICs now. They're nicely priced even in small qty.

    PIC24 are also nice, but I'm not really fond of the Mchip 16-bit C compiler. dsPIC I've never
    had a need for. I can do pretty much everything we're asked for with a 14-bit core & PBP
    or C.

    What I really like about PBP is the open library. If you're into the heavy end, you may want
    to look at PBP. It's worth the price of the compiler just for the library.

    Back in the old days when I used the 8051 core, I would have paid ten times the cost of
    PBP for a similar 51 core library.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    If you are into open libraries, take a look at Swordfish. Lots more features than PBP and less money. Only for PIC18F though.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Swordfish is awesome, but isn't the entire library in Swordfish BASIC?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Yes, the library is in SF BASIC. Makes it real easy to extend and/or modify to suit.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I totally agree, but it's not much use unless you own the compiler. PBP libraries are pure
    assembler. You can modify them as needed, learn asembler by understanding them, and
    cut/paste sections into your own assembler programs.

    And of course PBP supports the whole PIC series unlike Swordfish or C18, which are only
    for 18F parts, and very limiting.

    Most C compilers have open libraries as well, but it's not anything like the PBP library where
    you have the assembly language equivalent of each command. Huge difference.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    I wrote a small program , mostly copied it from one of the post here. it works but the frequency it gives me is 2,2kHz when I program 500hz, I am doing a HPWM: using picF88.
    can someone help me?

    INCLUDE "modedefs.bas"
    @ DEVICE PIC16F88 , HS_OSC , WDT_OFF , PWRT_ON , BOD_ON , LVP_OFF , PROTECT_OFF, CCPMX_OFF
    'HS 20mhz, watchdog off, powerup timer on, mclr external, brown out detect on, low volt program off , code protect off
    DEFINE OSC 20 'use external 20mhz crystal
    PAUSE 100 ' start-up delay
    TRISB=0
    DEFINE CCP1_REG PORTB
    DEFINE CCP1_BIT 3
    HPWM 1,127,500
    HERE: GOTO HERE
    end

Similar Threads

  1. Bit Angle Modulation (BAM) in a PIC
    By Bronx68 in forum mel PIC BASIC Pro
    Replies: 150
    Last Post: - 24th February 2015, 13:41
  2. 18F4620 HPWM Half Bridge Mod problem
    By showtime in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd November 2007, 12:55
  3. Using HPWM in half bridge mode on 16f690
    By Chris Barron in forum mel PIC BASIC
    Replies: 0
    Last Post: - 29th December 2006, 11:18
  4. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 14:14
  5. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43

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