169
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Enum pl_io_num
Enum pl_io_num contains the list of constants that refer to I/O lines available on
this platform. Use these constants when selecting the line with the
object
(see the
property).
All I/O lines of the DS1202 platform require explicit configuration as inputs or
outputs -- this is done through the
property of the
object. On
power-up, all lines are configured as inputs. When the line is configured for input
its output driver is tri-stated. When the line is configured for output, its output
driver is enabled. It is possible to read the state of the line even when it is working
as an output.
The EM1202EV-RS board and the DS1202 controller have RS232
transceiver IC onboard. This IC defines which I/O lines of the device
should be configured as inputs, and which- as outputs. Specifically, do
not try to use I/I lines 0, 2, 4, 6, and 7 as outputs -- this can
permanently damage the hardware.
Certain lines automatically become inputs and outputs in certain modes of
operation -- see below for details.
Enum pl_io_num includes the following constants:
0- PL_IO_NUM_0_RX0_INT0
(1)
:
General-purpose I/O line 0 (P0.0). This line is
also the
input of the serial port 0
and the interrupt line 0.
1- PL_IO_NUM_1_TX0_INT4
(2)
:
General-purpose I/O line 1 (P0.1). This line is
also the
output of the serial port
0 and the interrupt line 4.
2- PL_IO_NUM_2_RX1_INT1
(1)
:
General-purpose I/O line 2 (P0.2). This line is
also the RX/W0&1in/din input of the serial port 1
and the interrupt line 1.
3- PL_IO_NUM_3_TX1_INT5
(2)
:
General-purpose I/O line 3 (P0.3). This line is
also the TX/W1out/dout output of the serial port 1
and the interrupt line 5.
4- PL_IO_NUM_4_RX2_INT2
(1)
:
General-purpose I/O line 4 (P0.4). This line is
also the RX/W0&1in/din input of the serial port 2
and the interrupt line 2.
5- PL_IO_NUM_5_TX2_INT6
(2)
:
General-purpose I/O line 5 (P0.5). This line is
also the TX/W1out/dout output of the serial port 2
and the interrupt line 6.
6- PL_IO_NUM_6_RX3_INT3
(1)
:
General-purpose I/O line 6 (P0.6). This line is
also the RX/W0&1in/din input of the serial port 3
and the interrupt line 3.
7- PL_IO_NUM_7_INT7
(2)
:
General-purpose I/O line 7 (P0.7). This line is also
the interrupt line 7.
PL_IO_NULL:
This is a NULL line that does not physically exist.
The state of this line is always detected as LOW.
Setting this line has no effect.
Notes:
365
372
370
365
225
225