Home
FP-GPIO96 User Manual - Diamond Systems Corporation
Contents
1. fromBlock Bt Bit Bt Bt Bt Bt Bt Bit Base Dec 0 T3INTEN T2INTEN TIINTEN TOINTEN DINTEN 1 IC T3INTCLR T2INTCLR TIINTCLR TOINTCLR DINTCLR 1 R T3INT T2INT TIINT TOINT DINT 2 3 4 LED 5 R SLOT2 0 6 CFG1 0 7 8 R FPGA ID minor 8 R FPGA ID major 10 R FPGA revision minor 11 R FPGA revision major 12 R Board ID minor 13 R Board ID major 14 R Board revision minor 15 C BRDRST FPGARST 15 R Board revision major BARO 112 0x70 Read Write Interrupt Enable Register This register provides interrupt enable bits for various interrupts that the FP GPIO96 board can generate The on board FPGA will not generate an interrupt unless the corresponding enable bit in this register is set to 1 T3INTEN Timer 3 interrupt enable 1 Timer 1 Interrupt is enabled When the counter 1 reaches zero the interrupt will be generated 0 Timer 1 interrupt disabled Default setting T2INTEN Timer 2 interrupt enable 1 Timer 1 Interrupt is enabled When the counter 1 reaches zero the interrupt will be generated 0 Timer 1 interrupt disabled Default setting FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 29 aaaaaaaaaaaaaaaaaaaaaallalalalalaialaaaaassssssssssl lM piamono SYSTEMS T1INTEN Timer 1 interrupt enable 1 Timer 1 Interrupt is enabled When the counter 1 reaches zero the interrupt will be
2. 230 Ctr 0 In DIO AO 1 2 DIO A1 CtrO Gate 229 226 Ctr 1 In DIO A2 3 4 DIO A3 Ctr 1 Gate 225 222 Ctr 2 In DIO A4 5 6 DIO A5 Ctr 2 Gate 221 218 Ctr 3 In DIO A6 7 8 DIO A7 Ctr 3 Gate 217 214 Ctr 4 In DIO BO 9 10 DIO B1 Ctr 4 Gate 213 210 Ctr 5 In DIO B2 11 12 DIO B3 Ctr 5 Gate 209 206 Ctr 6 In DIO B4 13 14 DIO B5 Ctr 6 Gate 205 202 Ctr 7 In DIO B6 15 16 DIO B7 Ctr 7 Gate 201 198 Ctr O0 Out DIO CO 17 18 DIO C1 Ctr 1 Out 197 194 Ctr 2 Out DIO C2 19 20 DIO C3 Ctr 3 Out 193 190 Ctr 4 Out DIO C4 21 22 DIO C5 Ctr 5 Out 189 186 Ctr 6 Out DIO C6 23 24 DIO C7 Ctr 7 Out 185 182 DIO DO 25 26 DIO D1 181 178 DIO D2 27 28 DIO D3 177 174 DIO D4 29 30 DIO D5 173 170 DIO D6 31 32 DIO D7 169 166 DIO E0 33 34 DIO E1 165 162 DIO E2 35 36 DIO E3 161 160 DIO E4 37 38 DIO E5 159 158 DIO E6 39 40 DIO E7 157 156 PWM 0 DIO FO 41 42 DIO F1 PWM 1 155 154 PWM 2 DIO F2 43 44 DIOF3 PWM3 153 152 WDT In DIO F4 45 46 DIO F5 WDT Out 151 150 DIO F6 47 48 DIO F7 Interrupt In 149 148 3 3V 49 50 Ground 147 Signal Name Definition DIO A7 A0 Digital I O port A DIO B7 BO Digital I O port B DIO C7 CO Digital I O port C also functions as counter timers 0 1 and PWM 0 1 DIO D7 DO Digital I O port D also functions as counter timers 2 3 and PWM 2 3 DIO E7
3. Offset 7 6 5 4 3 2 1 0 0 CTRD7 0 1 CTRD15 8 2 CTRD23 16 3 CTRD31 24 4 W CTRN7 0 5 C CTRCMD3 CTRCMD2 CTRCMD1 CTRCMDO CCD1 CCDO 6 7 CTRIO1 CTRIOO 8 PWMD7 0 9 PWMD15 8 10 PWMD23 16 11 W PWCMD3 PWCMD2 PWCMD1 PWCMDO PWMCD PWM2 PWM1 PWMO 12 W 13 W 14 C 14 R 15 The FP GPIO96 contains 8 32 bit up down counter timers with programmable functions The counters are programmed using a command register at address 5 in the counter block a counter number register at address 4 and a 32 bit data register CTRD31 0 at addresses 0 3 Offset 7 6 5 4 3 2 1 0 5 C CTRCMDS CTRCMD2 CTRCMD1 CTRCMDO CCD1 CCDO CTRCMD3 0 selects the command to execute on the counter specified in register 4 CCD1 0 is additional data to be used in combination with certain commands 0000 Clear the selected counter 0001 Load the selected counter with data in registers 0 3 This is used for down counting operations only 0010 Select count direction CCDO 1 means count up and CCD0 0 means count down 0011 Enable disable external gate CCDO 1 means enable gating CCDO 0 means disable gating This function is valid for counter 1 only When this command is selected for counter 1 DIO pin P_AUX5 is reconfigured as an input and used for counter 1 gate FP GPIO96 User Manual Rev A 01 www diamondsystems com Page
4. Dec Deo Hex Function 0 0 15 0 F 1 16 31 10 1F 2 32 47 20 2F DIO group A 3 48 63 30 3F Counters PWM 4 64 79 40 4F 5 80 95 50 5F 6 96 111 60 6F DIO group B 7 112 127 70 7F Interrupts Misc and ID 8 128 143 80 8F 9 144 159 90 9F 10 160 175 AO AF 11 176 191 BO BF 12 192 207 CO CE 13 208 223 DO DF 14 224 239 EO EF SPI Flash Interface 15 240 255 FO FF The FP GPIO96 board is a PCI Express based design and has 255 bytes of addressable registers as shown in the table above Since in PCI architecture the I O base address is obtained as a result of a PCI scan on the Vendor ID and Device ID of the PCI device the base address is not shown in the table instead offsets from the base address BARO are shown for individual functional blocks The FP GPIO96 Vendor ID is 0x1COE and the Device ID is 0x0900 When a PCI scan is performed using these two IDs the board is detected and the register BARO gets the base address for the start of where registers are mapped For the user application the address information of BARO serves as the base address of the board and the rest of the registers are all accessed as an offset from the BARO address In the following material register block addresses are shown in a format as in this example BARO 32 0x20 Read Write Command A D Block Registers Where the address is given as BARO offset amount with the number in decimal and the hex equivalent in parentheses Thi
5. enable and start counting on the selected counter More information on individual commands is provided in the sections below 8 3 1 Counter Timer commands The counter timers can be controlled using various commands shown in the table below CTRCMD3 0 Control Bits Ba p egister le Command ECH coD Action Value 010 00 Clear Counter X x 0x00 Load the selected counter with data in 0 10 0 1 CTRD32 0 x x 0x10 x 1 Count up 0x21 010 110 Select Count Direction X 0 Count down 0x20 Enable Disable External gate When X 1 Enable Gating 0x31 ool l this command is selected for Counter 1 DIO pin AUX5 is reconfigured as an X 0 Disable Gating 0x30 input and used for Counter 1 gate x 1 Enable Counting 0x41 0 1 00 Enable Disable counting S x 0 Disable Counting 0x40 0 1 0 1 Latch Selected counter X D 0x50 0 x Counter Input pin 0x60 011 110 Select Counter clock source 1 0 Internal CLK 50MHz 0x62 1 1 Internal CLK 5MHz 0x63 X 0 Reset selected OxFO 1 4 441 Reset selected or both counters counter x 1 Reset both counters OxF 1 The programming details for each of the commands follow FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 41 Q piamonn SYSTEMS 8 3 1 1 CLEAR COUNTER To clear the counter the following sequence should be used BYTE counter number counter_command outp base 34 counter number counter_number
6. 0 or 1 counter_command 0x00 clear the selected counter outp base 35 counter_command issue the clear command 8 3 1 2 LOAD COUNTER To load the counter the command 0x10 should be used as below BYTE counter_number counter_command again using an example of loading the value of 0x1388 in counter 0 counter_number 0 or 1 outp base 34 counter_number outp base 30 0x88 counter LSB outp base 31 0x13 counter MSB outp base 35 0x10 Load the counter selected 8 3 1 3 SELECT COUNT DIRECTION The count direction for the selected counter can be set using the control bits CCD1 CCDO as explained in the table above The command to use is either 0x20 or 0x21 and the sequence is as below e To set the counter 0 in down count mode outp base 52 0 select counter 0 outp base 55 0x20 down count direction e To set the counter 1 in up count mode outp base 52 1 select counter 1 outp base 55 0x21 down count direction 8 3 1 4 ENABLE DISABLE GATING Gating can be enabled on counter 1 only and the sequence to enable disable gating is as below outp base 52 1 select counter 1 outp base 55 0x31 enable gating Alternatively to disable gating outp base 55 0x30 disable gating 8 3 1 5 ENABLE DISABLE COUNTING After the counter data is loaded in the counter register for the selected counter as shown in the section 1
7. When port A is in output mode the output signal lines DIO A7 0 see Section 3 3 will be set to the values in this register and reading this register will read back the programmed value When port A is in input mode this register will read back the logic levels on signal lines DIO A7 0 and writing to this register will have no effect The direction of port A is controlled by the bit DIRA in the DIO control register at BARO 40 The DIO port A defaults to input mode on power up and all the register bits reset to 0 BARO 33 0x21 Read Write Digital I O port B DIOB7 0 This register is used for digital I O on byte addressable port B When port B is in output mode the output signal lines DIO B7 0 see Section 3 3 will be set to the values in this register and reading this register will read back the programmed value When port B is in input mode this register will read back the logic levels on signal lines DIO B7 0 and writing to this register will have no effect The direction of port B is controlled by bit DIRB in the DIO control register at BARO 41 The DIO port B defaults to input mode on power up and all the register bits reset to 0 BARO 34 0x22 Read Write Digital I O port C DIOC7 0 This register is used for digital UO on byte addressable port C When port is in output mode the output signal lines DIO C7 0 see Section 3 3 will be set to the values in this register and reading this register will read back the program
8. and G M are 8 bit ports with direction programmable byte by byte Register bits DIR A B D G M control the direction of these ports and also the direction of the port pins where a value of 0 input and 1 output In output mode the values in these registers drive their associated I O pins The logic levels on the I O pins may be read back in both input and output modes These ports reset to 0 and input mode during power up reset FRGARST 1 or BRDRST 1 If a port is in input mode its output register may still be written to When the port is switched to output mode the value of the output register will drive the corresponding I O pins Port C is divided into two 4 bit nibbles with independent direction control DIRCH controls the direction of DIOC7 4 and DIRCL controls the direction of DIOC3 0 Ports E F are 8 bit ports with direction programmable bit by bit according to register bits DIRE7 0 and DIRF7 0 where a value of 0 input 1 output I O pins DIOF3 0 may be reassigned as PWM outputs see the PWM block description Ports A B C and F may be reassigned as counter timer PWM and watchdog timer I O pins see the following sections 4 2 Counter Timer and PWM Block The FP GPIO96 contains 8 32 bit up down counter timers and 4 PWM generators The counter timers have programmable functions that are controlled and configured using registers at BAR0 48 to 55 The counter timers can be used to generate interrupts on the PCI Express bus Fo
9. generated 0 Timer 1 interrupt disabled Default setting TOINTEN Timer 0 interrupt enable 1 Timer 0 Interrupt is enabled When the counter 0 reaches zero the interrupt will be generated 0 Timer 0 interrupt disabled Default setting DINTEN DIO interrupt enable 1 DIO Interrupt is enabled The FPGA will generate an interrupt when any of the DIO ports is in Mode of operation When DINTEN 1 DIOF6 7 are reassigned as follows DIOF6 is a latch signal with input direction and default value high DIOF7 is an acknowledge signal with output direction and default value high 0 DIO interrupt is disabled BARO 113 0x71 Command Write Interrupt Flip Flop Reset Register This register provides different command bits for resetting various interrupt flip flop bits For every interrupt type a clear bit is provided which is required to be set to 1 by the interrupt service routine after every execution If the corresponding clear bit is not set in the ISR the FPGA will not generate any more interrupts This register accepts only one command at a time T3INTCLR Timer 3 interrupt request flip flop reset bit 1 Causes the timer 3 interrupt request flip flop to be reset 0 NO ACTION T2INTCLR Timer 2 interrupt request flip flop reset bit 1 Causes the timer 2 interrupt request flip flop to be reset 0 NO ACTION T1IINTCLR Timer 1 interrupt request flip flop reset bit 1 Causes the timer 1 interrupt request flip f
10. 23 piamono SYSTEMS 0100 Enable disable counting CCDO 1 means enable counting CCDO 0 means disable counting 0101 Latch selected counter A counter must be latched before its contents can be read Latching can occur while the counter is counting The latched data is available in CTRD31 0 0110 Select counter clock source and frequency according to CCD1 0 CCD1 CCDO Function 0 x Counter input pin see next page active low 1 0 Internal clock 50MHz 1 1 Internal clock 5MHz 1111 Reset the counter If CCDO 0 then only the counter specified in register 4 is reset If CCDO 1 then all counters are reset disabling all counters and clearing all registers to zero Thus a command of OxFF will reset all counters The counters are enabled on digital I O lines using the CTRIOO and CTRIO1 bits in the register located at offset 7 A 1 for the associated counter enable bit enables four of the counter I O signals on the specified digital I O lines and forces those lines to the directions specified in the table A 0 disables four of the counter I O signals and maintains the I O lines as standard digital I O lines The counter timer inputs and outputs are assigned to pins of ports A B and C according to the following tables Function Digital UO pin Direction when CTRIOO 1 Counter 0 In P_DIOAO Input Counter 0 Gate P_DIOA1 Input C
11. its output register may still be written to When the port is switched to output mode the value of the output register will drive the corresponding I O pins Ports E F are 8 bit ports with direction programmable bit by bit according to register bits DIRE7 0 and DIRF7 0 where a value of 0 input 1 output I O pins DIOF3 0 may be reassigned as PWM outputs see the PWM circuit description 7 1 Digital UO Configuration Register The direction control register is programmed by writing to the registers at offset 40 45 Once you have set the port directions with this register you can read and write to the ports as desired These registers allow you to set the direction as well as the mode of operation for the respective ports Below are several examples on how to configure various DIO ports To configure DIO port A as output port outp base 40 0x01 DIRA 1 bit 0 To configure DIO port D as input port outp base 43 0x00 DIRD 0 bit 0 To configure DIO port F bits 4 7 as input and bits 0 3 as output outp base 45 OxOF 7 2 Outputting data to a DIO port To output data on a DIO port the DIO data register corresponding to the port being used should be written with the value that needs to be output For example to output 0x55 on DIO port A outp base 40 0x01 SET DIO PORT A DIRECTION AS OUTPUT DIRA 1 outp base 32 0x55 WRITE THE DATA REGISTER TO SEND THE DATA OUT FP GPIO96 User Manual
12. start to count down from their initial values and the output if enabled is driven to its active state When C1 reaches 0 it stops counting and the output if enabled returns to its inactive state When CO reaches 0 both counters reload to their initial values and the cycle repeats If C1 0 then duty cycle 0 If C1 CO then duty cycle 100 the output should be glitch free The PWM command register has two fields namely PWM Command in bits PWCMD3 0 and PWM circuit number in bits PWM2 0 The bit PWMCD is additional data for use by certain commands The default setting for all parameters is 0 since the default reset value for all registers in this circuit is 0 If a PWM output is not enabled its output is forced to the inactive state which is defined as the opposite of the value selected with command 0010 in PWMCMD3 0 The PWM may continue to run even though its output is disabled PWM outputs may be made available on Auxiliary DIO port s I O pins DIOFO to DIOF3 by writing a command value of 0101 to the PWM command register When a PWM output is enabled the corresponding pin on DIOFn is forced to output mode regardless of the DIRFn direction control bit To make the pulse appear on the output pin command 0011 must additionally be executed otherwise the output will be held in inactive mode the opposite of the selected polarity for the PWM output FP GPIO96 User Manual Rev A 01 Page 45 www diamondsystems com 10 SPECI
13. value When port H is in input mode this register will read back the logic levels on signal lines DIO H7 0 and writing to this register will have no effect The direction of port H is controlled by bit DIRH in the DIO control register at BARO 109 The DIO port H defaults to input mode on power up and all the register bits reset to 0 BARO 98 0x62 Read Write Digital UO port J Bit No Name Reset value DIOJ7 0 This register is used for digital I O on byte addressable port J When port J is in output mode the output signal lines DIO J7 0 see Sec 3 3 are set to the register s values and reading this register reads back the programmed value When port J is in input mode this register reads back the logic levels on signal lines DIO J7 0 writing to this register does nothing The direction of port C is controlled by bit DIRJ in the DIO control register at BARO 110 The DIO port J defaults to input mode on power up and all the register bits reset to 0 BARO 99 0x63 Read Write Digital UO port K Bit No Name Reset value DIOK7 0 This register is used for digital I O on byte addressable port K When port K is in output mode the output signal lines DIO K7 0 see Section 3 3 will be set to the values in this register and reading this register will read back the programmed value When port K is in input mode this register will read back the logic levels on signal lines DIO K7 0 and writing to this register will have no effect The direction of p
14. 0 213 214 VOA 9 V OB 40 101 102 OB 39 NC 215 216 NC OB 38 103 104 OB 37 VOA 8 217 218 VOA 7 V OB 36 105 106 OB 35 NC 219 220 NC V OB 34 107 108 V OB 33 VOA 6 221 222 VOA 5 V OB 32 109 110 OB 31 NC 223 224 NC OB 30 111 112 OB 29 VOA 4 225 226 VOA 3 OB 28 113 114 OB 27 NC 227 228 NC VOA 2 229 230 VOA 1 FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 9 Q piamonn SYSTEMS 3 3 Digital UO Signals 3 3 1 Primary I O connector The signals on this connector have multiple definitions The power up definition is 6 8 bit digital I O ports configured as inputs Up to 8 counter timers 4 pulse width modulators 1 watchdog timer and 1 external interrupt source can also be independently enabled on selected I O pins as shown in the diagram below Counters are enabled in groups of 4 When counter group 1 is enabled counters 0 3 inputs appear on port A which is configured as input and the outputs appear on Port C 0 3 which is configured as output When counter group 2 is enabled counters 4 7 inputs appear on port B which is configured as input and the outputs appear on Port C 4 7 which is configured as output The signals on this port have programmable pull up down resistors All signals are pulled in the same direction using a control register bit Each connector group may have independently configured pull up down FeaturePak pin no UO pin no FeaturePak pin no
15. 1 1 PULL UP PULL UP The value written in these bits are stored on a non volatile on board memory The board powers up to the status saved in these bits A board reset will NOT result in these bits being reset to their factory defaults BARO 119 0x77 BARO 120 0x78 Bit No 7 Reset value FPGA ID minor Read Read UNUSED FPGA ID Minor Register 2 Ts Ts fst ER o Po Te ye To JTofo To Tr This register provides information on the FPGA ID This register will read 0x00 FP GPIO96 User Manual Rev A 01 www diamondsystems com piamono SYSTEMS BARO 121 0x79 Read FPGA ID Major Register FPGA ID major This register will return the major ID number of the FPGA At present it will read 0x09 BARO 122 0x7A Read FPGA Revision Register FPGA revision minor Returns a value of 0x00 BARO 123 0x7B Read FPGA Revision Register FPGA revision major Returns a value of 0x01 BARO 124 0x7C Read Board ID Minor Register Be Reset value a pr a a u a FPGA ID minor This register holds the FPGA ID minor LSB for the product Every DSC product has an FPGA ID FP GPIO96 has an FPGA ID of 0x0801 This register always returns 0x01 BARO 125 0x7D Read Board ID Major Register a Ke Reset value 0o o of i 0 FPGA ID major This register holds the FPGA ID major MSB for the product This register always returns 0x08 FP GPIO96 User Manual Rev A 01 www diamond
16. 157 under software control rather than being hardwired 8 3 Counter Timer Access and Programming All the programming information regarding using the counter timer of the FP GPIO96 board is given in the Counter block register descriptions The counter programming registers are available from offset 48 to 53 from the base address of BARO NOTE In the following examples all of the register offset numbers are provided in decimal To program the counter timer the following sequence of operations needs to be performed 1 Write the counter number to the counter number register For example to use Counter 1 outp base 52 1 USING COUNTER 1 FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 40 piamono SYSTEMS 2 Write the count value to the counter data register This value should be calculated based on the desired counter value as a divisor from the clock source used For example if the clock source for the counter is 50MHz clock and the desired counter value is 10KHz the value that should be written to the counter data registers is 50 000 000 10 000 5000 decimal or 0x1388 outp base 48 0x88 LSB of counter data outp base 49 0x13 MSB of counter data outp base 50 0x00 UPPER BITS SHOULD BE 0 outp base 51 0x00 UPPER BITS SHOULD BE 0 3 Write the counter command to the command register to execute the desired function For example to enable counter 0 outp base 3 0x41
17. 4 15 BARO 224 0xE0 Read Write SPI Transmit Data Register SPITXD7 0 This register holds the data to be written to the SPI flash memory on the board The FP GPIO96 board s firmware is held in this memory If invalid data pattern is written to the device the board will become unusable BARO 225 0xE1 Read Write SPI Receive Data Register SPIRXD7 0 These bits provide the data read from the SPI flash device FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 34 a piamono SYSTEMS BARO 226 0xE2 Write SPI Command Register ee lela la rl u e Reset value SPICMD7 0 These bits indicate the type of command to send to the SPI flash device The commands are as below The following SPI commands are available 0x01 WRSR write status register 0x02 PP page program 0x03 RD read data 0x04 WRDI write disable 0x05 RDSR read status register 0x06 WREN write enable 0x0B RD fast read data OxAB RES read signature OxC7 BE bulk erase 0xB9 DP deep power down OxD8 SE sector erase OxFF NOP no command to execute end current command BARO 227 0xE3 Read SPI Status Register This register provides status information on the SPI communication interface between the FPGA and the SPI flash device SPIRXRDY SPI flash ready to receive status bit 1 When the SPI receive buffer has at least one byte available for reading SPI RX FIFO not empty 0 SPI receive buffer is empty SPITXRDY SPI flash ready to transm
18. 4 4 2 of this document the counter MUST be enabled to start the counter After the counter has been started it can be disabled using a different command as below load the counter as in section 14 4 2 Do not change the counter select register in base 52 outp base 55 0x41 start the selected counter Alternatively to stop the counter outp base 55 0x40 stop the selected counter FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 42 piamono SYSTEMS 8 3 1 6 LATCH AND READ COUNTER To read the counter value it MUST be latched first otherwise the contents of the counter registers would not represent the current value of the counter The sequence to latch and read the counter 0 is as below BYTE ctr_byte0 ctr_byte1 ctr_byte2 ctr_byte3 outp base 52 0 select counter 0 outp base 55 0x50 issue latch command ctr_byteO inp base 48 First byte of counter data ctr_byte1 inp base 49 Second byte of counter data ctr_byte2 inp base 50 Third byte of counter data ctr_byte3 inp base 51 Fourth byte of counter data 8 3 1 7 SELECT COUNTER SOURCE The counter source needs to be selected before actually starting a counter As it can be seen from the table there can be three different clock sources which the counter can use to performing counting operations The clock source selection for the selected counter can be performed using only the correspond
19. 4 Reserved Ground VOA 50 147 148 VOA 49 3 3V Ground 35 36 Ground VOA 48 149 150 VOA 47 USB Ch1 37 38 USB Ch2 VOA 46 151 152 VOA 45 USB Ch1 39 40 USB Ch2 VOA 44 153 154 VOA 43 Ground 41 42 Ground VOA 42 155 156 VOA 41 3 3V 43 44 USB OC1 2 VOA 40 157 158 VOA 39 3 3V 45 46 Serial RX1 VOA 38 159 160 VOA 37 Serial TX1 47 48 Serial CTS1 VOA 36 161 162 VOA 35 Serial RTS1 49 50 SMBclk NC 163 164 NC SMBalert 51 52 SMBdata VOA 34 165 166 VOA 33 Slot ID 2 53 54 Slot ID 1 NC 167 168 NC Slot ID 0 55 56 Present VOA 32 169 170 VOA 31 JTAG TDI 57 58 JTAG TDO NC 171 172 NC JTAG CLK 59 60 JTAG TMS VOA 30 173 174 VOA 29 Sys Reset 61 62 Reserved NC 175 176 NC 3 3V 63 64 Ground VOA 28 177 178 VOA 27 3 3V 65 66 Ground NC 179 180 NC Reserved 67 68 Reserved VOA 26 181 182 VOA 25 Reserved 69 70 Reserved NC 183 184 NC 3 3V 71 72 Ground VOA 24 185 186 VOA 23 Reserved 73 74 Reserved NC 187 188 NC Reserved 75 76 Reserved VOA 22 189 190 VOA 21 3 3V 77 78 Ground NC 191 192 NC Reserved 79 80 Reserved VOA 20 193 194 VOA 19 Reserved 81 82 Reserved NC 195 196 NC Reserved 83 84 Reserved VOA 18 197 198 VOA 17 Reserved 85 86 Reserved NC 199 200 NC 5V 87 88 Ground VOA 16 201 202 VOA 15 5V 89 90 Ground NC 203 204 NC Ground I OB 50 91 92 OB 49 3 3V VOA 14 205 206 VOA 13 OB 48 93 94 OB 47 NC 207 208 NC OB 46 95 96 OB 45 VOA 12 209 210 VOA 11 V OB 44 97 98 OB 43 NC 211 212 NC OB 42 99 100 OB 41 VOA 1
20. 5 DIOD7 0 36 DIOE7 0 37 DIOF7 0 38 39 40 DIRA 41 DIRB 42 DIRCH DIRCL 43 DIRD 44 DIRE7 0 45 DIRF7 0 46 47 GROUP B Offset 7 6 5 4 3 2 1 0 from BARO 96 DIOG7 0 97 DIOH7 0 98 DIOJ7 0 99 DIOK7 0 100 DIOL7 0 101 DIOM7 0 102 103 104 DIRG 105 DIRH 106 DIRJ 107 DIRK 108 DIRL 109 DIRM 110 111 FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 37 piamono SYSTEMS DIOx7 0 DIO port n data where x A H J M DIR A D Direction control bits for DIO ports A D DIR G H J M 0 Port is Input 1 Port is an Output DIRE7 0 Direction control bits for DIO port E 0 Respective bit is input 1 Bit is output DIRF7 0 Direction control bits for DIO port F 0 Respective bit is input 1 Bit is output Ports A D are 8 bit ports with direction programmable byte by byte Register bits DIRA D control the direction of these ports and also the direction of the port pins where a value of 0 input and 1 output In output mode the values in these registers drive their associated I O pins The logic levels on the I O pins may be read back in both input and output modes These ports reset to 0 and input mode during power up reset FPGARST 1 or BRDRST 1 If a port is in input mode
21. DIO J7 117 116 DIOKO 25 26 DIOK1 115 114 DIOK2 27 28 DIOK3 113 112 DIO K4 29 30 DIO K5 111 110 DIOK6 31 32 DIOK7 109 108 DIOLO 33 34 DIOL1 107 106 DIOL2 35 36 DIOL3 105 104 DIOL4 37 38 DIOLS 103 102 DIOL6 39 40 DIOL7 101 100 DIO MO 41 42 DIO Mi 99 98 DIO M2 43 44 DIO M3 97 96 DIO M4 45 46 DIO M5 95 94 DIO M6 47 48 DIO M7 93 92 3 3V 49 50 Ground 91 Signal Name Definition DIO G7 GO Digital UO port G byte direction programmable buffered DIO H7 HO Digital I O port H byte direction programmable buffered DIO J7 JO Digital I O port J byte direction programmable buffered DIO K7 KO Digital I O port K byte direction programmable buffered DIO L7 LO Digital I O port L byte direction programmable buffered DIO M7 MO Digital I O port M byte direction programmable buffered 3 3V 3 3V power from system Ground Digital ground FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 11 piamono SYSTEMS 4 THEORY OF OPERATION This chapter provides an orientation to the functional architecture of blocks on the board Additional details are in the register programming section and specific chapters on various blocks 4 1 DIO Blocks The FP GPIO96 has twelve 8 bit bidirectional digital UO ports named A F and G M The DIO blocks are controlled and configured using registers at BARO 32 to 47 for ports A F and BAR0 96 to 111 for ports GM Ports A B D
22. E0 Digital I O port E also functions as counter timers 4 5 and interrupt input DIO F7 FO Digital I O port F also functions as counter timers 6 7 and watchdog timer I O In 1 10 Counter input signals Gate 1 10 Counter gate signals Out 1 10 Counter output signals PW M3 0 Pulse width modulator outputs WDTOUT WDTIN Watchdog timer I O signals Interrupt Interrupt input 3 3V 3 3V power from system Ground Digital ground FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 10 piamono SYSTEMS 3 3 2 Secondary I O connector The signals on this connector have a single definition 6 8 bit digital UO ports with each port s direction independently programmable All ports power up in input mode and all output registers power up to 0 The signals on this port have programmable pull up down resistors All signals are pulled in the same direction using a control register bit Each connector group may have independently configured pull up down FeaturePak pin no UO pin no FeaturePak pin no 140 DIO GO 1 2 DIO G1 139 138 DIO G2 3 4 DIO G3 137 136 DIO G4 5 6 DIO G5 135 134 DIO G6 7 8 DIO G7 133 132 DIO HO 9 10 DIOH1 131 130 DIO H2 11 12 DIO H3 129 128 DIOH4 13 14 DIOH5 127 126 DIOH6 15 16 DIOH7 125 124 DIO JO 17 18 DIOJ1 123 122 DIO J2 19 20 DIO J3 121 120 DIO J4 21 22 DIO J5 119 118 DIO J6 23 24
23. FICATIONS Host Interface Interface type Digital UO Q piamonn SYSTEMS PCI Express x1 Ports A B C D E F G H J K L M Number of I O lines 96 Compatibility LVTTL Pull up pull down Programmable Input voltage Low 0 0V min 0 8V max High 2 0V min 5 5V max Input current 340uA max Output voltage Low 0 0V min 0 4V max High 2 4V min 5 5V max Output current Counters Timers 8 general purpose counters PWMs PWMs General FeaturePak Operating temperature Power Input Power Consumption Weight RoHS Ports A B and D 24mA per pin max 200mA per port max Port C low 24mA per pin max Port C high 24mA per pin max Ports E and F 32mA per pin max 32 bit up down counter 50MHz 5MHz or external clock input Four independent 24 bit PWMs with user selectable clock at either 1MHz or 50MHz Compliant zero height expansion 40 C to 85 C 40 F to 185 F 3 3VDC 330mW typical without external load 0 5 oz 14g Compliant FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 46
24. FP GPIO96 FeaturePak UO Module with 96 Digital I O Points Rev A 01 November 2013 Revision Date Comment A 00 1 17 11 Initial version A 01 11 14 13 Added pinout information FOR TECHNICAL SUPPORT PLEASE CONTACT support diamondsystems com Copyright 2013 Diamond Systems Corporation 1255 Terra Bella Ave Mountain View CA 94043 USA Tel 1 650 810 2500 Fax 1 650 810 2525 www diamondsystems com Q piamonn SYSTEMS CONTENTS Important Safe Handling Information ssssssssnseununnnunnnuunnnunnnunnnunnnunnnunnnunnnnnnnnnnnnnnnnnnnnnnn anneanne annn nnnn ennn nnnn anann na 3 1 gt Introduction ee ege Eege EE 4 1 1 e e EE 4 To EE 4 1 3 FeaturePak Resources eene Eesen ee ee EE dee EE EES eege Eed 5 2 Functional e ET 6 2 1 Functional Block Diagrami eee ne ee nee eee eee eee eee eae eae ee eae ee naae ee eee eee 6 CN ee DRAWING TEE 7 3 Connector Pinout and Pin Description uuusrennssesnnnnnannnnnnnnnnnnunnnnnnnnnnnnnnnnnnnnnnnnannnnnnnnnannnnnannnnnnnnnannnnnannnnnnn 8 28 1 FeaturePak Connector nennen na nenn degen naher age ernennen 8 3 1 1 CEDIES eege ergeet dE ENEE ee CERN 8 3 1 2 System Interface Signals n seeeeeeeeeeeeeeneee eese nsse restte srtsstessrensttnsttnstentttnstenttnnnttnttnnntnnnttnntnnnennnenn nenn ne nn 8 3 2 FeaturePak Connector Pinot 9 33 Kei Re Ee 10 3 3 1 Primary VO CONNGEClOr ciate i naar ENEE ee ee 10 28 32 Secondary I O connector ar
25. IO or counter timer IO CTRIOO controls the selection between DIO port A with DIO port CL and counter timers 0 3 CTRIO1 controls the selection between DIO port B with DIO port CH and counter timers 4 7 When either bit is 0 the DIO ports are active and the counter timer signals are disabled When either bit is 1 the DIO ports are disabled and the counter timer signals are active BARO 56 0x38 Read Write PWM Data Register 0 LSB Bit No Name Reset value PWMD7 0 This register holds the LSB of the 24 bit PWM data value BARO 57 0x39 Read Write PWM Data Register 1 Bit No z e KE PWMD15 8 This register holds the second byte of the PWM data value FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 27 piamono SYSTEMS BARO 58 Ox3A Read Write PWM Data Register 2 MSB DEER EE CR aa ee Reset value PWMD23 16 This register holds the MSB of the 23 bit PWM data value BARO 59 0x3B Write PWM Control Register This register provides PWM command information for various PWM operations The different combinations of the register bits invoke the PWM command as shown in the table below PWCMDS3 0 These bits contain the PWM command to execute on the PWM block The details of commands are as below 0000 0001 0010 0011 0100 0101 0110 0111 Stop all selected PWM as indicated by PWMCD 0 stop all PWMs opposite polarity for all compared to other commands 1 stop PWM se
26. Rev A 01 www diamondsystems com Page 38 piamono SYSTEMS 7 3 Reading data from a DIO port To read data from a DIO port the DIO data register corresponding to the port being used should be read and the value read from the register corresponds to the actual data on the DIO lines For example to read DIO port B outp base 41 0x00 SET DIO PORT B DIRECTION AS INPUT DIRB 0 value inp base 33 READ THE DATA REGISTER TO GET THE DATA ON DIO LINES 8 COUNTER TIMER OPERATION The FP GPIO96 provides eight 32 bit counter timers The counter timers can be used using the registers at offset 48 52 as shown in the table below e asso 7 6 5 4 3 2 1 0 48 CTRD7 0 49 CTRD15 8 50 CTRD23 16 51 CTRD31 24 52 CTRN7 0 53 CTRCMD3 CTRCMD2 CTRCMD1 CTRCMDO CCD1 CCDO CTRD31 0 Counter data to provide the counter duration CTRN7 0 Counter number register 0 through 7 CTRCMD3 0 Counter command bits CCD1 0 Additional control bits for counter behavior 8 1 Counter Timer Features and Configuration Options Counter 0 can be used as a programmable A D sampling clock If not being used for A D sampling these counter timers may be used for other functions Counter timer 1 is always available for user applications The inputs of the counter timers are programmable and the outputs may be routed to the I O header under software control The table below lists the key f
27. ad is completed BARO 48 0x30 Read Write Counter Byte 0 LSB Bit No Name Reset value This register is used for all counters The selected counter holds the LSB of the counter data for the counter indicated by the counter number register When writing to this register the value is written to an internal register first and when a command is issued at the Counter command register at BARO 53 the value is actually reflected in the selected counter When reading from this register the value returned by the register is the value that was latched on the last latch command issued to the counter Thus the value returned is not the value written to the counter BARO 49 0x01 Read Write Counter Byte 1 This register is used for all counters The counter holds byte 1 of the counter data for either counter indicated by the counter number register When writing to this register the value is written to an internal register first and when a command is issued at the Counter command register at BARO 53 the value is actually reflected in the selected counter When reading from this register the value returned by the register is the value that was latched on the last latch command issued to the counter Thus the value returned is not the value written to the counter BARO 50 0x02 Read Write Counter Byte 2 This register is used for all counters The counter holds byte 2 of the counter data for either counter indicated by the counter
28. d has components very close to the board edge they can be damaged or even knocked off the board when the board tilts back in the rack Diamond recommends that all our boards be stored only in individual ESD safe packaging If multiple boards are stored together they should be contained in bins with dividers between boards Do not pile boards on top of each other or cram too many boards into a small location This can cause damage to connector pins or fragile components Power supply wired backwards Our power supplies and boards are not designed to withstand a reverse power supply connection This will destroy each IC that is connected to the power supply i e almost all ICs In this case the board will most likely will be unrepairable and must be replaced A chip destroyed by reverse power or by excessive power will often have a visible hole on the top or show some deformation on the top surface due to vaporization inside the package Check twice before applying power Overvoltage on digital I O line If a digital I O signal is connected to a voltage above the maximum specified voltage the digital circuitry can be damaged On most of our boards the acceptable range of voltages connected to digital I O signals is 0 5V and they can withstand about 0 5V beyond that 0 5 to 5 5V before being damaged However logic signals at 12V and even 24V are common and if one of these is connected to a 5V logic chip the chip will be damaged and the damage co
29. ding to a programmable timer on the board Individual control bits are used to enable each type of interrupt Since the FP GPIO96 board works on PCI Express bus architecture the interrupt level is obtained as a result of a PCI scan performed by the device driver To obtain the interrupt level used by the board DSC provides a default device driver which can perform low level PCI commands and provide user level access to the board The driver is from a third party driver developer and is called WinDriver If you do not wish to use this driver and would like to develop your own driver you need to be knowledgeable on the PCI PCI express system architecture as well as the device driver model and architecture details for your chosen operating system FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 13 Q piamonn SYSTEMS 6 I O REGISTERS The FP GPIO96 register map consists of 256 bytes divided into 16 16 byte blocks in the system I O address space Direct register access is not required if you are using Diamond s Universal Driver software that ships with the board The driver handles all board access and provides a high level set of functions to simplify programming The information presented here and in the next chapter is intended to provide a detailed description of the board s features and operation as well as for programmers who are not using the Universal Driver software 6 1 UO Map Summary
30. e EENS 11 4 Theory OF Operation 2 2 022 E dE 12 4 1 DIO BIOCKS eebe ee 12 4 2 Counter Timer and PWM Block 12 43 ue 12 Bi Tee Be ue Un E 13 5 1 Configuring Using Universal Driver 13 5 2 Configuring Using Register Operations sseseeesseesresiresirssirssirssirssrnnsrissrinstnnsrnnntnnntnnntnntnnnntnn ttnn nten tennent 13 5 2 1 aeaaea E E seele O E A E EA 13 Box ED E Eo EIE e E dee 14 6 1 VO Map SUMIMANY sess seele einen ia 14 6 2 VO Register Deta lls u nennen aeaaaee a aaiae deg 15 6 2 1 BARO 32 0x20 DIO Block A Heoieters 16 6 2 2 BARO 32 0x20 DIO Block B Heoieters 20 6 2 3 BARO 48 0x30 Counters PWM Block Heolsterg 23 6 2 4 BARO 112 0x70 Interrupts Miscellaneous and ID Block Heosters 29 6 2 5 BARO 224 0xE0 SPI Flash Interface Block Registers ssseseesenesnesirssinssiresrnesrnssrnssrresrresrn 34 T Digital e Bal E e RE 37 7 14 Digital UO Configuration Register uursnsersnsnnsnennnnnnonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnen 38 7 2 Outputting data to a DIO port 38 7 3 Reading data from a DIO port 39 8 Counter Timer Operation sissien aa a anna EEGEN See iaaii 39 8 1 Counter Timer Features and Configuration Options sssssssssssssssesrresriesrissrisstintrinttnnntnnttnnntnnntnuntnnnenn nnt 39 8 2 Counter Timer Configuration sssssssssssssrresrrstnstnsstusttustt tatt tnstuntE nast EA AE ESSEEN SEEN AEEA AEEA AE EAEE EA EEEE Annn EEEE nn
31. ePak standard The user I O consists of 100 signals organized as 2 50 pin groups On a general purpose baseboard these signals directly drive 2 50 pin I O connectors The 50 pin connectors may then be connected to application specific cabling or an I O adapter board may be plugged onto them to provide a custom I O connector configuration for the system enclosure A custom or application specific main board may elect to use these signals in any way desired without conflicting with the standard A special feature of the FeaturePak I O pin assignment is the electrical isolation provided on 32 of the module I O pins on the primary 50 pin connector These pins are separated from each other and from other connector pins by 34 unassigned pins marked NC which are to be left unconnected on the main board no pads or traces leading to these pins The module omits the corresponding fingers on the edge connector 3 1 1 PCI Express The FP GPIO96 uses a single PCI Express x1 link for its host interface and does not use the USB or serial interfaces allowed in the FeaturePak specification It is reset by the PCl Reset input signal The module routes the Slot ID signals to a register for readback by the host and it drives the Present output line low 3 1 2 System Interface Signals Not all functionalities that are defined in the FeaturePak socket standard are supported by the FP GPIO96 module For example the USB SMBus and serial port interfaces are not ut
32. eatures of each counter timer FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 39 piamono SYSTEMS Counter Timer Configuration Options Counter Input Gate Output 40MHz on board 0 4MHz on board Gate EN on DIOA1 External clock on DIOAO 40MHz on board 1 4MHz on board Gate EN on DIOA3 External clock on DIOA2 40MHz on board 2 4MHz on board Gate EN on DIOA5 External clock on DIOA4 40MHz on board 3 4MHz on board Gate EN on DIOA7 External clock on DIOA6 40MHz on board 4 4MHz on board Gate EN on DIOB1 External clock on DIOBO 40MHz on board 5 4MHz on board Gate EN on DIOB3 External clock on DIOB2 40MHz on board 6 4MHz on board Gate EN on DIOB5 External clock on DIOB4 40MHz on board 7 4MHz on board Gate EN on DIOB7 External clock on DIOB6 Available on DIOCO of the FeaturePak connector Available on DIOC1 of the FeaturePak connector Available on DIOC2 of the FeaturePak connector Available on DIOC3 of the FeaturePak connector Available on DIOC4 of the FeaturePak connector Available on DIOC5 of the FeaturePak connector Available on DIOC6 of the FeaturePak connector Available on DIOC7 of the FeaturePak connector 8 2 Counter Timer Configuration The counter timer configuration is determined by the control register at BARO 53 in the Counter Command Register as described in the register description Note that the outputs of counter 1 can be routed to pin
33. en nn nennt 40 8 3 Counter Timer Access and Programming 40 8 3 1 Counter Timer commande manner nnnnnen 41 8 4 Timer interrupts uunnsnsnnnnnnnonnnnnnnnnnnnnannnnnnannnnnnnannnnnnannennnnannennnnannennnnannennnnannennnnannennnnannennnnannennnnannennn 44 9 PWM Operation E 45 10 SPECIFICATIONS E 46 FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 2 piamono SYSTEMS IMPORTANT SAFE HANDLING INFORMATION WARNING ESD Sensitive Electronic Equipment Observe ESD safe handling procedures when working with this product Always use this product in a properly grounded work area and wear appropriate ESD preventive clothing and or accessories Always store this product in ESD protective packaging when not in use Safe Handling Precautions The FP GPIO96 board contains a high density connector with many connections to sensitive electronic components This creates many opportunities for accidental damage during handling installation and connection to other equipment The list here describes common causes of failure found on boards returned to Diamond Systems for repair This information is provided as a source of advice to help you prevent damaging your Diamond or any vendor s embedded computer boards ESD damage This type of damage is usually almost impossible to detect because there is no visual sign of failure or damage The symptom is that the board eventually simply stops working because some component becom
34. es defective Usually the failure can be identified and the chip can be replaced To prevent ESD damage always follow proper ESD prevention practices when handling computer boards Damage during handling or storage On some boards we have noticed physical damage from mishandling A common observation is that a screwdriver slipped while installing the board causing a gouge in the PCB surface and cutting signal traces or damaging components Another common observation is damaged board corners indicating the board was dropped This may or may not cause damage to the circuitry depending on what is near the corner Most of our boards are designed with at least 25 mils clearance between the board edge and any component pad and ground power planes are at least 20 mils from the edge to avoid possible shorting from this type of damage However these design rules are not sufficient to prevent damage in all situations A third cause of failure is when a metal screwdriver tip slips or a screw drops onto the board while it is powered on causing a short between a power pin and a signal pin on a component This can cause overvoltage power supply problems described below To avoid this type of failure only perform assembly operations when the system is powered off Sometimes boards are stored in racks with slots that grip the edge of the board This is a common practice for board manufacturers However our boards are generally very dense and if the boar
35. igured as an output port 0 DIO Port C7 4 is configured as an input port Default setting DIRCL Direction control bit for DIO port C lower 4 bits 1 DIO Port C3 0 is configured as an output port 0 DIO Port C3 0 is configured as an input port Default setting FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 18 piamono SYSTEMS BARO 40 0x29 Read DIO Port C Configuration This register provides a read back of the configuration of DIO port C DIRCH Direction control bit for DIO port C upper 4 bits 1 DIO Port C7 4 is configured as an output port 0 DIO Port C7 4 is configured as an input port Default setting DIRCL Direction control bit for DIO port C lower 4 bits 1 DIO Port C3 0 is configured as an output port 0 DIO Port C3 0 is configured as an input port Default setting BARO 41 Ox2A Write DIO Port D Configuration Bit No Name Reset value This register is used to configure the direction and mode control of the DIO port D The DIO port D can be configured in either input or output direction DIRD Direction control bit for DIO port D 1 DIO Port D is configured as an output port 0 DIO Port D is configured as an input port Default setting BARO 41 Ox2A Read DIO Port D Configuration Bit No Name Reset value This register provides a read back of the configuration of DIO port D DIRD Read back of the direction setting of DIO port D 1 DIO port D is configu
36. ilized on this card FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 8 3 2 FeaturePak Connector Pinout piamono SYSTEMS This section indicates standard FeaturePak connector signal assignments The I OA and I OB pin groups are mapped to specific I O functions implemented by the FP GPIO96 board as indicated in following sections Pins 1 114 Pin 115 230 3 3V 1 2 12V OB 26 115 116 V OB 25 3 3V 3 4 PS Current OB 24 117 118 OB 23 Ground 5 6 Ground OB 22 119 120 OB 21 PCle TX1 7 8 PCle RX1 OB 20 121 122 OB 19 PCle TX1 9 10 PCle RX1 OB 18 123 124 V OB 17 Ground 11 12 Ground OB 16 125 126 V OB 15 PCle CLK1 13 14 PCle CLK2 OB 14 127 128 V OB 13 PCle CLK1 15 16 PCle CLK2 OB 12 129 130 OB 11 Ground 17 18 Ground OB 10 131 132 OB 9 PCle TX2 19 20 PCle RX2 OB 8 133 134 V OB 7 PCle TX2 21 22 PCle RX2 V OB 6 135 136 V OB 5 Ground 23 24 Ground V OB 4 137 138 OB 3 PCle Reset 25 26 Reserved V OB 2 139 140 OB 1 Reserved 27 28 Reserved 5V 141 142 Ground Reserved 29 30 Reserved 5V 143 144 Ground Reserved 31 32 Reserved 5V 145 146 Ground Reserved 33 3
37. ing command write to the counter command register outp base 55 0x62 use 50 Mhz clock as source for the selected counter Alternatively outp base 55 0x63 use 5 Mhz clock as source for the selected counter Or outp base 55 0x60 use external clock source for counter clock 8 3 1 8 RESET COUNTER The register map allows either resetting an individual counter or both the counters on the board When the reset command is executed on a counter the counter data resets to a value of 0 To reset an individual counter for example counter 0 outp base 52 0 select counter 0 outp base 55 OxFO issue reset selected counter command Alternatively to reset both counters the counter selection register at Base 34 is ignored and the command to write is outp base 55 OxF1 issue reset counter command to both counters FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 43 piamono SYSTEMS 8 4 Timer interrupts The FP GPIO96 counters can be used to generate interrupts on the PCI bus at a regular programmable rate To use the interrupts the following should be done e Select the counter to use e Write the count value in the counter data register for the timing that is required e Enable the respective Timer interrupt enable bit For timer 0 use TOINTEN bit and set it to 1 For timer 1 use T1INTEN bit and set it to 1 Please note that both the timers cannot be used at the same ti
38. irection control Counter Timers and Triggering 8 32 bit counter timers for timing and general purpose use 4 24 bit pulse width modulator circuits Miscellaneous One PCI Express x1 lane host interface 3 3VDC input voltage FeaturePak form factor compliant Zero height expansion module 40 C to 85 C operating temperature Universal Driver software support FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 4 piamond SYSTEMS 1 3 FeaturePak Resources The following table identifies which resources among those defined by the FeaturePak specification that are used in this product FeaturePak Module Resources Company Diamond Systems Corp Product FP GPIO96 Host Interface Resources Supported USBchannels Serialport SMBus PCleReset yo SysReset Yo O mas LI o y O 33v O Joo yY C EC Notes www featurepak org label FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 5 2 FUNCTIONAL OVERVIEW 2 1 Functional Block Diagram PCle x1 FP GPIO96 Block Diagram 3 x 8 bit Buffers 48 Digital 1 0 8 Counter Timers 4 PWM 16 x 1 bit Buffers 6 x 8Hit Buffers FPGA Controller 48 Digital 1 0 Q piamonn SYSTEMS 24 Digital 1 0 8 Digital Lo 16 Digital 1 0 48 Digital LO FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 6 Q piamonn SYSTEMS 2 2 Board Drawing 2 100 IN pt 0 450 IN 0 450 IN ke Moun
39. it status bit 1 When the SPI transmit buffer has room for at least one byte of transmit data SPI TX FIFO not full 0 SPI transmit buffer is empty SPIBUSY SPI busy status bit Application software must check this bit before performing any operation on the SPI bus 1 SPI circuit is busy 0 SPI circuit is IDLE FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 35 piamono SYSTEMS BARO 228 0xE4 Read Write SPI Address Register LSB Reset value SPIA7 0 This register holds the LSB of the 24 bit SPI address The SPI address is required for every read write operation BARO 229 0xE5 Read Write SPI Address Register Byte 2 Bit No Name Reset value SPIA15 8 This register holds the second byte of the 24 bit SPI address The SPI address is required for every read write operation BARO 230 0xE6 Read Write SPI Address Register Byte 3 Bit No SPIA23 16 This register holds the MSB of the 24 bit SPI address The SPI address is required for every read write operation FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 36 piamono SYSTEMS 7 DIGITAL I O OPERATION The FP GPIO96 has twelve 8 bit bidirectional digital I O ports named A M excluding I The DIO block is controlled and configured using registers at BARO 32 to 67 as shown in the tables below GROUP A Offset 7 6 5 4 3 2 1 0 from BARO 32 DIOA7 0 33 DIOB7 0 34 DIOC7 0 3
40. lected with PWM2 0 Command 0x00 stop all PWMs Load counter CO or C1 selected by PWMCD 0 load CO period counter 1 load C1 duty cycle counter Set polarity for output according to PWMCD The pulse occurs at the start of the period 0 pulse high 1 pulse low Enable disable pulse output as indicated by PWMCD 0 disable pulse output output opposite of polarity setting from command 0010 1 enable pulse output Clear all selected PWM as indicated by PWMCD 0 clear PWM selected with PWM2 0 1 clear all PWMs Enable disable PWM outputs on DIO port F according to PWMCD 0 disable output 1 enable output on DIOFn where n PWM number this forces DIOFn to output mode Select clock source for PWM indicated by PWM2 0 according to PWMCD both counters CO and C1 use the same clock source 0 50MHz 1 5MHz Start all selected PWM as indicated by PWMCD 0 start PWM selected with PWM2 0 1 start all PWMs Command 0x7F start all PWMs FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 28 Q piamonn SYSTEMS PWMCD Additional control bit that performs a selection on the command indicated by PWMCMD3 0 The functionality of this bit is described above with PWMCMD3 0 bits PWM2 0 PWM circuit number The command indicated by PWMCMD3 0 is applied to the PWM circuit indicated by these bits 6 2 4 BARO 112 0x70 Interrupts Miscellaneous and ID Block Registers
41. lop to be reset 0 NO ACTION TOINTCLR Timer 0 interrupt request flip flop reset bit 1 Causes the timer 0 interrupt request flip flop to be reset 0 NO ACTION DINTCLR DIO interrupt request flip flop reset bit 1 Causes the DIO interrupt request flip flop to be reset 0 NO ACTION FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 30 BARO 114 0x71 Bit No Read Interrupt Status Register Q D SYSTEMS I 2 u This register provides status information on the interrupts generated by the FPGA The user program can monitor the respective bits in this register to obtain the status on the interrupt that was configured TAINT Timer 1 interrupt status 1 Timer 1 interrupt is pending 0 Timer 1 interrupt is not pending TOINT Timer 0 interrupt status 1 Timer 0 interrupt is pending 0 Timer 0 interrupt is not pending DINT DIO interrupt status 1 DIO interrupt is pending 0 DIO interrupt is not pending BARO 118 0x76 Read Write Board Configuration Settings Bit No Name Reset value CFG1 0 These bits provide information on the NVRAM on the board which holds the board configuration data These bits provide the pull up down configuration of both Group A and Group B DIO lines as shown in the table below CFG1 CFGO DIO GROUPA DIO GROUPB Pull up down Pull up down 0 0 PULL DOWN PULL DOWN 0 1 PULL UP PULL DOWN 1 0 PULL DOWN PULL UP
42. manual and can be accessed online at http docs diamondsystems com dscud manual Main Page html The Universal Driver software comes on the Diamond Resource CD shipped with this product or may be downloaded from the FP GPIO96 webpage at www diamondsystems com products fpgpio96 5 2 Configuring Using Register Operations The board can also be controlled using simple register read write commands if you are willing to write your own driver In typical modern operating systems the user level applications cannot directly access the low level system information and don t have register level access In order to communicate with any PCI device a device driver is required The Universal Driver mentioned above can be also be used to do register level control and a programmer could develop his own driver functionality that uses simple register read write command after performing a PCI scan using the Universal Driver Users of this type of access need to understand the board register map which is defined in later sections of this manual This type of approach is suitable for someone who is very aware of the nature of low level operations of hardware 5 2 1 Interrupt level Interrupts are used for hardware I O operations that are independent of normal program flow The FP GPIO96 can be set up to generate interrupts under several circumstances The board can generate interrupts to transfer digital data into the board as well as at regular intervals accor
43. me to generate interrupts e Enable the respective counter timer e Upon interrupt check for the respective timer interrupt by reading the status bit TOINT for timer 0 and T1INT for timer 1 e To generate the next interrupt reset the respective timer interrupt request flip flop by writing 1 to either TOINTCLR or T1INTCLR bits If this bit is not reset in the interrupt service routine the board will not generate any more interrupts FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 44 piamono SYSTEMS 9 PWM OPERATION The FP GPIO96 board has four PWM timers each with a 24 bit resolution The PWM circuit works very similarly to the counter timer circuit and has similar register architecture The PWM circuit is controlled using the registers at offset 56 to 60 as shown in the table below Offset 7 6 5 4 3 2 1 0 56 PWMD7 0 57 PWMD15 8 59 PWMD23 16 60 PWCMD3 PWCMD2 PWCMD1 PWCMDO PWMCD PWMe2 PWM1 PWMO PWMD23 0 24 bit PWM data This is the PWM data for period as well as duty cycle PWMCMD3 0 PWM Command byte PWMCD PWM2 0 Additional control bit for use by certain commands along with PWMCMD3 0 PWM circuit to use Each PWM consists of a pair of 24 bit down counters named CO and C1 The C1 counter defines the duty cycle active portion of the signal and the CO counter defines the period of the signal When the PWM is enabled both counters
44. med value When port C is in input mode this register will read back the logic levels on signal lines DIO C7 0 and writing to this register will have no effect The direction of port C is controlled by bit DIRCH and DIRCL in the DIO control register at BARO 42 The DIO port C defaults to input mode on power up and all the register bits reset to 0 FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 16 Q piamonn SYSTEMS BARO 35 0x23 Read Write Digital I O port D Bit No Name Reset value DIOD7 0 This register is used for digital I O on byte addressable port D When port D is in output mode the output signal lines DIO D7 0 see Section 3 3 will be set to the values in this register and reading this register will read back the programmed value When port D is in input mode this register will read back the logic levels on signal lines DIO D7 0 and writing to this register will have no effect The direction of port D is controlled by bit DIRD in the DIO control register at BARO 43 The DIO port D defaults to input mode on power up and all the register bits reset to 0 BARO 36 0x24 Read Write Digital UO port E Bit No Name Reset value DIOE7 0 This register is used for digital I O on bit addressable port E When port E is in output mode the output signal lines DIO E7 0 on see Section 3 3 will be set to the values in this register and reading this register will read back the programmed value When port E is in inp
45. number register When writing to this register the value is written to an internal register first and when a command is issued at the Counter command register at BARO 53 the value is actually reflected in the selected counter When reading from this register the value returned by the register is the value that was latched on the last latch command issued to the counter Thus the value returned is not the value written to the counter FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 25 piamono SYSTEMS BARO 51 0x03 Read Write Counter Byte 3 MSB REI DENGE GE EEE Reset value This register is used for all counters The counter holds byte 3 lt MSB of the counter data for either counter indicated by the counter number register When writing to this register the value is written to an internal register first and when a command is issued at the Counter command register at BARO 53 the value is actually reflected in the selected counter When reading from this register the value returned by the register is the value that was latched on the last latch command issued to the counter Thus the value returned is not the value written to the counter BARO 52 0x34 Write Counter Number Register Bit No Name Reset value CTRN7 0 Counter number register Values of 0 through 7 are valid values for this register BARO 53 0x35 Write Counter Command Register This register has various commands to control the behavior
46. of the counter selected by the value in the Counter Number register CTRCMD3 0 These bits provide the following control commands for the counter timer clear load enable disable reset latch and select counter clock source CCD1 0 These bits are additional control bits and operate with the CTRCMD3 0 bits to provide additional ability to control the counter behavior Their use is explained in the following table FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 26 piamono SYSTEMS CTRCMD3 0 Control Bits SE 7 egister alalu tp Command ey EES Action aa 010 0 0 Clear Counter X D 0x00 Load the selected counter with data in 0 0 9011 STRD32 0 X X 0x10 i X 1 Count up 0x21 010 110 Select Count Direction X 0 Count down 0x20 x 1 Enable Gating 0x31 olo Jia Enable Disable External counter gate x 0 Disable Gating 0x30 oli lolo Enable Disabl ii X 1 Enable Counting 0x41 nable Disable counting g x 0 Disable Counting 0x40 0 1 0 1 Latch Selected counter x x 0x50 0 x Counter Input pin 0x60 011 110 Select Counter clock source 1 0 Internal CLK 40MHz 0x62 1 1 Internal CLK 4MHz 0x63 X 0 Reset selected OxFO 1111111 Reset the counters counter X 1 Reset both counters OxF1 BARO 55 0x37 Write Counter I O Register Po fo Reset value CTRIO1 0 These bits determine the function of the DIO ports A B and C between digital
47. ol of the DIO port A The DIO port A can be configured in either input or output direction DIRG Direction control bit for DIO port G 1 DIO Port G is configured as an output port 0 DIO Port G is configured as an input port Default setting BARO 104 0x68 Read DIO Port G Configuration Bit No Name Reset value This register provides a read back of the configuration of DIO port G DIRG Read back of the direction setting of DIO port G 1 DIO port A is configured as an output 0 DIO port A is configured as an input Default setting BARO 105 0x69 Write DIO Port H Configuration Bit No Name Reset value This register is used to configure the direction and mode control of the DIO port H The DIO port H can be configured in either input or output direction DIRH Read back of the direction setting of DIO port H 1 DIO port H is configured as an output 0 DIO Port H is configured as an input port Default setting FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 22 Q piamonn SYSTEMS BARO 105 0x70 Read DIO Port H Configuration Bit No Name Reset value This register provides a read back of the configuration of DIO port H DIRH Read back of the direction setting of DIO port H 1 DIO port B is configured as an output 0 DIO port B is configured as an input Default setting 6 2 3 BARO 48 0x30 Counters PWM Block Registers
48. ort D is controlled by bit DIRK in the DIO control register at BARO 111 The DIO port K defaults to input mode on power up and all the register bits reset to 0 BARO 100 0x64 Read Write Digital UO port L Bit No Name Reset value DIOL7 0 This register is used for digital I O on bit addressable port L When port L is in output mode the output signal lines DIO L7 0 on see Section 3 3 will be set to the values in this register and reading this register will read back the programmed value When port L is in input mode this register will read back the logic levels on signal lines DIO L7 0 and writing to this register will have no effect The direction of port L is controlled by DIRL7 0 bits in the register at BAR0 112 Each bit in the direction register controls the direction of the corresponding port bit The DIO port L defaults to input mode on power up and all the register bits reset to 0 FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 21 piamono SYSTEMS BARO 101 0x65 Read Write Digital UO port M E KEE e Ee E Reset value DIRM Direction control bit for DIO port M 1 DIO Port M is configured as an output port 0 DIO Port M is configured as an input port Default setting The DIO port M defaults to input mode on power up and all the register bits reset to 0 BARO 104 0x68 Write DIO Port G Configuration Bit No Name Reset value This register is used to configure the direction and mode contr
49. ounter 0 Output P_DIOCO Output Counter 1 In P_DIOA2 Input Counter 1 Gate P_DIOA3 Input Counter 1 Output P_DIOC1 Output Counter 2 In P_DIOA4 Input Counter 2 Gate P_DIOA5 Input Counter 2 Output P_DIOC2 Output Counter 3 In P_DIOA6 Input Counter 3 Gate P_DIOA7 Input Counter 3 Output P_DIOC3 Output Function Digital UO pin Direction when CTRIO1 1 Counter 4 In P_DIOBO Input Counter 4 Gate P_DIOB1 Input Counter 4 Output P_DIOC4 Output Counter 5 In P_DIOB2 Input Counter 5 Gate P_DIOB3 Input Counter 5 Output P_DIOC5 Output Counter 6 In P_DIOB4 Input Counter 6 Gate P_DIOB5 Input Counter 6 Output P_DIOC6 Output Counter 7 In P_DIOB6 Input Counter 7 Gate P_DIOB7 Input Counter 7 Output P_DIOC7 Output FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 24 piamono SYSTEMS If the counter I O signals are disabled the counter may still operate using an internal clock source and no gating however external clock and gate functions will not function Each counter s output operates as follows When disabled or during normal counting operation the output is 0 When count direction is up the output is always 0 When count direction is down then when the counter reaches 0 the output will go high and the counter will immediately reload to its initial value Thus a counter value of n will result in a divide by n output pulse rate If a counter latch command is requested during this process the command will be delayed until the relo
50. r details see sections on Interrupt registers and Chapter 7 2 The counters are programmed using a command register at address 5 in the counter block a counter number register at address 4 and a 32 bit data register CTRD31 0 at addresses 0 3 There are four independent 24 bit PWM generators that are controlled and configured using registers at BARO 56 to 59 The PWM generators are programmed using a register at address 11 for command and PWM number and a 24 bit data register PWMD23 0 at addresses 8 10 4 3 Interrupts Interrupts to the PCI Express Bus can be generated by any of these blocks DIO or the counter timers 0 3 Register control is provided for enabling disabling interrupts by using registers at BARO 112 and 113 FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 12 piamono SYSTEMS 5 BOARD CONFIGURATION The jumperless FP GPIO96 FeaturePak module is configured by software The board must first be initialized then configured These operations can be done either using Diamond s Universal Driver version 7 0 or higher or by an independent set of equivalent register operations 5 1 Configuring Using Universal Driver Diamond Systems provides a device driver which will enable access to the board functionalities via an easy to use API set This driver is called the Universal Driver and is available in Windows XP and Linux 2 6 xx operating systems The details on the Universal driver can be found in the Universal Driver
51. red as an output 0 DIO port D is configured as an input Default setting FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 19 KEE Q piamonn SYSTEMS BARO 42 0x2C Read Write DIO Port E Configuration Bit No Name Reset value This register controls the direction for DIO port E Each of the DIO port E bits is controllable individually using corresponding bit in this register as either input or output DIRE7 0 These bits provide direction configuration of the DIO port E When any bit is 0 the corresponding DIO port E bit is configured as an input while the port bit acts as an output when the corresponding bit in this register is set to 1 The default value of this register is 0 which means that all bits of DIO port E are configured as inputs Below are a few examples of various configurations DIRE7 0 OxOF Port E bits 7 6 5 and 4 are input while bits 3 2 1 and 0 are output DIRE7 0 DCH Port E bits 7 and 6 are output and all other bits are inputs BARO 43 0x2D Read Write DIO Port F Configuration Bit No Name Reset value This register controls the direction for DIO port F Each of the DIO port F bits is controllable individually using corresponding bit in this register as either input or output DIRF7 0 These bits provide direction configuration of the DIO port F When any bit is 0 the corresponding DIO port F bit is configured as an input while the port bit acts as an output when the cor
52. responding bit in this register is set to 1 The default value of this register is 0 which means that all bits of DIO port F are configured as inputs 6 2 2 BARO 32 0x20 DIO Block B Registers These registers provide control of digital I O ports To use the ports they must first be configured using Mode and Dir fields and then can be read from and written to BARO 96 0x60 Read Write Digital UO port G Bit No Name Reset value DIOG7 0 This register is used for digital UO on byte addressable port G When port G is in output mode the output signal lines DIO G7 0 see Section 3 3 will be set to the values in this register and reading this register will read back the programmed value When port G is in input mode this register will read back the logic levels on signal lines DIO G7 0 and writing to this register will have no effect The direction of port G is controlled by the bit DIRG in the DIO control register at BARO 104 The DIO port G defaults to input mode on power up and all the register bits reset to 0 FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 20 piamono SYSTEMS BARO 97 0x61 Read Write Digital UO port H Bit No Name Reset value DIOH7 0 This register is used for digital UO on byte addressable port H When port H is in output mode the output signal lines DIO H7 0 see Section 3 3 will be set to the values in this register and reading this register will read back the programmed
53. s configured as an input port Default setting FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 17 piamono SYSTEMS BARO 38 0x26 Read DIO Port A Configuration Bit No Name Reset value This register provides a read back of the configuration of DIO port A DIRA Read back of the direction setting of DIO port A 1 DIO port A is configured as an output 0 DIO port A is configured as an input Default setting BARO 39 0x27 Write DIO Port B Configuration Bit No Name Reset value This register is used to configure the direction and mode control of the DIO port B The DIO port B can be configured in either input or output direction DIRB Read back of the direction setting of DIO port B 1 DIO port B is configured as an output 0 DIO Port B is configured as an input port Default setting BARO 39 0x28 Read DIO Port B Configuration Bit No Name Reset value This register provides a read back of the configuration of DIO port B DIRB Read back of the direction setting of DIO port B 1 DIO port B is configured as an output 0 DIO port B is configured as an input Default setting BARO 40 0x29 Write DIO Port C Configuration This register is used to configure the direction and mode control of the DIO port C Each half of the DIO port C can be configured in either input or output direction DIRCH Direction control bit for DIO port C upper 4 bits 1 DIO Port C7 4 is conf
54. s is followed by the register block group name Registers are Read Read Write Write or Command where Command registers can be written but cannot be read from FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 14 Q oiamonn SYSTEMS 6 2 I O Register Details This section describes the location and general behavior of specific bits in each I O map register In all register definitions below any bit without a name is not defined and serves no function GROUP A Offset 4 3 1 0 0 DIOA7 0 1 DIOB7 0 2 DIOC7 0 3 DIOD7 0 4 DIOE7 0 5 DIOF7 0 6 7 8 DIRA 9 DIRB 10 DIRCH DIRCL 11 DIRD 12 DIRE7 0 13 DIRF7 0 14 15 GROUP B Offset 4 3 1 0 0 DIOG7 0 1 DIOH7 0 2 DIOJ7 0 3 DIOK7 0 4 DIOL7 0 5 DIOM7 0 6 7 8 DIRG 9 DIRH 10 DIRJ 11 DIRK 12 DIRL 13 DIRM 14 15 FP GPIO96 User Manual Rev A 01 www diamondsystems com piamono SYSTEMS 6 2 1 BARO 32 0x20 DIO Block A Registers These registers provide control of digital I O ports To use the ports they must first be configured using Mode and Dir fields and then can be read from and written to BARO 32 0x20 Read Write Digital VO port A DIOA7 0 This register is used for digital I O on byte addressable port A
55. systems com Page 32 piamono SYSTEMS BARO 126 0x7E Read FPGA Firmware Minor Revision Number FPGA revision minor This register has the minor revision number for the FPGA firmware Every time the FPGA firmware is updated this register gets a new value This register will return a value of 0x04 BARO 127 0x7F Command Write Reset Register SUN Hee Oe oe ee ee e Name pRDAST FpcaRsT J Resetvaue o LL LL This register provides a control bits to reset the entire board BRDRST Board Reset bit 1 Causes the entire board to be reset This includes all the peripherals and the internal FPGA registers 0 NO ACTION FPGARST FPGA Reset bit 1 Causes the FPGA to be reset This may be required when the FPGA logic image is updated and saved in its SPI flash IC 0 NO ACTION BARO 127 0x7F Read Board Revision Major Number Reset value 1 Board revision major This register has the major revision number of the board FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 33 piamono SYSTEMS 6 2 5 BARO 224 0xE0 SPI Flash Interface Block Registers fromBlock Bt Bit Bt Bt Bt Bt Bt Bit Base Dec 0 SPITXD7 0 1 SPIRXD7 0 2 SPICMD7 0 3 R SPIRXRDY SPITXRDY SPIBUSY 4 SPIA7 0 5 SPIA15 8 6 SPIA23 16 7 8 9 10 11 12 13 1
56. ting Hole 125 diameter 200 pad Plated through 2 places Top Side Radius 820 0 5mm Radius 020 8 5mm 2 145 IN 2 145 IN 8 105 IN 8 308 IN 2 550 IN Pin 1 bottom side Pin 2 top side FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 7 piamono SYSTEMS 3 CONNECTOR PINOUT AND PIN DESCRIPTION 3 1 FeaturePak Connector The FP GPIO96 uses the FeaturePak standard which provides a card form factor and connector suitable for high density compact applications See http featurepak org for further details of the FeaturePak embedded I O modules standard including the specification In this document we will use the terms FeaturePak edge card connector and MXM connector interchangeably The FP GPIO96 uses an MXM 230 pin connector for all I O both to the main computer and for user I O connections The board contains gold plated fingers conforming to the MXM physical standard for interfacing to the MXM connector The system interface signals on the MXM connector are predefined for all FeaturePak modules and a portion of pins are reserved for individual module UO and are freely assignable for each module Signals are grouped into several categories System interface PCle Slot card management signals Dedicated user UO Power ground Reserved for future expansion z The module connects to five reserved pins to provide compatibility with possible future expansion of the Featur
57. uld even extend past that chip to others in the circuit FP GPIO96 User Manual Rev A 01 www diamondsystems com Page 3 Q piamonn SYSTEMS 1 INTRODUCTION 1 1 Description FP GPIO96 is a general purpose I O FeaturePak module using a high capacity 700K gate equivalent PCI Express FPGA for maximum density and flexibility The base hardware configuration features 96 digital I O lines grouped into 12 8 bit ports All ports have I O buffers to protect the FPGA and offers 3 3V logic drive levels The ports are organized into a combination of byte wide nibble wide and bit wide direction control for maximum flexibility and application compatibility The built in FPGA personality provides multiple configuration options All 96 I O lines may be used in common I O mode Six of these ports can be reconfigured to enable an array of additional features including 8 32 bit up down counter timers with programmable input source and gate 4 24 bit PWM circuits with 0 100 duty cycle capability and interrupt latched mode operation 1 2 Features Digital UO 96 total I O lines brought out to the FeaturePak connector o 48 1 O lines on the primary I O connector with 3 8 bit buffers and 2 4 bit buffers for increased direction configuration flexibility o 48 1 O lines on the secondary I O connector with 6 8 bit buffers Configurable digital I O pull up down resistors each I O group independently configurable Byte wide nibble wide and bit wide port d
58. ut mode this register will read back the logic levels on signal lines DIO E7 0 and writing to this register will have no effect The direction of port E is controlled by DIRE7 0 bits in the register at BAR0 44 Each bit in the direction register controls the direction of the corresponding port bit The DIO port E defaults to input mode on power up and all the register bits reset to 0 BARO 37 0x25 Read Write Digital UO port F Bit No Name Reset value DIOF7 0 This register is used for digital I O on bit addressable port F When port F is in output mode the output signal lines DIO F7 0 see Section 3 3 will be set to the values in this register and reading this register will read back the programmed value When port F is in input mode this register will read back the logic levels on signal lines DIO F7 0 and writing to this register will have no effect The direction of port F is controlled by DIRF7 0 bits in the register at BAR0 45 Each bit in the direction register controls the direction of the corresponding port bit The DIO port F defaults to input mode on power up and all the register bits reset to 0 BARO 38 0x26 Write DIO Port A Configuration Bit No Name Reset value This register is used to configure the direction and mode control of the DIO port A The DIO port A can be configured in either input or output direction DIRA Direction control bit for DIO port A 1 DIO Port A is configured as an output port 0 DIO Port A i
Download Pdf Manuals
Related Search
Related Contents
LANCEMENT DE CHRONO RELAIS 9161 Network Interface Device User`s Manual inscriptions, mode d`emploi FAG-115/750N Kondator 935-TA28 mounting kit 取扱説明書 - AQUA(アクア)|ハイアールアジア株式会社 ASUS P2E User's Manual 001-022 STILO TED - Manual und bedienungsanleitung. 事業契約書別紙(案)(PDF形式:464KB) Copyright © All rights reserved.
Failed to retrieve file