Lecture 7: Interfacing and Communications

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

Difference between Interfacing and Communicating:

  • Interfacing is about connecting devices safely and reliably, including physical connectors, voltage levels, and input/output signals.

  • Communicating refers to sending messages or data between devices, including timing signals and protocols.

2
New cards

Describe the basic principles of interfacing an LCD display and a keyboard in an embedded system

  • LCD display interfacing requires enabling the device, selecting registers, and setting up data pins.

  • Keyboard interfacing uses a scanning method where multiple pins are initialized to detect key presses, often requiring pull-down resistors to stabilize inputs.

3
New cards

• What is the difference between parallel and serial comms?

  • Parallel: Uses multiple wires to transmit multiple bits simultaneously. It provides high throughput over short distances but can be bulky and expensive.

  • Serial: Transmits data one bit at a time over a single wire, making it more efficient for long distances but requiring more complex processing.

4
New cards

What are the differences between asynchronous and synchronous communications?

  • Asynchronous: Each device has its own oscillator and timing is not shared (e.g., RS-232, USB).

  • Synchronous: A separate clock signal is provided by the master device to synchronize data transmission (e.g., SPI, I2C).

5
New cards

Discuss the operating principles of the SPI and RS-232 communications

  • SPI (Serial Peripheral Interface): Full-duplex communication using separate clock and slave select lines. It is fast but requires multiple connections.

  • RS-232: A UART-based asynchronous serial communication method that converts parallel data into serial format and includes parity bits for error checking.

6
New cards

Name two communication modes for the PIC16F887. Is it possible to have full duplex communication in the synchronous mode?

  • The PIC16F887 supports Asynchronous Full-Duplex Mode and Synchronous Half-Duplex Mode.

  • Full duplex is not possible in synchronous mode because synchronous communication only allows either transmission or reception at a time.

7
New cards

• Discuss the use of the PIC USART for synchronous TX

In synchronous mode, the PIC USART acts as a master or slave. The master provides a clock, and transmission happens half-duplex with synchronization.

8
New cards

• Discuss the use of the PIC USART for asynchronous TX

Asynchronous mode supports full-duplex communication using separate TX and RX lines. Baud rate errors must be managed carefully.

9
New cards

• What does using protocols add to communications?

Protocols define structured communication processes using packets instead of raw byte transfer. They improve efficiency, enable error detection, and support multi-device communication.

10
New cards

• Name three synchronous communication protocols

SPI, I2C, CAN (Controller Area Network).