xPC Target | ![]() ![]() |
Quartz-MM 10 Counter PWM & ARM
The Quartz-MM10 has one AM9513A chip with 5 counters.
The Quartz-MM10 PWM & ARM driver programs the AM9513A for PWM or disarmed signal generation (a square wave with fixed frequency and variable duty cycle). Additionally the driver allows to arm and disarm the counter by the second block input.
Scaling Input to Output
Hardware Output |
Block Input Data Type |
Scaling |
TTL |
Duty cycle: double Arm: double |
<0.5 disarmed >0.5 armed |
Driver Block Parameters
Counter. From the list, choose 1, 2, 3, 4, or 5 to select which counter is used with this driver block. In each case, one block is needed for each counter.
Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. The XTAL frequency is assumed to be 1MHz, therefore the jumper on the CIO-CTR05 has to be in position 1MHz not 5MHz.
Relative Output Frequency - Enter a value less than 1. The Relative Output Frequency is multiplied by the FrequencyBase to set the fixed output frequency of the PWM-signal.
For example, if the output frequency of a square wave has to be 17.5 kHz, then choose F2=100kHz as the Frequency Base and enter 0.175
as the Relative Output Frequency. 100kHz x 0.175 = 17.5 kHz
Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initialization phase of the driver similar to a initial value of an integrator.
Initial Toggle State - From the list, choose high or low. The Initial Toggle State sets the initial digital level (high or low) of the output. For example, if the Initial Duty Cycle is 0.25 and the Initial Toggle State is High, the first 25% of the period will have a high level and the last 75% will have a low level.
Initial ARM State - From the list, choose Disarmed or Armed. The Initial ARM State defines if the counter should be armed or disarmed after driver initialization. The ARM State during a simulation can be controlled by the second block input. If a value 0 is asserted, the counter is disarmed. If a value 1 is asserted, the counter gets armed.
Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration on the input (Duty Cycle)
BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter
0x300
![]() | Quartz-MM 10 Counter PWM | Quartz-MM 10 Counter FM | ![]() |