05-01-2006 01:45 AM
05-01-2006 08:15 AM
05-02-2006 12:45 AM
Hi Collin,
Thanx for your reply.
We have written a driver for our device and the driver is running on the 8051 microcontroller. We have verified that the 8051 initializes the TNT4882, but we donot get any interrupt on 8051 when the scan for the instruments occurs.
05-02-2006 07:24 AM
05-02-2006 09:52 AM
05-03-2006 02:43 AM
Thank you Collin and Scott, for your replies. Here are the inputs from my side.
1. We haven't used any interrupts for TNT.Our detection procedure consists of continuous polling of the register ADSR for it to be set as a talker/listener.
2. The initialisation of the TNT has been done and verified. We have sent the talker/listener address of the TNT through hard wired wires and noticed that the TA/LA bits are set in the ADSR register. After it has been set as a listener we have sent ASCII codes of messages which were read by the TNT as well. For eg we have placed the ASCII code of * i.e. 2A and it was read by the micro controller. The data transfer has been done according to the protocol mentioned in the TNT4882 Programmer Reference Manual Appendix C page number C-13. My understanding is that the communication cannot happen if the device is not initialised.
3. We are clearing the pon at the end of initialisation.
4. Doesn't the controller issue IFC before scanning for primary addresses of the talker/listener devices?
Looking forward to your replies....
Sada
05-03-2006 08:06 AM
05-03-2006 10:37 AM - edited 05-03-2006 10:37 AM
Message Edited by ScottieB on 05-03-2006 10:38 AM
05-05-2006 03:52 AM
We have noticed few anamolies which we think are causing the device to be undetected:
1.We have selected "dual primary addressing mode" by writing 0x31 into ADMR register at offset 08. We have assigned GPIB primary address of 01 to our board and writing this into the ADR register at offset 0c. We have written 0x01 into the ADR register.We have disabled the secondary address by writing 0xe0 into ADR. According to the manual we can read back the primary address from ADR0 register at offset 0c. But the read back data is not 0x01, it shows different values like 0xba, 0x9a,0xda etc. Also the ADR1 register isn't giving the data 0xe0 on read back.It shows 0xf0 i.e. EOI line is asserted which is unexpected.
What could be the possible reason behind this?
Another query which we have is should we drive the NRFD and NDAC lines through the micro controller and assert/deassert them by writing into the register BCR at offset 1f. Our understanding is that the TNT 4882 takes care of the handshaking scheme and we(i.e. the microcontroller) have to focus on receiving/sending bytes.
Sada
05-05-2006 07:59 AM