Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NEC 7210

Hello,
 
 
I am developing a board with NEC 7210  and Atmel microcontroller. I need to send commands and to the gpib device and make it respond to my commands. For that i need to initialize and configure My 7210  chip as active controller and standby controller for commands and data respectively.
Can u please help me  to know how to initialize and configure 7210 properly as a controller.
I tried with the folowing procedure:
 
1. set pon
2. no addressing mode
3. disable interrupts
4. reset pon
5. Set IFC...... at this point ATN and IFC were asserted
6. delay
7. reset IFC
                 ----------  at this point i got ATN asserted and  IFC unasserted and CIC bit in ADSR was also set
8. Checking for CO bit in ISR2  but it was not set..
the  how can i send the commands ( gpib addressing commands mta and ala) to the device without getting the CO bit set..
 
Is 7210 configured properly as the active controller?
plz help me to solve this problem...
0 Kudos
Message 1 of 3
(4,425 Views)

Hello 500017,

It sounds like you are just getting started with programming with this chip.  My best advice for you is to visit the following link which has some very useful information.

http://www.ni.com/support/gpib/reg_prog.htm

On this page you will find some useful information as well as links to the 7210 reference manual which will give you all of the functions/commands that work with the 7210.

You should be able to find most of your answers in the manual. If you run into any problems along the way, please feel free to ask for help.  Thanks!

Scott G.
AE Specialist
National Instruments
0 Kudos
Message 2 of 3
(4,401 Views)
Hi,
      Sorry for asking again.  But i already referred the manual of NAT 7210 for my programming .
 
but my problem is with CO bit in ISR2 (it is not getting set). I am supposed to get that bit set after configuring it as active controller as per the manual. But it is not so. That means the CDOR register cannot be written. When  will this CO bit set actually?
 
 
  As per the manual i followed the procedure below but
 
   1. write 0x02 to AUXMR ;chip reset  set pon
    2. write ADMR=0x31 ;(31) ;normal primary addressing
    3. write ADR=0x00  ; primary address
    4. write ADR=0xE0  ; disable adr1
    5. disable interrupts with IMR1=0x00 and IMR2=0x00
    6. write AUXMR=0x00 clear the local pon message
    7. system controller mode  AUXMR=0x1E  ;set IFC
    8. reset IFC; write AUXMR=0x16
    [AT THIS POINT I CUD GET ATN* ASSERTED AND CIC BIT IN ADSR SET]
    9.Read ISR2 for CO bit
    [HERE I AM SUPPOSED TO GET CO BIT SET TO START TRANSMITTING THE COMMAND BYTES 
    TO CDOR .. BUT I AM GETTING IT SET]
    
PLEASE HELP ME TO SOLVE THIS PROBLEM.
Because i need to monitor CO bit for sending the gpib addressing command bytes MTA and MLA to the device.. I am struck up at this point
0 Kudos
Message 3 of 3
(4,396 Views)