Download Print this page

Konica Minolta PCI-1712 Quick Start Manual page 64

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

Advertisement

Chapter 5
(65535-50000)/1K = 15.535 sec.
The following C program is the example to explain how to implement
the pulse width measurement by software.
outport(addr2_1712+0x26,0x00);
while(!kbhit())
{
outport(addr2_1712+0x1e,0x70);
outport(addr2_1712+0x1a,0xff);
outport(addr2_1712+0x1a,0xff);
outport(addr2_1712+0x1e,0xb0);
outport(addr2_1712+0x1c,0xff);
outport(addr2_1712+0x1c,0xff);
outport(addr2_1712+0x24,0x80);
outport(addr2_1712+0x24,0x88);
outport(addr2_1712+0x24,0x31);
PCI-1712/1712L User's Manual
Figure 5-7: Pulse width measurement
– 52 –
Get other manuals https://www.bkmanuals.com
//Set internal clock as 10 MHz
//CNT1 82C54 mode 0
//Set CNT1 low byte
//Set CNT1 high byte
//CNT2 82C54 mode 0
//Set CNT2 low byte
//Set CNT2 high byte
//Set CNT2's gate input as high
//Generate one clock to CNT2
/*Set CNT2's clock source as
Advantech Co., Ltd.
www.advantech.com

Advertisement

loading

This manual is also suitable for:

Pci-1712l