
13
transfer. This is handled within the body of the program code by calling the respective
function and giving the required argument. Exploiting the use of the code can be
beneficial to the user. If for example the user has used all the blocks available and
cannot add external filtering, the implementation of a digital filter written in the C
language can be used in the program. [6, 42-53.]
4 Microcontroller Interfaces
4.1 UART Communication
The UART is an older but still widely used form of digital communication. The physical
connections consist of transmit, receive, and a common ground. The typical speed for
UART communication has always been a baud rate around 9600 bps, although modern
UART connections can be programmed to reach speeds over ten times higher.
The transmission of the data between two modules starts with making sure both have
the same baud rate, as there is no common clock signal for synchronization. The
organization of the data bits is what is used to control data flow. Figure 10 shows the
construction of a UART data packet.
Figure 10: UART Packet Construction.
When the sending unit starts its transmission, it starts the packet with a start bit.
The start bit being a logical low is noticed by the receiver as a signal that information
is coming. The data is then transmitted starting with the least significant bit first.
There is an optional parity bit that can be used. Then the transmission is ended by
the last bit which is a logical high stop bit.
Comentarios a estos manuales