background image

24 

 

Chapter 5 Register Detail 

If you do not want to use the file "pci-1255.dll", but develop applications by working directly 

with I/O port read and write operations through PCI interface, please carefully read the following 

register description list. 

Corresponding address 

Base a Decimal offset 

address

 

Operation 

Notes 

Base address

Write 

BIT4-BIT0

Set current AD channel number

0

31

 

When  in  auto-switching  channel  mode,  set  ending 

channel number. 

BIT5

0 singled-ended

1 double-ended 

Base address

Read 

When in software start mode, read AD conversion result

lower 12 digits are valid

 

Base address

Write 

Clear hardware FIFO 

Set  current  channel  number  as  0  in  auto-switching 

channel mode. 

Base address

Read 

When in software start mode

start AD conversion once. 

When  in  external  trigger  (timing)  start  mode,  read  data 

from FIFO. 

Base address

Write 

Set 16 digits switch output status (Bit0

Bit15) 

Base address

Read 

Read 16 digits switch input status (Bit0

Bit15) 

Base address

12 

Read/Write  Return/Set counter 0 value 

Base address

16 

Read/Write  Return/Set counter 1 value 

Base address

20 

Read/Write  Return/Set counter 2 value 

Base address

24 

Write 

Set 82C54 control word 

Base address

32 

Read/Write 

Onboard register setting 

BIT0

1

AD acquiring

0

AD acquisition done 

BIT1

1

FIFO not full

0

FIFO full 

BIT2

1

FIFO not half full

0

FIFO half full 

BIT3

1

FIFO not empty

0

FIFO empty 

BIT4

1

External trigger

timing

start AD

0

software 

start AD 

BIT5

1

FIFO half full interrupt is valid

0

external trigger 

interrupt is valid 

BIT6

1

auto-switching channel

  0

fixed channel 

Base address

36 

Read 

Clear external trigger interrupt 

Содержание PCI-1255

Страница 1: ...PCI 1255 Multifunctional DAQ Device User Manual Smacq Technologies Co Ltd 2015 09 10...

Страница 2: ...ER SETTINGS 9 2 8 TIMED TRIGGER 10 CHAPTER 2 INSTALLATION AND TESTING 12 3 1 HARDWARE INSTALLATION 12 3 2 INSTALLING DRIVER 12 3 3 TESTING 13 CHAPTER 4 PROGRAMMING GUIDE 15 4 1 OVERVIEW 15 4 2 EXAMPLE...

Страница 3: ...2 GetSFifoStatus 21 ReadSFifo 22 DiRead 22 DoSet 22 CTStart 22 CTRead 23 CTStop 23 CHAPTER 5 REGISTER DETAIL 24 CHAPTER 6 SERVICE AND WARRANTY 26...

Страница 4: ...ipped with 16 digital input channels 16 digital output channels and 3 16 dit timer counter channels this is the best choice for you weighing cost control and the speed of completion Figure 1 1 shows t...

Страница 5: ...acquiring Max 500kS s Multiple channels scanning Max 200kS s Resolution 12 bit Range 0 10V or 5 5V configurable Input resistance 1M Input coupling DC Input FIFO cache 8192 sampling points Trigger mod...

Страница 6: ...5 Front connector 37 pin D type connector Back connector 40 pin IDC connector Operating temperature 0 50 Storage temperature 20 80 Dimension mm 175 106...

Страница 7: ...specific tuners and jumpers for specific settings of analog input calibration channel input mode and trigger More detail about them are in later chapters Figure 2 1 shows relative connectors and thei...

Страница 8: ...37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 OUT 0 18 OUT 2 17 AGND 16 AI 15 15 AI 14 14 AI 13 13 AI 12 12 AI 11 11 AI 10 10 AI 9 9 AI 8 8 AI 7 7 AI 6 6 AI 5 5 AI 4 4 AI 3 3 AI 2 2 AI 1 1...

Страница 9: ...33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 39 DGND 37 CLK IN 2 35 CLK IN 0 33 DGND 31 DO 14 29 DO 12 27 DO 10 25 DO 8 23 DO 6 21 DO 4 19 DO 2 17 DO 0 15...

Страница 10: ...point The regulator VR1 is used to correct the full scale and VR2 is used to correct the zero point Be aware that in the calibration process do not touch any conductive parts on the DAQ card to avoid...

Страница 11: ...al as GATE 1 7 82C54 counter 2 output as OUT 2 8 Analog input external trigger signal as EXT_TRIG 9 82C54 counter 0 clock input as CLK 0 10 82C54 counter 1 clock input as CLK 1 11 82C54 counter 2 cloc...

Страница 12: ...al input signal DI 0 to trigger AD acquisition and using 82C54 s counter 2 to trigger AD acquisition to meet the needs of different applications 82C54 Counter 0 8MHz input Frequency realization 500kHz...

Страница 13: ...are is installed Restart the computer 3 2 Installing driver On a PC running Windows OS if you installed Smacq PCI 1255 DAQ card without its driver you will see an unknown device with exclamation in th...

Страница 14: ...VC example codes included in the resource CD Open the folder of PCI 1255 demo vc Ai Soft Trig Debug run the program Ai Soft Trig exe If you see an 0 in card index option it means that the computer re...

Страница 15: ...14 Figure 3 1 Basic tests using example codes...

Страница 16: ...nctions in a sub vi and LabVIEW developers can look at the sub vi class distinctions with the vi tree and refer to the example codes inside the folder of pci 1255 demo LabVIEW example to quickly grasp...

Страница 17: ...nts from 0 Return value 0 Success 1 Failure CloseDevice long _stdcall CloseDevice unsigned long Index Parameter Close specific device Parameter Index card index select the card to close Return value 0...

Страница 18: ...ll not be used during normal programming Refer to Chapter 5 Register Detail for its offset addresses and corresponding functions if you need to use this it Parameter Index card index to select the car...

Страница 19: ...10V while a setting of 5000 means 5 5V Return value 0 Success 1 Failure AiChanSet long _stdcall AiChanSet unsigned long Index unsigned long ChanMode unsigned long AiChan Notes Set channel that is wri...

Страница 20: ...mode the max sampling rate is 500kSp s For multiple channels switching the max sampling rate is 200kSp s Return value 0 Success 1 Failure IrqEnable long _stdcall IrqEnable unsigned long Index Notes En...

Страница 21: ...software and return the specified amount of data Parameter Index card index to select the card to manage AiPts Define the amount of data to acquire pResultArr Acquired data array Return value 0 Succes...

Страница 22: ...anage Return value 1 represents failure Other values represent success 0 represents hardware FIFO is empty 1 represents hardware FIFO is not empty but not half full 2 represents hardware FIFO is near...

Страница 23: ...uired within the set time Return value 0 Success 1 Failure 2 Timeout DiRead long _stdcall DiRead unsigned long Index unsigned long DI Notes Read DI status Parameter Index card index to select the card...

Страница 24: ...Index unsigned long Chan unsigned long CTValue Notes Read 82C54 specified channel counter value Parameter Index card index to select the card to manage Chan Specified 82C54 counter channel CTValue Re...

Страница 25: ...ead When in software start mode start AD conversion once When in external trigger timing start mode read data from FIFO Base address 8 Write Set 16 digits switch output status Bit0 Bit15 Base address...

Страница 26: ...25...

Страница 27: ...for details Unless otherwise provided in this manual or warranty statement Smacq does not provide any other warranties either express or implied If you need technical support or more service details o...

Отзывы: