09-08-2011 09:35 PM
Hello,
When I send SCPI to my device by GPIB(TNT4882 chip) very fast, sometimes there is ADSC interrupt but ADSR is 0x0 or 0x40, if I clear ADSC when I find there is ADSC interrupt, sometimes I will lose some SCPIS. I print the log message.
0xc1476c30 (GPIBINT): ISR0-ISR3,ADSR is 20,0,91,a,0,
0xc1476c30 (GPIBINT): ISR0-ISR3,ADSR is 24,0,91,a,0,
0xc1476c30 (GPIBINT): ISR0-ISR3,ADSR is 20,0,91,a,40,
0xc1476c30 (GPIBINT): ISR0-ISR3,ADSR is 20,0,91,a,40,
When I send SCPI to other device by GPIB connecting with same PC as my device, my device will receive ADSC interrupt and ADSR is 0x40, if I don't clear ADSC, my device will be always receiving this ADSC and ADSR is 0x40. so I must clear it. The detailed operation is following: First I send one setting command to my device and send any command to other device, at this time I find my device receives ADSC and ADSR is 0x40. If I send one query command to my device and send any command to other device, there is no ADSC interrupt to my device.
0xc1476c30 (GPIBINT): ISR0-ISR3,ADSR is 25,0,91,b,40,
0xc1476c30 (GPIBINT): ISR0-ISR3,ADSR is 20,0,91,a,40,
0xc1476c30 (GPIBINT): ISR0-ISR3,ADSR is 20,0,91,a,40,
0xc1476c30 (GPIBINT): ISR0-ISR3,ADSR is 20,0,91,a,40,
I think there is something wrong with ADSC interrupt matching with ADSR register? How to solve it?
Thanks.