diff options
author | Christian Pointner <equinox@mur.at> | 2013-06-28 17:53:00 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2013-06-28 17:53:00 +0000 |
commit | e194a1136d6c611c7e9cfdc6046bfd159e9d81ec (patch) | |
tree | ce6856b8c56ad27acca3e00231119827d485d0cc | |
parent | improved i2c_init (diff) |
fixed fix of last night....
git-svn-id: https://svn.spreadspace.org/mur.sat@796 7de4ea59-55d0-425e-a1af-a3118ea81d4c
-rw-r--r-- | software/ihu/i2c.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/software/ihu/i2c.inc b/software/ihu/i2c.inc index 072d01d..b23ad67 100644 --- a/software/ihu/i2c.inc +++ b/software/ihu/i2c.inc @@ -30,10 +30,10 @@ ;; ------------------------------------- i2c_init - movlw I2C_MASK ; as every write access is read-update-write this needs + movlw ~I2C_MASK ; as every write access is read-update-write this needs andwf I2C_PORT,f ; to be done in one step (external pull-ups!) bsf STATUS,RP0 - movlw ~I2C_MASK + movlw I2C_MASK iorwf I2C_PORT,f bcf STATUS,RP0 return |