Read and write directly to device registers

You can use the Extern Read and Extern Write blocks to read and write hardware registers. The registers have the same names as described in the documentation for your hardware.

To configure the Extern Read and Extern Write blocks for hardware register access

1.    Right-click the Extern Read or Extern Write block.

2.    In the Properties dialog box, under Data Type, select 16-bit hardware register or 32-bit hardware register.