https://github.com/charkster/samd21-i2c_slave_16bit_address
This implements an i2c slave with a register map of 16k bytes in sram (SAMD21 has a total of 32kB ram). A 2 byte write is needed to load a 14bit address. The slave supports multi-byte writes and reads. It uses the "Wire" library.
https://github.com/charkster/samd21-i2c_slave_16bit_address
16bit i2c-device samd21
Last synced: 8 months ago
JSON representation
This implements an i2c slave with a register map of 16k bytes in sram (SAMD21 has a total of 32kB ram). A 2 byte write is needed to load a 14bit address. The slave supports multi-byte writes and reads. It uses the "Wire" library.
- Host: GitHub
- URL: https://github.com/charkster/samd21-i2c_slave_16bit_address
- Owner: charkster
- License: mit
- Created: 2021-06-18T05:37:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-22T23:34:17.000Z (about 3 years ago)
- Last Synced: 2025-01-13T19:26:57.890Z (10 months ago)
- Topics: 16bit, i2c-device, samd21
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# samd21-i2c_slave_16bit_address
This implements an i2c slave with a register map of 16k bytes in sram (SAMD21 has a total of 32kB ram). A 2 byte write is needed to load a 14bit address. The slave supports multi-byte writes and reads. It uses the arduino "Wire" library, and can be easily ported to other MCUs.
I use this to model ASICs which use 16bit addressing with an i2c interface. A UF2 file is included for easy programming and the i2c pins are as documented in Seeeduino Xiao and QT PY pin diagrams.