Generating pwm with gpio-24 adapter

Discussion in 'Embedded Systems and Microcontrollers' started by flashman, Oct 26, 2009.

  1. flashman

    Thread Starter New Member

    Oct 26, 2009
    2
    0
    I have Diolan GPIO-24 adapter. I need to generate a PWM wave by using this device. I can't understand what commands do I need to use to set the high pulse period and low pulse period of PWM? Can anyone help?
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
  3. tech_guru

    New Member

    Oct 26, 2009
    1
    0
    By using GPIO24 adapter, You can generate a PWM wave. To configure pins for PWM use GPIO_SET_CFG command.
    Also the GPIO_SET_PWM_CFG command is assigned to set configuration settings for generating the pwm wave.
    PWM mode is configured by specifying the high time (T1) period and low time (T0) period in ms.
    All available configurable pins can be set for PWM output in this adapter.
     
  4. vlad79

    New Member

    Oct 27, 2009
    1
    0
    I see they have both PWM and HPWM. Do you know what is the difference?
     
  5. flashman

    Thread Starter New Member

    Oct 26, 2009
    2
    0
    The PWM (Low frequency pulse width modulation) is implemented in GPIO-24 Adapter firmware. The HPWM (High-frequency pulse width modulation) interface is based on the PWM module of the PIC18F4455 microcontroller. For more details read http://www.diolan.com/io/pwm.html as was mentioned by beenthere.
     
Loading...