Page 1
DM35820HR DM9820HR DM8820HR DM7820HR Versatile High Speed Digital I/O User’s Manual BDM-610010036 Rev. E RTD Embedded Technologies, Inc. AS9100 and ISO 9001 Certified...
Page 2
RTD Embedded Technologies, Inc. 103 Innovation Boulevard State College, PA 16803 USA Telephone: 814-234-8087 Fax: 814-234-5218 www.rtd.com sales@rtd.com techsupport@rtd.com...
Page 3
Failure to follow the instructions found in this manual may result in damage to the product described in this manual, or other components of the system. The procedure set forth in this manual shall only be performed by persons qualified to service electronic equipment. Contents and specifications within this manual are given without warranty, and are subject to change without notice. RTD Embedded Technologies, Inc. shall not be liable for errors or omissions in this manual, or for any loss, damage, or injury in connection with the use of this manual.
Can be started and stopped by an interrupt or another clock Continuous or One-Shot Operation Can be cascaded • 82C54 Timer/Counters Six Timer/Counter Channels Fully programmable Input clock and gate driven from internal or external source 10 MHz maximum input | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
The Intelligent Data Acquisition Node (IDAN™) building block can be used in just about any combination with other IDAN building blocks to create a simple but rugged 104™ stack. This module can also be incorporated in a custom-built RTD HiDAN™ or HiDANplus High Reliability Intelligent Data Acquisition Node.
DIO pins may be driven to - 2.0V or + 7.0V provided these voltages last no longer than 11ns with a forcing current no greater than 100mA. Inputs are terminated with 33Ω resistors and protection diodes. DIO inputs should not be tied to voltages when the board is not powered. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Physical Characteristics • Weight: Approximately 100 g (0.22 lbs.) • Dimensions: 90.17 mm L x 95.89 mm W (3.550 in L x 3.775 in W) Figure 1: Board Dimensions (DM9820HR shown) | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
PC/104-Plus Connector PCI Master Control Force Three Master CN11 CN10 Digital I/O Digital I/O PC/104 Connector Slot Selection (DM7820 Only) Figure 2: DM7820HR and DM8820HR Connectors and Jumpers | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Connector CN10 provides 24 digital input/output lines, along with a +5V pin and ground pins. The pin assignments for CN10 are shown in Table 1. Table 4: CN10 Pin Assignments Signal Signal P2[7] Strobe2 P2[6] P2[5] P2[4] P2[3] P2[2] P2[1] P2[0] | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Slot 2 If JP2 Slot 3 If JP2 Jumper JP2 – Bus Master Control Install JP2 to enable bus mastering when in Slot 2 or Slot 3 in three bus master mode. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
The PC/104 connectors carry the signals of the PC/104-Plus ISA bus. Refer to PC/104-Plus Specification Revision 1.0 for the pinout of this connector. This is a pass-through connector. The DM7820HR connects to the power and ground pins only, and does not use any of the signals. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
14. Attach any necessary cables to the PC/104 stack. 15. Re-connect the power cord and apply power to the stack. 16. Boot the system and verify that all of the hardware is working properly. Figure 4: Example 104™Stack | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Dimensions: 151.972 mm L x 129.978 mm W x 33.934 mm H (5.983 in L x 5.117 in W x 1.339 in H) 1.339” 5.983” 5.117” 62 pin High Density “D”: female Module Part #: Adam Tech HDT62SD Mating Part #: Adam Tech HDT62PD Figure 5: IDAN Dimensions | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Dimensions: 151.972 mm L x 129.978 mm W x 16.993 mm H (5.983 in L x 5.117 in W x 0.669 in H) Front 1.339” 5.983” 5.117” 68 pin Female Module Part #: Amphenol 5390378-7 Mating Part #: Amphenol 786090-7 Back Figure 6: IDAN Dimensions | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
The PC/104 connectors carry the signals of the PC/104-Plus ISA bus. Refer to PC/104-Plus Specification Revision 1.0 for the pinout of this connector. This is a pass-through connector. The DM7820HR connects to the power and ground pins only, and does not use any of the signals. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
10. Attach any necessary cables to the IDAN system. 11. Re-connect the power cord and apply power to the stack. 12. Boot the system and verify that all of the hardware is working properly. Figure 7: Example IDAN System | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Below is a block diagram of the DMx820HR. Primary board components are in bold, while external I/O connections and jumpers are italicized. 48 Digital I/O SDRAM Digital I/O 25 MHz Clock FPGA 82C54 Timer/Counters PCI9056 or PEX8311 PCI or PCIe Bus Figure 8: DMx820HR Block Diagram | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
3.75 M-words per second. When a FIFO is looped, the data must be read and written. The table below shows examples of configurations and their maximum data rate. Note that for uniform sampling (samples are taken at uniform sampling intervals) the data rate must be an integer divisor of the 25 MHz overall clock. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Set to event desired During the Interrupt Service Routine… Change FIFO output clock to PCI Read Start DMA transfers Prog Clock 0 - Sample Input Clock Period = sample period Master Clock = any | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 27
Data In = any Data in clock = Prog Clock 0 Data out clock = Prog Clock 2 (before AdvInt0) Data out clock = PCI Read (after Adv Int0) DReq0 = Read Ready | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Generally, the registers are 16 bits wide. However, they can be read and written as 8, 16, or 32 bits. (There are a few exceptions as noted in the memory map.) 6.2.1 EMORY VERVIEW Table 9 shows the memory map of the DMx820HR digital I/O registers. These are found at the offset from BAR2. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 33
= No Stop Clock b[7:5] Reserved b[4:0] Start Trigger 31-16 = Interrupt_Bus[15-0] 15-1 = Clock_Bus [15-1] = Start Immediate 0x01C8 PRGCLK3_PERIOD b[15:0] Period of Clock Output frequency is: Master Clock Frequency PERIOD | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 34
[15:0] Port 0 Compare – Value used for interrupt on match. 0x0250 ADVINT1_PORT0_CMP b [15:0] Port 1 Compare – Value used for interrupt on match. ADVINT1_PORT1_CMP 0x0252 b [15:0] Port 2 Compare – Value used for interrupt on match. 0x0254 ADVINT1_PORT2_CMP | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 35
Interrupt Enable – ‘1’ = Interrupt is enabled, ‘0’ = disabled b[3:0] Interrupt source are: Encoder B Negative Rollover Encoder B Positive Rollover Encoder A Negative Rollover Encoder A Positive Rollover INCENC1_CLOCK b[3:0] Master Clock Source 0x02C4 15-0 = Clock_Bus [15-0] | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 36
0x0346 Reserved PWM1_PERIOD b[15:0] Period of PWM Cycle is: 0x0348 Width Clock Frequency PWMx PERIOD Reserved 0x034A- 0x034E 0x0350 PWM1_WIDTHA b[15:0] Width of output A pulse in Period Clock cycles | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
0x10 = Standard FPGA VERSION FPGA Version Identifier SVN_VERSION This register provides the source code revision control version. It is updated every time the FPGA is compiled. VERSION R,+xxxx xxxx xxxx xxxx | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
’1’ = Interrupt has occurred. Write ‘1’ to clear. IncEnc0 Interrupt from Incremental Encoder block at 0x0280 ’0’ = Interrupt has not occurred ’1’ = Interrupt has occurred. Write ‘1’ to clear. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
A diagram of the standard I/O is shown in Figure 11. Each digital I/O pin can be an input, output, or peripheral output. The peripheral outputs are the Pulse Width Modulators, FIFO, Timer/Counters, etc. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
This register selects the peripheral for Port 0, Port 1, or Port 2 when it is a peripheral output (i.e. PORTx_MODE[] = ‘1’). This register selects the peripheral for bits [15:8]. Px_15 Px_14 Px_13 Px_12 RW,+00 RW,+00 RW,+00 RW,+00 | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
FIFO1_Out[14] Port2[15] PWM1_D- Strobe2_neg FIFO0_Out[15] FIFO1_Out[15] STROBE_STATUS This register can be used to check the status of the strobe signals, as well as configure the strobes as outputs. Reserved STR2_TRI STR1_TRI | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
INT_ENA[5:0] R,+00 RC,+0 R,+00 RW,+0 Field Description Interrupt Status – ‘1’ = Interrupt condition has occurred. INT_STAT[5:0] Write ‘1’ to clear. Interrupts are asserted on the positive edge of the clock. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
128 words, which provides for efficient communication over the PCI bus, and robustly guards against over-run and under-run conditions. However, it does not allow for the FIFO to be completely filled of emptied. Reserved WRITE_REQ READ_REQ Reserved R,+0 R,+x R,+0 R,+0 RW,+0 | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
PROGCLKn_ID ID register to identify a Programmable Clock Block. ID_Register Field Description ID_Register15:0] Value of 0x1000 indicates Programmable Clock PROGCLKn_MODE Selects the mode that the Programmable Clock. Reserved MODE RW,+0 RW,+00 | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Stop Trigger. After the clock has stopped, it must be disabled and re-enabled for it to start again if in Continuous mode. The clock should be disabled before modifying this register. Reserved STOP _TRG[4:0] Reserved START _TRG[4:0] R,+0 RW,+0 R,+0 RW,+0 | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
The current value of the clock counter. COUNT[15:0] RW,+0 Field Description The current value of the clock counter. This starts at a value of COUNT[15:0] PERIOD, and counts down to 0. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
The Capture register latches the input ports when an interrupt is generated. All values are latched, regardless of the Mask register, or if the port is an input or output. Px_15 Px_14 Px_13 Px_12 Px_11 Px_10 Px_9 Px_8 R,+0 R,+0 R,+0 R,+0 R,+0 R,+0 R,+0 R,+0 | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
’0’ = Interrupt is disabled ’1’ = Interrupt is enabled. ENA_A_POS Enables interrupt when channel A transitions from 0xFFFF to 0x0000. (Positive rollover) ’0’ = Interrupt is disabled ’1’ = Interrupt is enabled. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
’0’ = Transition will change counter ’1’ = Transition will not change counter. The bit assignments for the transitions are: Previous Current Direction State [B:A] State [B:A] Down Down Down Down | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
This register can only be written to when INCENCx_MODE[ENA] = 0. This allows the counter to be pre-loaded with a known position value. VALUE[15:0] R(W),+0 Field Description VALUE[15:0] The current value of this incremental encoder channel. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
This register is used to enable and disable the Pulse Width Modulator. When disabled, all non-inverted outputs are low, and all inverted outputs are high, and interrupts are not generated. Reserved R,+0 RW,+0 | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Note that with PWMn_PERIOD set to the maximum value, and the period clock and width clock set to the same source, a 100% duty cycle is not possible. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Gate function: The gate signal setting to “L” level after the gate trigger does not affect the output. When it is set to “H” level again from “L” level, gate retriggering occurs, the CR count value is loaded again, and counting continues. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 63
The clock pulse does not decrement the initial count value. If the initial count value is N, the strobe is not output unless N+1 clock pulses are input after the initial count value is written, | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 64
CE at the falling edge of the next clock pulse, and counting continues using the new count value. The various roles of the gate input signals in the above modes are summarized in the following table. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Count value (LSB) reading New count value (LSB) writing Count value (MSB) reading New count value (MSB) writing An example of a counter latching program is given below. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 67
The status of a certain counter is read when the counter is read. The counter status format is as follows: Bits D5 to D0 indicate the mode programmed by the most recently written control word. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 68
STATUS bits, to 00. This is functionally the same as writing two separate read back commands at the same time. If counter/status latching is carried out multiple times before each reading, other than the first one is ignored here again. The example is shown below. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 69
If both the count and status are latched, the status latched in the first counter read operation is read. The order of count latching and status latching is irrelevant. The count(s) of the next one or two reading operations is or are read. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
00b = 8 bit 01b = 16 bit 10b or 11b = 32 bit Internal Wait State Counter (Address-to-Data; Data-to- Data; 0 to 15 Wait States). | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 71
Scatter/Gather descriptor when the corresponding DMA transfer is complete. Interrupt Select. Writing 1 routes the interrupt to the PCI interrupt (INTA#). Writing 0 routes the interrupt to the Local interrupt output (LINTo#). | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Description Read Write Value Value after to Use Reset 31:0 DMA Channel Local Address. Indicates from where in Local Memory space DMA transfers (reads or writes) start. DMASIZn DMA Transfer Size | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
DMA transfer, and if in the process of transferring data, suspends the transfer (pause). Start. Writing 1 causes the channel to start Yes/ transferring data if the channel is enabled. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
(C0LPAF). Number of full (Lword x 2) entries (plus 1, times 2) in the FIFO before requesting the PCI Bus for writes. Nybble values 0h through Eh may be used. (Refer to Table 17.) | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
PCI 9056 has detected a Local data parity check error, even if Parity Check Error is disabled (INTCSR[6]=0). Writing 1 clears this bit to 0. PCI Interrupt Enable. Writing 1 enables PCI interrupts (INTA#). | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 77
The BIST interrupt is enabled by writing 1 to the PCI Built-In Self-Test Interrupt Enable bit (PCIBISTR[6]=1). Clearing the Enable bit (PCIBISTR[6]=0) also clears the interrupt. Note: Refer to the PCIBISTR register for a description of the self-test. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
Page 78
MBOX2. Enabled only if the Mailbox Interrupt Enable bit is set (INTCSR[3]=1). Reading 1 indicates that the PCI Bus wrote data to MBOX3. Enabled only if the Mailbox Interrupt Enable bit is set (INTCSR[3]=1). | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
If problems persist, or you have questions about configuring this product, contact RTD Embedded Technologies via the following methods: Phone: +1-814-234-8087 E-Mail: techsupport@rtd.com Be sure to check the RTD web site (http://www.rtd.com) frequently for product updates, including newer versions of the board manual and application software. | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
For more information about programming the MSM82C54 Timer/Counter Chips, contact Oki Semiconductor at: www2.okisemi.com Interrupt Programming For more information about interrupts and writing interrupt service routines, refer to the following book: Interrupt-Driven PC System Design by Joseph McGivern ISBN: 0929392507 | www.rtd.com DMx820 User’s Manual RTD Embedded Technologies, Inc.
During the one year warranty period, RTD Embedded Technologies will repair or replace, at its option, any defective products or parts at no additional charge, provided that the product is returned, shipping prepaid, to RTD Embedded Technologies. All replaced parts and products become the property of RTD Embedded Technologies.
Page 82
RTD Embedded Technologies, Inc. 103 Innovation Boulevard State College, PA 16803 USA Telephone: 814-234-8087 Fax: 814-234-5218 www.rtd.com sales@rtd.com techsupport@rtd.com Copyright 2018 by RTD Embedded Technologies, Inc. All rights reserved.
Need help?
Do you have a question about the DM35820HR and is the answer not in the manual?
Questions and answers