11-08-2007 12:12 PM
11-09-2007
01:42 PM
- last edited on
09-09-2025
03:22 PM
by
Content Cleaner
11-09-2007 04:25 PM
500017,
As you can probably see from the 7210 manual, the CO bit is supposed to set when CACS & SGNS & ~nba (page 3-56).
Since the controller in charge bit is set, you should be CACS. This alone should transition you to SGNS. We should check the other status registers to see the current configuration. Please post the values of ISR0, ISR1, ISR2, BSR, SASR.
This should give us enough information to debug the issue further. The only other question is if there is a byte currently available. If you have a byte available it should show up in SASR (a paged register at offset +5).
I hope this helps,
Steven T.
11-10-2007 11:28 PM
Thank u for the guidance,
I am now getting theCO bit set . But my value of ISR2 register is 1E that menas the REM ,LOKC and REMC are also set. Is it correct to get them set? Because I never enabled the remote mode.
Can we make 7210 as addressed talker by sending MTA command to gpib device? (made it as the listener by through MLA command). I mean how can we use MTA and MLA commands?
And also, can we directly send the multiline interface messages to the device without configuring it as the addressed listener while the 7210 is acting as an active controller?
Kindly clear my above doubts..
Thanking you
swathi
11-12-2007 01:28 AM
11-12-2007 09:22 AM - edited 11-12-2007 09:24 AM
11-12-2007 12:10 PM
11-14-2007 08:24 AM
Swathi,
Sorry for the late response. On page 6-5 of the manual "Sending Remote Multiline Messages" item 1 doesn't look like it is happening in your code. NTNL should be 1. You are correct about the CO bit. It is not set if the command byte has not been output. You can find out about this by the status of the handshaking lines. It would be best if you had an analyzer of some kind so that you can see the status of each of the handshaking lines. This way you can compare the lines when a command is sent vs when the command is not sent.
I would also recommend exactly there is no reason to set REN if you only want to become the active controller on the bus. Page 6-4 in the manual shows how to transition between each of the controller states.
Good luck!
Steven T.
11-14-2007 09:04 PM
11-15-2007 04:35 PM
Swathi,
I looked through your register accesses again and realized something that could be happening. You are clearing the CDOR in your initialization (0x00). This is not necessary and could actually result in trying to output the 0x00 GPIB command.
I also noticed that you asserted IFC, but never deasserted it. The chips instrument's behavior for receiving IFC and a GPIB command is probably undefined.
Please unassert IFC after at least 100us. Then the instrument will probably respond correctly to your GPIB commands. If you had posted the status registers I asked for, we would have been able to see that IFC is still asserted while you are trying to send command bytes.
I hope this helps,
Steven T.