![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_147.png)
26-10
UART Communication Tools
Programmer’s Manual
Return Value
26.10
UARTSetDelay
Syntax
STATUS
UARTSetDelay
(U8 type U16 delay)
Description
In order to communicate with application in PC, such as HyperTerminal and Telix,
transmitting data in a burst of pulses periodically would greatly increase the accu-
racy of transmission. This function allows user to set a delay, in unit of 100us,
between each transmission of all data in transmit FIFO (between two hardware
interrupts).
The range of delay values supported is 1 to 60,000.
Parameter
Return Value
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_INVALID_ACCESS
Invalid access of UART
PPSM_ERR_RCTS_IDLE
RTS/CTS hardware flow control is not
enabled
Name
Description
type
delay type
UART_TXHALF_DELAY
Set a delay between each
TXHALF interrupts
UART_TXDELAY_CLEAR
Clear delay within transmission
delay
Transmission delay value in 100
microseconds
100 microseconds to 60,000
microseconds (6 seconds)
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_INVALID_ACCESS
Invalid access of UART
PPSM_ERR_INVALID_TXDELAY
Delay value out of range
Personal Portable System Manager
Programmer’s Manual
26-7
Description
Initiates or aborts a UART receive request.
If receiveFlag is UART_RECEIVE_REQUEST, the receive request will be
initiated, and PPSM will start waiting for incoming data from the UART.
If receiveFlagis UART_RECEIVE_ABORT, the on-going receive request will
be aborted.
When PPSM receives data, it will post an interrupt message to the calling
application notifying it that data is available for it to read. Application can then
read the received data by calling UARTReadData() (Section 26.5 -
UARTReadData).
Application task swapping is disabled while the receive request is in progress,
and re-enabled after the receive request is terminated.
Parameter
Return Value
26.7
UARTSend
Syntax
STATUS
UARTSend
Description
Initiates or aborts a UART send request.
If sendFlagis UART_SEND_REQUEST, the send request will be initiated, and
PPSM will start sending data to the UART.
If sendFlagis UART_SEND_ABORT, the on-going send request will be
aborted.
Name
Description
receiveFlag
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_INVALID_ACCESS
Invalid access of UART
PPSM_ERR_BUSY
There is already an on-going receive
request (when trying to initiate one)
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.