Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

write through 7210 to pc

hello
 
I built curcuit that is based on 8051 and nat7210. I connected it to pc via GPIB PCMCIA. When I send bytes from pc to the 7210, it goes ok and 8051 gets them. When i try to send from 7210 back to pc i get EABO error on PC (i'm using National application that comes with PCMCIA card). The code for 8051 is written in C language.
How I should initialize 7210 in order to send data successfully?
What is the sending procedures?
What orders should I write?
 
please help me.
 
Alex
0 Kudos
Message 1 of 4
(3,651 Views)

Hey Alex,
Thank You for contacting National Instrument about this issue. The way to initialize the 7210 for GPIB is to first set the Addresses, which you by writing a hex number to ADMR. Once you've done this, you have to set it up for either serial or parallel mode, which will involve writing to either the SPMR or the PPR. After this you will have to set up hand shaking and enable interrupts. This whole process is talked about on page 5-2 of the user manual for the nat7210.

Hope this helps

 
Can Wong
0 Kudos
Message 2 of 4
(3,624 Views)
thx, it worked.
 
but now when i send byte from 8051 to pc via 7210, i get at PC about 30 same bytes.
What should i do in order to send only one byte?
0 Kudos
Message 3 of 4
(3,620 Views)
It kinda sounds like there is either a timing issue or a termination issue, could you explain in a little more detail what your sending to the 7210 and what you're getting back? Also, what mode do you have the Data-Receiving in and what Handshaking mode also?

Thanks,
Can Wong
0 Kudos
Message 4 of 4
(3,611 Views)