Книга: Advanced PIC Microcontroller Projects in C

1.3.9 Serial Input-Output

1.3.9 Serial Input-Output

Serial communication (also called RS232 communication) enables a microcontroller to be connected to another microcontroller or to a PC using a serial cable. Some microcontrollers have built-in hardware called USART (universal synchronous-asynchronous receiver-transmitter) to implement a serial communication interface. The user program can usually select the baud rate and data format. If no serial input-output hardware is provided, it is easy to develop software to implement serial data communication using any I/O pin of a microcontroller. The PIC18F series of microcontrollers has built-in USART modules. We shall see in Chapter 6 how to write mikroC programs to implement serial communication with and without a USART module. Some microcontrollers (e.g., the PIC18F series) incorporate SPI (serial peripheral interface) or I?C (integrated interconnect) hardware bus interfaces. These enable a microcontroller to interface with other compatible devices easily.

Оглавление книги


Генерация: 0.810. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз