Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-6602 Register Level Initialization

I am trying to program a PXI-6602 using Registry Level Programming.
It is hooked up to a BNC-2121 so I can check activity.
 
I would like to know how to
   1. Configure the DIO_! through DIO7 as Outputs. The manual says to write registers BAR1 Offset 0x77C and 0x780 with 0x02020202.
       This seems to work.
   2.  When I try to Write to the published IO Registers the unit doesn't write to the outputs.
        This board works fine using MAX, so I know it is pilot error.
 
 
0 Kudos
Message 1 of 3
(7,455 Views)

It Works now.

 

The culpret was the write to the offset 0x77C area.

When these are initialized, the IO config/Write at 0x16 and 0x14 seemed to be inhibited.

This was further confused by MAX appearing to hide this and showing the configuration 0x77C area as configured.

The Board startup code is:
1.

0 Kudos
Message 2 of 3
(7,449 Views)

It Works now.

 

The culpret was the write to the Base Address offset 0x77C area. (IO Configuration)

When these are initialized, the IO config/Write at 0x16 and 0x14 seemed to be inhibited.

This was further confused by MAX appearing to hide this and showing the configuration 0x77C area as configured.

The Board startup code is:

1. Init the Mite by writing the Base address to Offset 0xc4 with the (BoardAddress & 0xFFFFFF00) | 0x8D
 
I used 0x8D as this is what the MAX control panel put into this area. The manual says 0x8C
If This is wrong it would be nice to know
 
2. Write 0x0 to the IO Window control area per the manual
3.  Write a 1 to the Reset Control Register at offset 0x700
4. Set clock Configure Register Offset 0x73C with 0x00200000 for timer swapping
 
5. Configure DIO0-7 by Write 0xFF to Offset 0x16
6. Test Outputs with writes by writing offset 0x14
 
If I Set the 0x77C-0x782 area, the outputs turn back off again. I do not know why.
 
 
0 Kudos
Message 3 of 3
(7,447 Views)