SPI and I²c Debug Summary

Source: Internet
Author: User
 

These days debugging SPI and I²c, there are some small problems in the middle of this record.

The first is the setting of the address of the I²C device, if the i²c is set to a 7-byte address, the address bit is 7 bits high. The lowest bit is the read/write bit. Write in the code.

The address of the device requires a high 7-bit and a low 1-bit complement of 0.

SPI data is garbled but the data is common, and is generally a problem of setup. Chip selection pin, only the device is selected for communication.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.