ADLINK Hurricane-QM57 User Manual
Page 72
TME-EPIC-HURQM-R2V9 Revision
2.9
Page 66 of 74
Bit 0 is always 1. It will be ignored. Therefore, the GPIO Base Address is “0500”.
Second have a look at bit 4 of register 0x4C of the PCI Configuration Registers, which is used to control
whether the GPIO function is enabled or not. Just type “rdpcil 0 31 0 0x4C”.
0 = Disable
1 = Enable
If it is disabled, enable it by typing “wrpcil 0 31 0 0x4C 00000010”, as the example above shows.
Caution
Always avoid changing bits you are not interested in!
The pins you want to use as GPIOs also provide a native function. The bits 3:0 of the register, which can be
found at GPIO Base Address + 0x40, control pin 16:13.
0 = Signal used as native function
1 = Signal used as a GPIO
With the command “inl 540” the current usage of these pins may be read. In the example it is necessary to set
them to work as GPIOs by typing “outl 540 0000010F”.
Caution
Yet again,
avoid changing bits you are not interested in!
In a next step you will have to decide whether to use the GPIOs as an out- or an input. The bits 3:0 at GPIO
Base Address + 0x44 control this.