Matlab-Simulink device driver Blockset for Microchip dsPIC / PIC24 / PIC32 Microcontrollers.

DsPIC Block/PWM Motor Output

From http://www.kerhuel.eu/wiki - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
< DsPIC Block
Revision as of 19:41, 26 May 2008 by LubinKerhuel (Talk | contribs) (New page: The PWM Motor block allows to generate either simple PWM pulse like OC block or PWM pulse with two channel in opposit phase for motor control. This block do not use a timer like the OC or ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The PWM Motor block allows to generate either simple PWM pulse like OC block or PWM pulse with two channel in opposit phase for motor control. This block do not use a timer like the OC or IC blocks.

Dialog Box Parameters

General Input Enable

Add the enable input to the block. Allow to Start and Stop the PWM pulses.

Input Periode

Add the Periode Input. When the PWM periode is not constant, this input allow to control the PWM periode.

Output Channel

Choose the PWM motor Channels to be used.

Periode

  • When Input Periode is disable, Fixed the Periode value.
  • When Input Periode is enable, This define the max Periode that will be used.

ValMax Periode Calcule

This Variable will be evaluated in the workspace and allow you to scale the data.The ValMax is the max value that correspond to the duration defined in Periode.

Centered

I Really do not remember what was that for !

Activate H Complementary Output

Activate the Complementary output of each channel

Info

Gives information :

  • NbrBits is the resolution for the full scale defined by Periode.
  • PWM max value corresponing to the time defined in Periode. PWM is evaluated in the workspace to allow you to scale the data.
  • Prescaler is the Prescaler internally used in the microcontroller..

Status

Information if error encountred.