EEVblog Electronics Community Forum
A Free & Open Forum For Electronics Enthusiasts & Professionals
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This topic
This board
Entire forum
Google
Bing
Home
Help
Search
About us
Links
Login
Register
EEVblog Electronics Community Forum
»
Electronics
»
Microcontrollers
»
Atmega 328 - sharing I2C pins with a 595
« previous
next »
Print
Search
Pages: [
1
]
Go Down
Author
Topic: Atmega 328 - sharing I2C pins with a 595 (Read 2290 times)
0 Members and 1 Guest are viewing this topic.
netdudeuk
Frequent Contributor
Posts: 447
Country:
Atmega 328 - sharing I2C pins with a 595
«
on:
December 30, 2013, 04:58:23 pm »
Hi
I've got an Atmega 328P with the Arduino Uno code and it's been working very well. I've been using A4 (the I2C SDA pin) and A5 (the I2C SCL pin) to drive the data and latch pins of a 74HCT595 but now I would like to connect an LCD display which has one of those I2C to parallel convertors. The theory was that it didn't matter if the 595 and the I2C interface saw junk heading out for the opposite device but as soon as I connect the display, which displays information from the Atmega ok, it causes (as yet unknown) issues elsewhere. Is there anything obviously wrong with wanting to get this to work and any quick solutions ? I don't have any other spare pins.
Thanks
Logged
dannyf
Super Contributor
Posts: 8221
Country:
Re: Atmega 328 - sharing I2C pins with a 595
«
Reply #1 on:
December 30, 2013, 06:20:00 pm »
Yes, if the avr acts like a master. However, you will have to disable the hardware i2c when writing to the shift register and re-enable it before any i2c transmission.
Alternatively, you can use software i2c.
Logged
================================
https://dannyelectronics.wordpress.com/
Print
Search
Pages: [
1
]
Go Up
« previous
next »
Share me
Smf
EEVblog Electronics Community Forum
»
Electronics
»
Microcontrollers
»
Atmega 328 - sharing I2C pins with a 595
There was an error while thanking
Thanking...
EEVblog Main Site
EEVblog on Youtube
EEVblog on Twitter
EEVblog on Facebook
EEVblog on Odysee