background image

 

DMM-16R-AT  User Manual V1.29        

www.diamondsystems.com

  

 

    

 

Page 1

 

 

 

 

DMM-16R-AT / DMM-16RP-AT 

Autocalibrating 16-bit Analog I/O PC/104 and PC/104-Plus Modules

 

User Manual V1.31 

 

 

 

 

 

DMM-16R-AT 

DMM-16RP-AT 

 

 

© 2017 Diamond Systems Corporation 

 

 

 

 

 

FOR TECHNICAL SUPPORT 

PLEASE CONTACT: 

[email protected]

 

 

 

Revision 

Date 

Comment

 

1.29 

02/10/2017 

Initial Release 

1.30 

02/13/2017 

Updates throughout manual 

1.31 

9/12/2017 

Update on accessing DIO ports 

Summary of Contents for DMM-16R-AT

Page 1: ...O PC 104 and PC 104 Plus Modules User Manual V1 31 DMM 16R AT DMM 16RP AT 2017 Diamond Systems Corporation FOR TECHNICAL SUPPORT PLEASE CONTACT support diamondsystems com Revision Date Comment 1 29 0...

Page 2: ...ARD CONFIGURATION 7 6 I O REGISTER MAP 10 7 REGISTER DEFINITIONS 14 8 ANALOG INPUT RANGES AND RESOLUTION 27 9 PERFORMING AN A D CONVERSION 28 10 A D SCAN INTERRUPT AND FIFO OPERATION 31 11 ANALOG OUTP...

Page 3: ...el DMM 16RP AT only NOTE For simplicity in this manual the term DMM 16R AT may be used to refer to both the PC 104 and the PC 104 Plus models of the board In instances where the information is specifi...

Page 4: ...DMM 16R AT User Manual V1 31 www diamondsystems com Page 4 2 BLOCK DIAGRAMS Figure 1 DMM 16R AT Block Diagram Figure 2 DMM 16RP AT Block Diagram...

Page 5: ...bus connector J3 User I O connector J4 A D single ended differential configuration jumper block J5 D A range and polarity configuration jumper block J6 DMA Interrupt Address configuration J7 Factory u...

Page 6: ...els 7 0 in differential mode Vin 15 7 Vin 8 0 Analog input channels 15 8 in both single ended mode Low side of input channels 7 0 in differential mode Vout0 3 Analog output channels 0 3 Vref Out 5V pr...

Page 7: ...byte location is selectable certain locations are reserved or may cause conflicts with other system resources The table below lists recommended base address settings for Diamond MM 16R AT The default...

Page 8: ...e A single ended input uses 2 wires input and ground The measured input voltage is the difference between these two wires A differential input uses 3 wires input input and ground The measured input vo...

Page 9: ...le behavior may result Both the range and polarity jumpers must be installed for proper analog output behavior 4 5 Interrupt Level Selection for ISA bus interface only Jumper block J6 is used to confi...

Page 10: ...FO status register 11 Analog Configuration Register Analog and FIFO register readback Addresses 12 15 form a window into two 4 byte pages Addresses 10 15 constitutes the extended page of 6 bytes The p...

Page 11: ...IFORST PAGE FIFOEN SCANEN CLKFRQ C2 C1 C0 11 SCNINT RANGE ADBU G1 G0 12 See next page 13 See next page 14 See next page 15 See next page READ operations 7 6 5 4 3 2 1 0 0 AD7 AD6 AD5 AD4 AD3 AD2 AD1 A...

Page 12: ...tr1D3 Ctr1D2 Ctr1D1 Ctr1D0 14 Ctr2D7 Ctr2D6 Ctr2D5 Ctr2D4 Ctr2D3 Ctr2D2 Ctr2D1 Ctr2D0 15 SC1 SC0 RW1 RW0 M2 M1 M0 BCD Page 1 Page 1 is used to manage the autocalibration features WRITE operations Bit...

Page 13: ...pages but they are different in read mode for page 2 Therefore they are included in the Read operation table below WRITE operations Bit no 7 6 5 4 3 2 1 0 12 A7 A6 A5 A4 A3 A2 A1 A0 13 B7 B6 B5 B4 B3...

Page 14: ...ored and retrieved in interleaved fashion Data from the A D is put into the FIFO in little endian mode with the LSB inserted first and the MSB inserted second Thus the data comes out of the FIFO in th...

Page 15: ...nge When the high channel is sampled the board resets to the low channel Base 3 Write Digital Output Port ISA Legacy mode Bit No 7 6 5 4 3 2 1 0 Name DIOB7 DIOB6 DIOB5 DIOB4 DIOB3 DIOB2 DIOB1 DIOB0 Wh...

Page 16: ...D A channel must have its data written in the proper sequence First write the LSB to Base 1 then write the MSB to one of the MSB registers 4 7 depending on the D A selected Repeat these two writes for...

Page 17: ...ted with PAGE bit CLRINT Clear interrupt request active only if EXTEN1 0 1 0 1 Clear interrupt request flip flop 0 No action Base 8 Read Status Register Bit No 7 6 5 4 3 2 1 0 Name STS TINT SD AINT AD...

Page 18: ...would work only if Port A is input port Base 9 Read Control readback Bit No 7 6 5 4 3 2 1 0 Name AINTE EXTPG PAGE DMODE TINTE RSVD CLKEN CLKSEL This register may be used to read the values of various...

Page 19: ...scans 0 Scan mode disabled the STS bit will remain high for a single conversion CLKFRQ Clock frequency for counter timer 1 0 10MHz 1 1MHz C2 External Clock Gate Enable 1 IN0 pin 29 on the I O header...

Page 20: ...and PAGE reads back as 0 However its register contents are preserved so that later when EXTPG returns to 0 the page returns to its previous setting of 0 or 1 FIFOEN Readback of FIFOEN bit described o...

Page 21: ...RANGE ADBU A D full scale range 0 0 5V 0 1 Invalid setting 1 0 10V 1 1 0 10V G1 0 A D gain setting G1 G0 Gain 0 0 1 0 1 2 1 0 4 1 1 8 The gain setting is the ratio between the A D full scale range sho...

Page 22: ...gister Bit No 7 6 5 4 3 2 1 0 Name Ctr1D7 Ctr1D6 Ctr1D5 Ctr1D4 Ctr1D3 Ctr1D2 Ctr1D1 Ctr1D0 Base 14 Read Write Counter 2 Data register Bit No 7 6 5 4 3 2 1 0 Name Ctr2D7 Ctr2D6 Ctr2D5 Ctr2D4 Ctr2D3 Ctr...

Page 23: ...D3 D2 D1 D0 D7 0 Calibration data to be read or written to the EEPROM and or TrimDAC During EEPROM or TrimDAC write operations the data written to this register will be written to the selected device...

Page 24: ...et to 0 When CMUXEN 0 P_MUXEN1 0 should be set to 1 TDACEN TrimDAC Enable Writing 1 to this bit will initiate a transfer to the TrimDAC used in the auto calibration process Base 14 Read Calibration St...

Page 25: ...O port A data When DIO Enhanced mode is selected this register is used to read write data to port A Alternate Functions see Counter Timer Operation Chapter A0 External A D trigger A2 Counter 0 Gate In...

Page 26: ...e FIFO contents are preserved and no new data will be written to the FIFO To clear an overflow condition the FIFO must be reset with the FIFORST bit in register 10 FF FIFO full flag set to 0 when the...

Page 27: ...ound and the board will measure the difference between the voltages of the two inputs Polarity is important for a differential input Diamond MM 16R AT will subtract the voltage on the low input from t...

Page 28: ...re to perform A D conversions on a group of consecutively numbered channels you do not need to write the input channel prior to each conversion For example to read from channels 0 2 write Hex 20 to ba...

Page 29: ...n the status register at Base 8 When the A D converter is busy performing an A D conversion this bit is 1 and when the A D converter is idle conversion is done and data is available this bit is 0 Here...

Page 30: ...A D value 32768 Full scale input range Example Input range is 5V and A D value is 17761 Input voltage 17761 32768 5V 2 710V For a bipolar input range 1 LSB 1 32768 Full scale voltage Here is an illust...

Page 31: ...s low 0 0 1 A D scans are triggered by write to B 0 All channels between LOW and HIGH will be sampled STS stays high during the entire scan multiple A D conversions No interrupt occurs The user progra...

Page 32: ...The resolution is the smallest possible change in output voltage For a 12 bit DAC the resolution is 1 2 12 or 1 4096 of the full scale output range This smallest change results from an increase or dec...

Page 33: ...Output voltage symbolic formula Output voltage for 0 5V range 0 0V 0 0000V 1 1 LSB VREF 4096 0 0012V 2047 VREF 2 1 LSB 2 4988V 2048 VREF 2 2 5000V 2049 VREF 2 1 LSB 2 5012V 4095 VREF 1 LSB 4 9988V Con...

Page 34: ...the full scale reference voltage 11 2 Write the value to the selected output channel The four DACs share a single address for the LSB Base 1 Each DAC then has its own MSB address Writing to the DAC s...

Page 35: ...at the factory and stored in the EEPROM During calibration the average offset is added to the measured output of DAC 0 and this value is used as the comparison value to minimize overall errors During...

Page 36: ...no Jumper on Pins 9 10 DIO Enhanced mode In Legacy mode the DIO ports are accessed at Base 3 To access port B outputs simply write an 8 bit value to base 3 Similarly to read the port A inputs read fr...

Page 37: ...e counter 0 external clock input are configured for the same direction Note that this setting also affects the default value for DIO A2 counter 0 gate and DIO A0 counter 1 2 gate when these pins are n...

Page 38: ...value and decrements by 1 each time a clock edge appears at the input The number of input clocks can be determined by reading the current count register and subtracting it from the original value On...

Page 39: ...ic Reference Voltage 5 000V 3mV 5mA max output current Digital I O No of IOs 16 HCT TTL compatible 3 3V 5V jumper configurable Input voltage 5V operation Logic 0 0 0V min 1 65V max Logic 1 3 35V min 5...

Reviews: