From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-01-2005 12:44 AM
07-04-2005 05:38 AM
1) Yes, that's correct. Nothing else is required to write/read the GPIB Register set. I have tried this myself on a PCI-GPIB board without any NI driver loaded.
2) Also correct. The manual says offset 0x117 from PBAR1, but I found that 0x17 works too. Stick with PBAR1+0x117. I read 4C without a problem.
Please could you explain in detail how did you do that in order to try by ourselves with a PCI-GPIB board. Please could you send also the PBAR settings you used.
7) PCI Config space should be mirrored at PBAR0+0x300 according to the diagram on page 3-3 of the manual. Thus, at PBAR0+0x300 you should find the Device ID and Vendor ID. The full 32-bit word should be 0xC8501093. Try to read it in 8-bit increments to make sure it's correct as well.
As said we are able to read and write EVERYTHING in the PBAR0 area, including the PCI configuration stuff. What we are NOT ABLE to is reading the 4882 register area in PBAR1, including data at 0x117 displacement. My question was about any stuff we could read as verification near the IOWBSR register, in order to check if we are really reading that area.
😎 New question: could be the JTAG pins responsible for not getting anything out of the device? Please could you check with the schematic we already sent. Is the PCI-GPIB board schematic diagram available somewhere?
Regards
07-04-2005 06:11 PM
07-05-2005 03:27 AM
and
*(0x010000c0) = 0x01004080
*(0x010000c4) = 0x0100608c
07-05-2005 03:29 AM
07-05-2005 09:04 AM
07-05-2005 11:46 AM
I removed the pull-up from TRST (now it is low level): no change.
About R217 I replaced the value with 220R. The voltage on the pin is still 3.26V, same as "mode" pin.
We tried also some other test: we can easily access DMA registers in PBAR0 but still nothing in PBAR1.
Disabling the PCI clock the board hangs and with the pci-reset asserted we get scratch everywhere - this seems to exclude the issue is caused by those signals.
We are programming now the processor at register level in order to avoid any operating system issue but nothing changed. It seems uneasy the problem is there.
Just as a feeling, it seems that everything in the PCI works fine. We can move the BAR windows and we get data only addressing within those windows. We can disable either PBAR0 or PBAR1 by PBACOR register, we can change their sizes by the same register and everything seems to work as expected with the only problem data retrieved from PBAR1 is always zero.
From the datasheet it seems that the PCI section could live without accessing the 4882 register set if mode is set wrong. May be this is a simplified view but it seems exactly this way, i.e. everything in the PCI area can be accessed but not the additional register set(please see the attachment).
07-05-2005 01:43 PM
07-06-2005 12:28 PM
Not too easy answering without doing some test: in theory we were accessing the PBAR1 area at byte level. But with a Xscope we found the IXP425 always makes read accesses at 32 bit, i.e. all c/be signals are active (low) when accessing the a PCI device in read mode.
Please notice we are using register programming of the IXP425 device, where we can explicitely set what c/be configuration we'd like on the bus. But in read mode our settings are ignored (not the same in write mode, where settings are kept). It seems like the processor only enables "prefetch" accesses to targets, whilst the TNT5002 seems not to provide prefetching (PBAR's bit3 = 0).
I do not know if it could create any problem to the GPIB device itself, nothing seems specified in its manual about that nor any timing is provided for PCI mode.
Any suggestion about how to check this point (i.e. what the NI device does expect for PBAR1 accesses)?
07-06-2005 02:33 PM