Qx751 register mapping, Pwm examples – Horner APG QX751 OCS User Manual
Page 38
CH. 8
MAN0890-02-EN
August 20, 2009
Page 38 of 96
ECN # 979
8.5
QX751 Register Mapping
Note: Unlike a typical OCS, you can assign registers for the high speed feature in the QX751.
Table 8.5 – I/O Register Map for QX751 High Speed (BP43 Required)
Starting Analog In
Default Reference
Offset with Respect to
Analog In field
Function
%AI0385-0386 Offset 0 and Offset 1
Counter/Frequency Accumulator for
CNT 1
%AI0387
Offset 2
Accumulator for CNT 2
%AI0389-0390 Offset
3 and Offset 4
Latch Register for CNT 1
Starting Analog Out
Default Reference
Offset with Respect to
Analog Out field
Function
%AQ0385-0386
Offset 0 and Offset 1
PreLoad Register for CNT 1
%AQ0387-0390
Offset 2 and Offset 3
Reserved
%AQ0391
Offset 4
Out 1 Duty Cycle (0 to 32000)
%AQ0392
Offset 5
Out 2 Duty Cycle (0 to 32000)
%AQ0393 Offset
6
Out 1 Frequency (0 to 65,535) Zero is
manual output control
%AQ0394 Offset
7
Out 2 Frequency (0 to 65,535) Zero is
manual output control
Starting Digital In
Default Reference
Offset with Respect to
Digital In field
Function
%I1537-1539
Offset 0 and Offset 1,
2
External input states
%I1540
Offset 3
Overflow status flag for CNT 1
%I1541
Offset 4
Underflow status flag for CNT 1
Starting Digital Out
Default Reference
Offset with Respect to
Digital Out field
Function
%Q1537
Offset 0
Latch trigger for CNT 1
%Q1538
Offset 1
Preload trigger for CNT 1
%Q1539 Offset
2 Clear
trigger for CNT 1
%Q1540
Offset 3
Preload disable for CNT 1 (1-Disable)
%Q1541 Offset
4
Counter disable for CNT 1
%Q1542
Offset 5
Latch disable for CNT 1 (1-Disable)
%Q1543 Offset
6
Underflow/overflow reset (1-Reset)
%Q1544
Offset 7
Counter Direction for CNT 1 (1-Up)
%Q1545 Offset
8 Clear
trigger for CNT 2
%Q1546
Offset 9
Counter disable for CNT 2 (1-Disable)
%Q1547
Offset 10
Counter direction for CNT 2 (1-Up)
8.5.1
PWM
Examples
Example 1
To get a 50% Duty Cycle @ 10 kHz waveform:
Set %AQ391 = 16,000
Set %AQ393 = 10,000
*Note: This output will appear on both the TTL
OUT1 output pin and the 24VDC OUT1 output
pin.
Example 2
To get a 25% Duty Cycle @ 1 kHz waveform:
Set %AQ392 = 8,000
Set %AQ394= 1,000
*Note: This output will appear on both the TTL
OUT2 output pin and the 24VDC OUT2 output
pin.