Crossware

Table of Contents        Previous topic       Next topic       

Using the Port I/O Utility->Using the Port I/O Utility

Input to ports P0, P1, P2 and P3 can be supplied from a file of binary data.  Open the 8051 ports dialog box to select the input files to be used (see below).

The data in these files can also be optionally displayed in a window.  If there are more than 0FFFFh bytes in a file, then only the first 0FFFFh bytes are displayed in the corresponding window.

Note that it is the data from the file that is used for the port input data, not the data from the window. If you modify the data in the window, the file in not automatically updated.  You need to save the window data to the file using the Save command from the File menu to update the file contents.

Data written to the output ports can be directed to a file.  The name of this file can also be specified via the 8051 ports dialog box.

The port filenames and window attributes are saved to the program status file when you close the 8051 program and will be re-opened when you next open the same program.

The port input data windows function in the same way as the program memory window, external ram window and internal ram window, so see the instructions for these windows for details of how to view and edit different parts of the data

Note that the port input from a file feature may not be available if a variant extension DLL is being used.