172
Platforms
©2000-2008 Tibbo Technology Inc.
inputs or outputs
On this platform it is necessary to configure some lines of the
as
inputs our outputs. Depending on the mode of the serial port (see
)
you need to set the following:
ser.mode
TX/
W1out/
dout
output
RX/W1in/
din input
RTS/
W0out/
cout
output
CTS/
W0&1in/
cin input
Will auto-
configure as
output
(1)
Will auto-
configure
as input
(1)
Requires
configurati
on as
output
(2)
Requires
configuratio
n as input
(2)
Requires
configuratio
n as output
Requires
configuratio
n as input
Notes:
1. When This line does not require configuration, it will be configured
automatically as input or output when the port is opened. When the port is
closed the line will return to the input/output and high/low state it had before
the port was opened.
2. Please, remember that you need to configure the I/O pin to which this line of the
serial port is currently mapped.
Each serial port has 16 bytes of send FIFO
mode (
= 0- PL_SER_MODE_UART,
= 0- PL_SER_SI_FULLDUPLEX, and
= 1- ENABLED) the device is monitoring its CTS input to see if
attached serial device is ready to receive more data. If the CTS state changes to
"cannot transmit" the device will stop sending out data immediately. However, the
data that has already entered the FIFO will still be sent out. Therefore, after the
CTS state becomes "cannot transmit" the device can still send out up to 16
characters.
There is a PLL
On the DS1202 platform there is a PLL that, when switched on, increases the main
clock of the device 8-fold (power cosumption also increases roughly by as much).
When the PLL is off, the clock frequency of the device is 11.0592MHz; when the
PLL is on the clock frequency is 88.4736MHz.
The clock frequency affects all aspects of device operation that rely on this clock.
Naturally, program execution speed depends on the clock frequency. Additionally,
the baudrates of the
property)
depend on the main clock. Finally, the frequency of the square wave generated by
the
object depends on the main clock as well.
object has a
read-only property and
method. See
topic- it explains how to switch PLL
on and off.
224
255
226
229
232
224
226
255
255
253
224
248
387
212
218
219
215