Download Print this page

Konica Minolta PCI-1712 Quick Start Manual page 65

1 ms/s, 12-bit, 16-ch highspeed multifunction card

Advertisement

outport(addr2_1712+0x22,0x80);
outport(addr2_1712+0x22,0x88);
outport(addr2_1712+0x22,0x71);
/*Reset pulse width measurement state machine, and check if CNT2's
gate input receives the measured signal*/
while(1)
{
outport(addr2_1712+0x24,0x0031);
outport(addr2_1712+0x24,0x0131);
i = inport(addr2_1712+0x24) & 0x0800;
if (i == 0x0800) break ;
}
outport(addr2_1712+0x22,0x0071); //Generate a rising edge to reset
outport(addr2_1712+0x22,0x0171); //width measurement state
//CNT2's gate input receiving the measured signal, check if finished
while(1)
{
i = inport(addr2_1712+0x24) & 0x0800;
if(i == 0x0000) break;
}
Advantech Co., Ltd.
www.advantech.com
Get other manuals https://www.bkmanuals.com
internal, and gate use for pulse
width measurement*/
//Set CNT1's gate input as high
//Generate one clock to CNT1
/*Set CNT1's clock source as
internal, gate use for pulse width
measurement, and negative
polarity*/
//Generate a rising edge to
//reset the pulse
//width measurement state
//machine
/*Check if receiving
measured signal
from gate input of
CNT2*/
//the pulse
//machine
//CNT2's gate input is low
– 53 –
PCI-1712/1712L User's Manual
Chapter 5

Advertisement

loading

This manual is also suitable for:

Pci-1712l