WinSystems PCM-AIO Скачать руководство пользователя страница 6

1.2.3

Starting an A/D conversion

The con ver sion is be gun by writ ing a word to the con trol reg is ter to se lect the chan nel

and spec ify if it is single- ended/dif fer en tial and uni po lar/bi po lar.  Out put data is latched
and the PCM- AIO sig nals the base board that con ver sion is com plete and data is avail able.
This board sets a Busy flag for use in a polled mode and can gen er ate an in ter rupt af ter each 
com pleted con ver sion.

1.2.4

A/D Input Configuration

All in put chan nel are wired to J1, a 26- pin right an gle male con nec tor.  It has the same

pin- out as Win Sys tems' MCM/LPM-A/D12.  J1 is con fig ured so that mass ter mi na tion type
flat rib bon ca ble or dis creet wires can be con nected to it.  Win Sys tems of fers the CBL- 120-3
which is a 3 foot, #28 AWG, rib bon ca ble de signed to pro vide ac cess to sig nals from the 26-
 pin, 0.100 “ grid con nec tor on the PCM- AIO board.  One end of the ca ble has a po lar ized, 26-
 pin fe male socket con nec tor with strain re lief that plugs into the board and the other end is
open to al low us ers to make their own cus tom ter mi na tion.  The CBL- 130-4 is a 4 foot, rib -
bon ca ble that will con nect the PCM- AIO to the Analog- ADP.  This board is a non- isolated
sig nal con di tioner and ter mi na tion panel.

1.2.5

Digital to Analog Converter

The PCM- AIO has two 12 bit digi tal to ana log con ver tor chan nels.  Each chan nel can be

con fig ured for ei ther a uni po lar or bi po lar out put with one of two out put ranges: 0 to 5V  or
+/-5V.   The D/A sec tion on the PCM- AIO takes 4 I/O ports.  

1.2.6

D/A Operation

Each D/A chan nel on the PCM- AIO is re set to logic zero af ter a sys tem re set.  To out put

a digi tal word to a chan nel, the low byte is writ ten to the low byte ad dress (AL WAYS
EVEN), the up per 4 bits of the 12 bit word is writ ten to the next ad dress (AL WAYS ODD).
Af ter writ ing the up per 4 bits, the chan nel is auto mati cally up dated.  It is im por tant to  note
that a chan nel is only up dated when the up per 4 bits are writ ten to the odd ad dress.

EX AM PLE: 0 to 5V uni po lar out put se lected

D/A Ports are lo cated at 100- 10B

To Out put 800 HEX to chan nel 0 (should equal 2.5V out put)
 

1. Out puT 00 HEX TO I/O PORT 108 HEX        

  

2. Out put  08 HEX TO I/O PORT 109 HEX        

When the 08 hex is writ ten to I/O Port 101, the 12 bit word will be con verted to a 2.5V

out put.

Page 1-2

OPERATIONS MANUAL PCM-AIO

980723

WinSystems - "The Embedded Systems Authority"

Содержание PCM-AIO

Страница 1: ...opyright 1993 by WinSystems All Rights Reserved NOTE This manual has been designed and created for use as part of the WinSystems Technical Manuals CD and or the WinSystems website If this manual or any portion of the manual is downloaded copied or emailed the links to additional information i e software cable drawings will be inoperable ...

Страница 2: ...REVISION HISTORY P N 403 0172 000 ECO NUMBER Date Code Rev Level ORIGINATED 032993 A 93 67 092493 A1 94 31 940817 A2 98 29 980414 A3 98 48 980723 B WinSystems The Embedded Systems Authority ...

Страница 3: ...tion 2 3 2 6 A D In put Connector 2 3 2 7 Single Ended Operation 2 3 2 8 Differential Operation 2 3 2 9 Unipolar Bipolar Operation 2 4 2 10 A D Software Interface 2 4 2 11 A D Calibration Procedure 2 5 2 12 Output Coding 2 6 2 13 A D Software Examples 2 6 2 14 D A Output Connector 2 10 2 15 D A Voltage Reference and Output Selection 2 10 2 16 D A Software Flowchart Assembly Routine 2 10 2 17 D A C...

Страница 4: ... the Visual Index has been provided with direct links to connector and jumper configuration data J7 J10 Interrupt Routing Selection J8 I O Address Selection J3 D A Output Connector J4 J5 J6 D A Output Configuration i OPERATIONS MANUAL PCM AIO 980723 J1 A D Input Connector ...

Страница 5: ...AIO uses a total of 8 I O ports and is designed to work with standard NMOS TTL or CMOS base boards 1 2 2 Analog to Digital Converter The PCM AIO contains the Maxim MAX180 12 bit data acquisition system It com bines an 8 channel input multiplexer high bandwidth Track and Hold T H low drift zener reference and flexible microprocessor interface with a high conversion speed suc cessive approximation a...

Страница 6: ... 130 4 is a 4 foot rib bon cable that will connect the PCM AIO to the Analog ADP This board is a non isolated signal conditioner and termination panel 1 2 5 Digital to Analog Converter The PCM AIO has two 12 bit digital to analog convertor channels Each channel can be configured for either a unipolar or bipolar output with one of two output ranges 0 to 5V or 5V The D A section on the PCM AIO takes...

Страница 7: ...ors our LPM MCM SX386 486 and other CPU base boards 1 3 SPECIFICATIONS 1 3 1 Electrical A D Number of Channels Up to 8 A D Resolution 12 bits Input range 0 to 5 volts single ended 2 5 to 2 5 volts differetial Coding Natural binary unipolar Two s complement bipolar Nonlinearity 1 LSB Gain error Adjustable to zero Conversion speed 10 microseconds D A Number of Channels 2 D A Resolution 12 bits Volta...

Страница 8: ...100 1 3 3 Environmental Operational Temperature 0 C to 65 C 1 3 4 Ordering Information PCM AIO 12 bit A D converter CBL 120 3 3 ft 26 conductor ribbon cable unterminated CBL 130 4 4 ft 26 conductor ribbon cable to the Analog ADP card Analog ADP Analog termination panel Page 1 4 OPERATIONS MANUAL PCM AIO 980723 WinSystems The Embedded Systems Authority ...

Страница 9: ...53 between 8AM and 5PM Central time Monday through Friday 2 2 I O Address Select The PCM AIO decodes 16 I O ports to access the board The I O port addresses are de termined by an EPAL and is controlled by jumper block J8 The figures below show the Base I O address as determined by the jumpering of J8 980723 OPERATIONS MANUAL PCM AIO Page 2 1 2 o o 4 1 o o 3 J8 2 4 6 8 10 12 o o o o o o o o o o o o...

Страница 10: ...er 4 Bits of converted data OFFSET 4 Read Bit 7 1 A D Busy 0 Conversion complete Bits 6 0 Unused 2 4 D A Registers OFFSET 8 Write Bits 7 0 Channel A LSB data OFFSET 9 Write Bits 7 4 Unused Bits 3 0 Channel A Upper 4 bits of 12 Bit ouput value OFFSET 10 Write Bits 7 0 Channel B LSB data OFFSET 11 Write Bits 7 4 Unused Bits 3 0 Channel B Upper 4 bits of 12 Bit ouput value Page 2 2 OPERATIONS MANUAL ...

Страница 11: ...an have a mixture of single ended and differential input signals by programming the appropriate channel se 980723 OPERATIONS MANUAL PCM AIO Page 2 3 WinSystems The Embedded Systems Authority 1 o o 14 2 o o 15 3 o o 16 4 o o 17 5 o o 18 6 o o 19 7 o o 20 8 o o 21 9 o o 22 10 o o 23 11 o o 24 12 o o 25 13 o o 26 1 o o 14 2 o o 15 3 o o 16 4 o o 17 5 o o 18 6 o o 19 7 o o 20 8 o o 21 9 o o 22 10 o o ...

Страница 12: ... the signal If the input source im pedance is greater than 8 kOhms then the Asynchronous Hold mode will need to be used in order to allow enough time to acquire the signal The PCM AIO will convert the analog voltage to digital data in approximately 10 uS If desired an end of conversion interrupt can be generated on the PC 104 and routed through J7 as shown earlier The interrupt con troller will ne...

Страница 13: ...t will loop continuously on one channel 2 OFFSET ZERO ADJUSTMENT TRIMPOT R3 Apply a voltage source between the selected analog channel and ground A 1uF ceramic capacitor should be used across the inputs to suppress noise Adjust the output of the volt age source to 1 2 LSB Adjust the offset zero trimming potentiometer R3 so that the out put code flickers equally between 000 HEX and 001 HEX for unip...

Страница 14: ...will in terface to the PCM AIO in synchronous polled mode for a 0 to 5 VDC unipolar input range mov dx BASE_PORT Set PC 104 Base I O Address mov al 0 Chan 0 Single Ended Unipolar out dx al Start Conversion add dx 4 Point to Status Register wait in al dx Read Status Bit test al 80H See if Conversion Finished jne wait If Not Try Again mov dx BASE_PORT Point to Low data Byte in al dx Read Low Data By...

Страница 15: ...ry ISR Pointer void interrupt Int0d void Declaration on ISR unsigned int ticks 5 convi unsigned int tar 8 0x000 0x924 0x249 0xb6d 0x492 0xdb6 0x6db 0xfff main int a b c for a 0 a2 a printf n _settextposition 1 1 printf Test for PCM AIO boards n printf To set up the board connect the Voltage Source to the points n printf indicated on the test fixture and set for 4 998 Volts n printf Adjust R3 on A ...

Страница 16: ... printf 3d abs c tar a 41 if a 0 a If abs c tar a 1 resistors used for testing printf Pass else printf Fail if a 0 a 7 If abs c tar a used for offset gain calibration printf Pass else printf Fail if kbhit break a inp 0x21 a 0x20 mask irq5 outp 0x21 a _displaycursor _GCURSORON _dos_setvect 0x0d OldRq5 _dos_setvect 0x1c OldTmr Get conversion MODE 0 Single ended Unipolar 1 Single ended Bipolar 2 Diff...

Страница 17: ...ro int getconv int ch int mode unsigned int a b c convi 0 mode 3 outp 0x100 ch mode 3 ticks 0 2 while ticks 0 inp 0x104 0x80 if ticks 0 0 _settextposition 22 1 printf Busy is stuck n if convi 0 _settextposition 23 1 printf Interrupt Failed n a inp 0x100 255 b inp 0x101 15 c b 8 a return c Timer Tick Interrupt void interrupt Int1c void int a for a 0 a a if ticks a 0 ticks a A2D Interrupt from PC 10...

Страница 18: ...be jumpered for either a 5VDC or 5VDC reference and for either unipolar or bipolar operation The following chart shows the appropriate jumper positions for these options UNIPOLAR BIPOLAR JUMPER SELECTION RANGE CHANNEL 0 CHANNEL 1 0 to 5VDC J6 3 4 J6 7 8 J5 2 3 J4 2 3 5V to 5V J6 1 2 J6 5 6 J5 1 2 J4 1 2 Page 2 10 OPERATIONS MANUAL PCM AIO 980723 WinSystems The Embedded Systems Authority 1 o o 2 3 ...

Страница 19: ... that is written to the D A The PORT_ADDRESS is the I O address that is decoded on the selected PCM AIO 980723 OPERATIONS MANUAL PCM AIO Page 2 11 WinSystems The Embedded Systems Authority 3 o 2 o 1 o 8 o o 7 6 o o 5 4 o o 3 2 o o 1 3 2 1 o o o J4 J6 J5 D A Output Configuration Jumpers J4 J5 J6 OUTPUT ROUTINE ONE CHANNEL LOAD ACC LOW BYTE VALUE OUTPUT ACC TO I O BASE 08 LOAD ACC HIGH BYTE VALUE OU...

Страница 20: ...section 2 15 4 For a unipolar output output an 0FFF HEX to the channel or channels that are being calibrated and adjust the gain adjustment potentiometers for FS 1LSB as shown in the tables below 5 For a bipolar output output an 0800 HEX to the channel or channels that are being calibrated and adjust the gain adjustment potentiometers for 0000 as shown in the tables below VOLTAGE OUTPUT FOR UNIPOL...

Страница 21: ...5 APPENDIX A MAX180 DATASHEET REPRINT ...

Страница 22: ......

Страница 23: ......

Страница 24: ......

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

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

Страница 27: ......

Страница 28: ......

Страница 29: ......

Страница 30: ......

Страница 31: ......

Страница 32: ......

Страница 33: ......

Страница 34: ......

Страница 35: ......

Страница 36: ......

Страница 37: ......

Страница 38: ......

Страница 39: ......

Страница 40: ......

Страница 41: ......

Страница 42: ...Cable Drawings CBL 120 3 3ft 26 conductor ribbon cable with one unterminated end CBL 130 4 3ft 26 conductor ribbon cable to the Analog ADP card Software Example test and calibration routines for PCM AIO PCMAIO ZIP ...

Страница 43: ...O WARRANTIES BY WINSYSTEMS EXCEPT AS STATED HEREIN THERE ARE NO OTHER WARRANTIES EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE IN NO EVENT SHALL WINSYSTEMS BE LIABLE FOR CONSEQUENTIAL INCIDENTAL OR SPECIAL DAMAGES INCLUDING BUT NOT LIMITED TO DAMAGES FOR LOSS OF DATA PROFITS OR GOODWILL WINSYSTEMS MAXIMUM LIABILITY FO...

Отзывы: