RFQ/BOM 0 로그인 / 등록하다

귀하의 위치를 선택하세요

사용자 이미지

Ask STM32F103 and AT24Cxx use IIC communication problem.

Hardware design
12월 03, 2020 by Beatriz 1706

<div>What is the function of (addr 256)<<1? How to achieve it?


What is the function of (addr/256)<<1? How to achieve it? <div>What is the function of (addr 256)<<1? How to achieve it?

Is adding up the parameters of this statement equal to sending the two parameters separately?

모든 댓글

user image

Gwyneth 게시 날짜 December 3, 2020

(addr/256)<<1

Equivalent to

(addr/256) * 2

0
user image

Sian 게시 날짜 December 3, 2020

The following is the meaning of "page turning", because 24c4-24c16 are single-byte addressing. When the address exceeds 1 byte (255), a page needs to be replaced. The ones above 24c32 are double-byte addressing, so there is no need to do this.

0
user image

Katerina 게시 날짜 December 3, 2020

Very simple, because the address of the IIC is the upper 7 bits, and the lowest bit of the address sent is the R/W bit.

When using the device address + data address to send, the data address is bound to move one bit to the left.

0
user image

Sammy 게시 날짜 December 3, 2020

Isn't 0xA0 the device address? Doesn't it turn to another AT24Cxx if it turns to 0xA1?

0

답변 작성

답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다