Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

nat9914 Controller, how can I change to talker/lisner

$
0
0

hi 

I hope you understand I speak english little bit.

 

i have probrom. 

I have developed NAT9914 Controller.

 

I will initialize Controller mode and change talker/listener.

 

initialize code...

 

outp(R7210_AUXMR, C7210_SW9914); // Make sure GPIB chip is in 9914 mode.

outp(R_AUXCR, C_CH_RST); // Reset the NAT9914. Logically remove device from the GPIB.
outp(R_ACCR, F_ICR | F_16MHZ); // set clock speed

outp(R_AUXCR, C_CLRPI)
outp(R_AUXCR, C_VSTDL);
outp(R_IMR0, B_BO_IE | B_BI_IE); // Byte In Interrupt Enable bit and Byte In Interrupt Enable bit
outp(R_IMR1, B_DCAS_IE | B_GET_IE); // Device Clear Active State Interrupt Enable bit and Group Execute Trigger Interrupt Enable bit
outp(R_AUXCR, C_PIIMR2);
outp( R_IMR2, B_CIC );
outp(R_AUXCR, C_CLRPI)

outp(R_AUXCR, C_PIACCR); // Page-In Accessory Register
outp(R_ACCR, F_ACCRB | B_LWC | B_ATCT );
outp(R_AUXCR, C_CLRPI)outp(R_ADR, gpib_addr); // set the GPIB address of the device

outp(R_AUXCR, C_NSWRST); // Clear Software Reset

.

.

.

.

.

and change talker/listener

 

outp(R_AUXCR, C_SIC);

outp(R_CDOR, UNL);

outp(R_CDOR, MAT1);

 

but  don't change talker register TA/listener register LA.

 

What is wrong?

Do I  implement a handshake function?

 

if write command/data to CDOR,
data sent automatically by the handshaking?

 

i refer to the NAT9914 Reference Manual Chapter 6.

 

please help..

 


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>