2.2I/O Port Location
The
16bit input port and one 16 bit output port (only for
Connector of | PA0 ~ PA7 | PB0 ~ PB7 | PC0 ~ PC7 | |||
|
|
|
|
|
|
|
CON3 (DI/O) | Port0 |
| Port1 | Port2 | ||
|
|
|
|
|
| |
Connector of |
| Description |
|
|
| |
CON1 |
|
| D/O |
|
|
|
CON2 |
|
| D/I |
|
|
|
Refer to Sec. 2.1 for board layout & I/O port location.
Note: PC0, PC1, PC2 and PC3 can be used as interrupt signal source. Refer to Sec. 2.4 for more information.
2.3Enabling I/O Operation
2.3.1DI/DO Port Architecture (CON3)
Upon
•All D/I/O operations are disabled
•All three D/I/O ports are configured as D/I port
•All D/O latch register are undefined.(refer to Sec. 2.3.2)
Initialization must be performed before using these D/I/Os. The recommended steps are as follows:
Step 1: Find
Step 2: Enable all D/I/O operations (refer to Sec. 3.3.1)
Step 3: Configure the three ports (in CON3) to their expected D/I/O state & send the initial value to all D/O ports (refer to Sec. 3.3.8)
Refer to DEMO1.C for demo program.