Microchip TB3181 Introduction to TWI

This document introduces the features and characteristics of TWI, including TWI pins, data formats and modes, as well as how to configure TWI.


Microchip TB3181 Introduction to TWI - cover page
Brand
MICROCHIP
Category
microcontrollers
Document type
User Manual
Language
Chinese
Pages
12
File format
PDF
File size
320 KB
Published
29 October, 2023
Updated
29 October, 2023
MD5 checksum
EFC79BB63F50AEB401847D0BF4741443

About this manual

This document introduces the TWI (Two-Wire Interface) protocol, explaining its pin configuration, data format, and operation modes. It details how to configure TWI in both master and slave modes, including handling clock stretching and interrupt-driven operations. The guide also covers compatibility with I2C devices and provides code examples for TWI implementation.

The document is targeted at developers working with Microchip's SAM MCU family and includes references to datasheets and application notes for further details. This manual is written in Chinese.

What's inside

  • TWI Pins and Data Format
  • Configuring TWI
  • TWI Master Mode Configuration
  • TWI Slave Mode Configuration
  • Clock Stretching
  • Interrupt Handling
  • Related Resources

Frequently asked questions

What is the maximum speed for TWI in high-speed mode on certain SAM MCUs?

The maximum speed is 3.4 MHz.

What voltage does the SAM TWI device provide for its input and output buffers?

The SAM TWI device provides 3.3V.

What is required for devices connected to the TWI bus to achieve wired-AND functionality?

The output stage must be open-drain or open-collector.

What is the maximum bus capacitance allowed for TWI according to the I2C standard?

The maximum Cbus value is 400pF.

Download PDF (320 KB)

More MICROCHIP Manuals


View all MICROCHIP manuals →