Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[AVR] Interfacing MCP7940M(RTC) with ATXMEGA64B1

Status
Not open for further replies.

Mandar Joshi

Member level 2
Joined
Mar 4, 2015
Messages
50
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
445
I have interfaced MCP7940M with AVR. I know working of I2C where in case of RTC write we use following sequence:
1. Start
2. Slave address+Write bit
3. Register address
4. Register data
5. Stop

And of course after each byte there is ACK or NACK

But actual confusion is in RTC read

Definitely first two steps will be as it is only there will be slave address+read bit

After this two steps if I directly start reading data then do I need to mention address of register to be read every time, if not then in what sequence we receive the data?

Also one more question, in many codes I have seen REPEATED START while reading data what is that for?

One may think these are silly question but I am not getting these points by simply reading other threads. So it would be helpful if someone explains me this.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top