HPWM Motor Control


Results 1 to 8 of 8

Threaded View

  1. #5
    hughgoodbody's Avatar
    hughgoodbody Guest


    Did you find this post helpful? Yes | No

    Default Attached Schematic

    I enclose an attached schematic of the circuit i am using.

    Below is some of the code i am using:

    The following are the declarations for the set up:

    Device 18F452
    XTAl = 20

    'CCP Module configuration for HPWM
    DECLARE CCP1_Pin PortC.2 'HPWM Set up for Channel1
    DECLARE CCP2_Pin PortC.1 'HPWM Set up for Channel2

    To output the PWM I am using:

    HPWM 2, Alpha, 1250
    HPWM 1, Bravo, 1250

    Where alpha and bravo are declared variables.

    I am also using an AD converter on port A, using the FRC oscillator, could this be interfering with the CCP module?

    I look forward to hearing any suggestions
    Attached Images Attached Images  

Similar Threads

  1. need help on hpwm
    By helmut in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th August 2007, 15:49
  2. HPWM of the port of two HPWM
    By ja2rqk in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 15:05
  3. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 14:14
  4. HPWM and A to D interaction question 18F252
    By tcbcats in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th May 2006, 03:50
  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