05-13-2009 04:07 AM
Hello,
I'm new to GPIB register level programming. I have some experience in GPIB but my prior experience was using more higher level programming. I try to control the GPIB bus with my testing board, which consists of a uC + NAT9914, together with the required transceivers. The NAT is operating in 9914 mode.
The screen shot I took from a testing result, where I intended to send MTA0, MLA7, DCL, LLO commands over the GPIB bus. Base on those screen shot, can you kindly let me know if the timings are correct, especially DAV, NRFD and NDAC, relative to each other?
The diagram on top is showing 4 bytes sent over GPIB bus (40h, 27h, 14h, 11h) . The diagram at bottom is a zoom-in of first byte (40h). The vertical grid lines interval is 5 us for the top diagram, whereas 500 ns for the bottom one.
Thanks very much and best regards,
Solved! Go to Solution.
05-13-2009 08:51 AM - edited 05-13-2009 08:52 AM
Hello WH Tan,
I've checked your capture shots and checked the commands that you are sending across the bus. The controller (is the NAT9914 the controller?) is successfully sending all of the GPIB addressing and configuration commands to the instruments connected. The commands going across are MTA0, MLA7, DCL, and LLO.
The zoomed in capture clearly showed that NRFD signaled that the listener was ready for data (by the listener), DAV then signaled that the data on the bus is valid (by the talker), and the NDAC signaled that the listener received the data (by the listener). Because of the handshake, we can tell that the listener definitely received the data.
Is this setup giving you problems? If the instrument at Primary Address 0 has data to send, the instrument at Primary Address 7 should be configured to receive that data after MTA0 and MLA7 are sent.
I hope this helps,
Steven T.
05-13-2009 12:06 PM - edited 05-13-2009 12:08 PM
05-26-2011 05:33 AM
Hello WH-tan
i am also using the NAT in the same way uc+nat 9914,& i am not getting any output so can you please guide me with the delay you have set between the the commands