User guide

58
SmartBook for Renesas R8C/Tiny Microcontrollers
www.MightyMicons.com
The result of A/D conversion is available in the 16 bit AD
register.
The operation of the A/D converter is managed by three A/D
control registers. The A/D conversion is started or stopped by
setting the bit ADST of A/D control register 0. Also the A/D
converter can be operated in either one shot mode or in repeat
mode. The mode is selected by defining MD bit of A/D control register
1. When the one shot mode is enabled, the A/D conversion starts by
setting ADST bit to one level for the selected analog input channel. The
conversion can also be stopped by setting the ADST bit with the zero level. There
is a facility available to generate interrupt request at the end of A/D conversion.
When the repeat mode is activated, only 8 bit conversion resolution is available.
As before, ADST bit can be set for controlling A/D conversion.
6.4 Communication Facilities:
R8C/Tiny controllers sport flexible communicating interfaces to equip the system
designers manage a variety of connections. Facilities like synchronous serial I/O
ports, asynchronous serial ports and IIC/SPI interfacing bus are available.
Networking features like CAN and LIN buses can be also be established.
6.31 Serial Communication Interface.
Entry-level R8C/Tiny devices come with two channels of serial communicating
interfaces: UART0 and UART1. Each of these serial ports acts independent of
other one. They sport exclusive baud rate generators to generate the required
data transfer clocks. UART0 can be defined in two operating modes: clock
asynchronous mode and clock synchronous mode. UART1 supports only clock
asynchronous mode. Just like other peripheral functions, these serial interfaces
are configured using few registers: UART Transmit Buffer Registers, UART Receive
Buffer Registers, UART Bit rate Registers, UART Transmit/Receive Mode
Registers, UART Transmit/Receive Control Registers. Using these registers, the
serial interfaces can be configured in many ways. Following gives a total picture
on the available facilities of these serial ports.
D
a
t
a
4
D
e
s
i
g
n
Each of these
serial ports acts
independent of
other each.
They sport
exclusive
baud rate generators to
generate the required
data transfer
clocks.