xPC Target    

PC-TIO10 Counter FM & ARM

The PC-TIO-10 has two AM9513A chips each with 5 counters for a total of 10 counters on the board.

The PC-TIO-10 FM & ARM driver programs the AM9513A for FM (Frequency Modulation) signal generation (a square wave with fixed duty cycle and variable frequency). Additionally the driver allows to arm and disarm the counter by the second block input. For the corresponding counter channel, the PWM signal is output at the pin named OUT.

Scaling of Input to Output

Hardware Input
Block Output Data Type
Scaling
TTL
Variable frequency: double
Arm: double
<0.5 disarmed
>0.5 armed

Driver Block Parameters

Counter -- From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 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.

Output duty Cycle -- Enter a value between 0 and 1 to set the duty cycle of the square wave. The Duty Cycle is held fixed during execution of the target application.

Level sequence of square wave -- From the list, choose either high-low or low-high.

In either case, the Output duty cycle defined in the setting above define the duration of the TTL high part.

Level when disarmed -- From the list, choose either high or low. The counter is automatically disarmed when the target application is not running. If the application is running, the second input port controls whether the counter is armed or disarmed. This parameter sets the TTL level when the counter is disarmed.

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)

Base address -- 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

The dialogue box of the block allows the following settings:


  PC-TIO-10 Counter FM PC-TIO10 PWM Capture