Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I am not able to get data at DIO[0-7] of NAT 9914

I am following the steps of AN 110 & Chapter 5 of Reference manual.

But not getting the data at DIO[0-7] on the NAT 9914

 

 

my test 5 is as following

 


 AUXMR();                //For selecting AUXMR Register
 wait(125000);
 MODE9914();          //To Set 9914 mode
 wait(125000);
 AUXCR();                //For selecting AUXCR Register
 wait(125000);
 LOCALPONASSERT();        //For asserting Local Pon
 wait(125000);
 SOFTWARERST();         //Software Reset
 wait(125000);
 AUXCR();                //For selecting AUXCR Register
 wait(125000);
 SETCLK();          //For setting ICR
 wait(125000);
 AUXCR();                //For selecting AUXCR Register
 wait(125000);
 MODE7210();          //For mode 7210
 wait(125000);
 AUXMR();                //For selecting AUXCR Register
 wait(125000);
 PAGEIN7210();         //Page in command in 7210 for MICR
 wait(125000);
 MICRSET();          //MICR bit set
 wait(125000);
 AUXMR();                //For selecting AUXMR Register
 wait(125000);
 MODE9914();          //To Set 9914 mode
 wait(125000);
 ADDRESS();          //To Set Address
 wait(125000);
 SETT1();          //To Set Delay T1 of GPIB
 wait(125000);
 LOCALPONUNASSERT();        //For Unasserting Local Pon
 /*****************************************************************************/
 /*       FOR TEST 5                                                                    */
 /*****************************************************************************/
 PAGEIN9914();         //Page in command for IMR 2
 wait(125000);
 CLRIMR0();          //Clear IMR 0
 wait(125000);
 CLRIMR1();          //Clear IMR 1
 wait(125000);
 CLRIMR2();          //Clear IMR 2
 wait(125000);
 SETton();          //Set Talker only
 wait(125000);
 CDOR();           //select CDOR register
 wait(125000);
 RDCPTR();          //Read CPTR for checking data at CDOR
 wait(125000);
 ADDRESS2();          //Set TAD in ADR to disable talker
 wait(125000);
 RDCPTR2();          //Read CPTR with TAD
 wait(125000);
 ADDRESS(); 

0 Kudos
Message 1 of 4
(3,319 Views)

Hello,

 

What values are you getting when reading from cptr?  How does this compare with what is being written?  Do the other tests work correctly?

 

Thanks,

Steven T.

0 Kudos
Message 2 of 4
(3,293 Views)

Thanks for reply!

I have connected my contoller ARM7 pins of D[0-7] via 74LVC245A & it's DIR is connected to logic high so,i can transfer the voltage from controller to NAT 9914BPD & not revert it.

So i am going for these test first.
The comparison is actually not done,

So i will like to know how should we compare it?

 

Actually i am trying to check data at DIO[0-7] by writing to CDOR but it is having no change (all are at 4.96v) &

I am also writing to BCR for setting & reseting to DAV,but it is also unaffected(4.96). 

I have connected ACCGR to +5v.

Is any other change required.

Thank you in advance for reply!!

0 Kudos
Message 3 of 4
(3,242 Views)

I am interfacing the ARM7 uC & the NAT 9914 ,for D 0-7 is provided via 3.3-5V converter.

The CE,WE Dbin & the RS0-2 is provided directly to the NAT 9914.

I am following the sequence

For setting the

1.RS0-2

Then pulling the CE.

then Pulling the WE (in write cycle)

Then placing the data in D0-7 as provided in the timing dia in the NAT 9914's datasheet.

I have reffered to the reference manual,Datasheet & AN110.

I am follwing all the steps for initialization i have attached my hardware schematic & the program (in Embedded C).

You can run the program in keiluVision 3.

Tell me if any more pins need the buffer in the hardware.

Tell me if i am missing any steps.

When I am trying to read the RDISR0

I am strucked at this point so tell me if i am doing any mistake

I am attaching the Hardwarre schematic & the Program in txt format.

 

 

Download All
0 Kudos
Message 4 of 4
(3,003 Views)