I2C on BS2
Archiver
Posts: 46,084
I am trying to run an I2C DS1307 on a BS2 with a bit-banged I2C program and I
can't get it to work. Debugging the program tells me that the figures I
enter
are being correctly converted to BCD and that they are being shifted out to
the 1307, although I really don't know if they are getting to the clock.
Notwithstanding that, regardless of what figures I enter, when I try to read back
the time I get 65/65/65, which is a BCD equivalent of 11111111.
Any suggestions? I can't attach the code but I'll be happy to send it to
anyone who thinks they can help.
Thanks
Sid Weaver
[noparse][[/noparse]Non-text portions of this message have been removed]
can't get it to work. Debugging the program tells me that the figures I
enter
are being correctly converted to BCD and that they are being shifted out to
the 1307, although I really don't know if they are getting to the clock.
Notwithstanding that, regardless of what figures I enter, when I try to read back
the time I get 65/65/65, which is a BCD equivalent of 11111111.
Any suggestions? I can't attach the code but I'll be happy to send it to
anyone who thinks they can help.
Thanks
Sid Weaver
[noparse][[/noparse]Non-text portions of this message have been removed]