What are the default settings for the uart device, In the uarts – Zilog EZ80F916 User Manual
Page 335

UM014423-0607
ZiLOG Standard Library Notes and Tips
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
315
HOW CAN I USE STANDARD I/O CALLS LIKE PRINTF() AND GETCH()?
The standard I/O calls—such as
printf()
,
getch()
, and
putch()
—are routed to
UART0 by default. You can route them to UART1 by setting the UART1 as the default
device.
To do so, open the
uart.h
file and replace the DEFAULT_UART0 macro with
DEFAULT_UART1 and rebuild the library. The
uart.h
file is in the following directory:
ZILOGINSTALL\ZDSII_
product
_
version
\include\zilog
where
•
ZILOGINSTALL is the ZDS II installation directory. For example, the default
installation directory is
C:\Program Files\ZiLOG.
•
product is the specific ZiLOG product. For example, product can be
Z8Encore!
,
ZNEO
,
eZ80Acclaim!
,
Crimzon
, or
Z8GP
.
•
version is the ZDS II version number. For example, version might be
4.11.0
or
5.0.0
.
Refer to the ZiLOG Standard Library API Reference Manual (RM0037) for more details.
WHAT IS THE DIFFERENCE BETWEEN THE INTERRUPT MODE AND THE
POLL MODE IN THE UARTS?
The INTERRUPT mode uses UART interrupts to transmit and receive characters to and
from the UARTs; whereas, POLL mode just polls on the UART device for the transmis-
sion and reception of data. Also, the INTERRUPT mode uses software FIFO for data buff-
ering; whereas, POLL mode does not.
WHAT ARE THE DEFAULT SETTINGS FOR THE UART DEVICE?
UART devices are initialized with 57600 baud, 8 data bits, 2 stop bits and no parity. Also,
no flow control mechanism is supported in version 1.0 of the library.
HOW CAN I CHANGE THE DEFAULT UART SETTINGS FOR MY APPLICA-
TION?
UARTs can be initialized to the required settings by the passing appropriate parameter in
the
open_UARTx()
API during build time or by using the appropriate APIs at run time.
Refer to the ZiLOG Standard Library API Reference Manual (RM0037) for more details.