Hello SmugWimp,
16F877a has a bunch of analog stuff, some of it on portC, including C.1 and you must disable to send I²C as that data is digital. How about posting the whole code including the config statements. I would read sec. 4.3 of the data sheet, it explains about using portC in I²C communications and which pins to use. I do not know how much it affects the operation, but portC has Schmitt trigger input buffers. It may be because of that, it will only work on the pins Microchip has designated as I²C , it is certainly worth the effort to check. BTW, I do not see the jump label or a subroutine to be jumped to, must be in the unposted code . . . Have you attempted to try this on PortB ? No S. T. on the inputs there. here is a link of someone who got I²C to work : http://www.picbasic.co.uk/forum/showthread.php?t=5632 Looks like I2CWRITE is not a stand alone statement, looks like it requires all the registers to be set as the datasheet specifys . . . The manual gives the impression this is a bit banged solution, sort of looks like it is not.
Last edited by Archangel; - 5th February 2009 at 19:24.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks