HPWM coding


Closed Thread
Results 1 to 2 of 2

Thread: HPWM coding

  1. #1
    civictypeR's Avatar
    civictypeR Guest

    Default HPWM coding

    Hey guys , I am curious as I tried this experiment out and I wonder this coding really functions. I am using Melabs to do my programming and PIC16F877A to control my DC motor driver IC modelled L293B . It required PWM to control the voltage output to my DC motor . THe coding is below as shown .
    \
    DEFINE OSC 20

    TRISC = %00000000

    HPWM 1, 150, 16000
    pause 3000
    HPWM 2, 50, 16000
    pause 3000

    . The means that 1 pin in port C will output a certain PWM and portC.2 will output another output . Is it possible if i use the HPWM command on 1 same pin many times and change the frequency ? Will my output change ? Thanks a lot .

    Civic type R

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by civictypeR View Post
    Hey guys , I am curious as I tried this experiment out and I wonder this coding really functions.
    If you tried it, then you should know if it functions or not...right?

    The means that 1 pin in port C will output a certain PWM and portC.2 will output another output . Is it possible if i use the HPWM command on 1 same pin many times and change the frequency ?
    Yes, except for the possible 'glitch' when changing duty cycles, it should work like you think it should work.

Similar Threads

  1. NEWB Help HPWM coding
    By Seafurymike in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st January 2008, 21:52
  2. need help on hpwm
    By helmut in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th August 2007, 15:49
  3. HPWM of the port of two HPWM
    By ja2rqk in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 15:05
  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 : 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