Getting Started with I2C: Difference between revisions

From Embedded Workshop
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Agenda==
What we are going to talk about:
* I2C
* DS3231
* AT24C32
* TM1637
* Logic8 / Logic16


Background
1) What is I2C - The bus hardware
2) START and STOP conditions (These are NOT bits)
3) I2C Address and the R /W bit - (7 or 8 bit I2C address ?)
4) Acknowledge bit (receiver of data provides acknowledge)
5) What isn't I2C?  Examine the TM1637
5) Checkout the DS3231, write and read it's registers
6) Checkout the AT24C32, write and read data


DS3231 Module
==DS3231 Module==
DS3231: https://www.analog.com/media/en/technical-documentation/data-sheets/ds3231.pdf
===DS3231===
  The time (and temperature), are accessed via 19 byte-wide registers, see Address Map on page 11.
  The time (and temperature), are accessed via 19 byte-wide registers, see Address Map on page 11.
https://www.analog.com/media/en/technical-documentation/data-sheets/ds3231.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ds3231m.pdf (The 'M' variant)


AT24C32: https://ww1.microchip.com/downloads/en/devicedoc/doc0336.pdf
===AT24C32===
  This 32Kbit EEPROM (4096 x 8), will hold 4096 bytes of data.
  This 32Kbit EEPROM (4096 x 8), will hold 4096 bytes of data.
 
https://ww1.microchip.com/downloads/en/DeviceDoc/doc0336.pdf
 
 





Revision as of 09:13, 15 January 2025

Agenda

What we are going to talk about:

  • I2C
  • DS3231
  • AT24C32
  • TM1637
  • Logic8 / Logic16
1) What is I2C - The bus hardware
2) START and STOP conditions (These are NOT bits)
3) I2C Address and the R /W bit - (7 or 8 bit I2C address ?)
4) Acknowledge bit (receiver of data provides acknowledge)
5) What isn't I2C?  Examine the TM1637
5) Checkout the DS3231, write and read it's registers
6) Checkout the AT24C32, write and read data

DS3231 Module

DS3231

The time (and temperature), are accessed via 19 byte-wide registers, see Address Map on page 11.
https://www.analog.com/media/en/technical-documentation/data-sheets/ds3231.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ds3231m.pdf (The 'M' variant)

AT24C32

This 32Kbit EEPROM (4096 x 8), will hold 4096 bytes of data.
https://ww1.microchip.com/downloads/en/DeviceDoc/doc0336.pdf


References:
https://www.ti.com/lit/an/sbaa565/sbaa565.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ds3231.pdf
https://www.arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf