Книга: 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.
- 1.3.1 Supply Voltage
- 1.3.2 The Clock
- 1.3.3 Timers
- 1.3.4 Watchdog
- 1.3.5 Reset Input
- 1.3.6 Interrupts
- 1.3.7 Brown-out Detector
- 1.3.8 Analog-to-Digital Converter
- 1.3.9 Serial Input-Output
- 1.3.10 EEPROM Data Memory
- 1.3.11 LCD Drivers
- 1.3.12 Analog Comparator
- 1.3.13 Real-time Clock
- 1.3.14 Sleep Mode
- 1.3.15 Power-on Reset
- 1.3.16 Low-Power Operation
- 1.3.17 Current Sink/Source Capability
- 1.3.18 USB Interface
- 1.3.19 Motor Control Interface
- 1.3.20 CAN Interface
- 1.3.21 Ethernet Interface
- 1.3.22 ZigBee Interface
- 1.3.5 Reset Input
- INPUT chain
- Binary Serialization
- OUTPUT chain
- Introduction to Serial Devices
- Maintaining Accurate Serial Numbers
- Searches for a String in Input with grep
- Paging Through Output with less
- Using the Backtick to Replace a String with Output
- Chapter 4. Configuring the Serial Hardware
- 14.3.1. gdb Remote Serial Protocol
- 14.5.1. Early Serial Debug Output