| Contents | Index |
xPC Target Library for Real Time Devices
As input to the DM6816 PWM block, use a number ranging from 0 to 255. This range corresponds to the duty cycle, where 256 is a duty cycle of 100 percent and 0 is 0 percent. The maximum duty cycle that can be given as an input is 255/256 = 0.996.
For example, to get a duty cycle of 0.06, input 0.06*256 = 15.36 as the input to the channel. The nearest integer will be used such that the duty cycle will actually be 15/256 = 0.05859.
Enter numbers between 1 and 9 to select the PWM channel. This driver allows the selection of individual PWM channels in any order. The number of elements defines the number of channels used.
For example, to use all of the channels, enter
[1,2,3,4,5,6,7,8,9]
Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.
From the list choose either 8 MHz clock or Timer 1 output as the clock source for the channels. By default, it is Timer 1 output. This parameter affects channels 1, 2, or 3.
From the list choose either 8 MHz clock or Timer 1 output as the clock source for the channels. By default, it is Timer 1 output. This parameter affects channels 4, 5, or 6.
From the list choose either 8 MHz clock or Timer 1 output as the clock source for the channels. By default, it is Timer 1 output. This parameter affects channels 7, 8, or 9.
Enter a vector [d0 d1 d2] of integers, with each integer in the range from 2 to 65535. The driver uses these integers as frequency divisors for the timers 0, 1, and 2, respectively. For example, if timer 0 uses the 8 MHz clock as a source, a frequency divisor value of 4 for d0 causes timer 0 to run at 2 MHz (8 MHz/4).
If you specify one integer in the vector, that value applies to all timers.
Base sample time or a multiple of the base sample time.
Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter
0x300

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |