Page 1 of 1

18F2580 I2C Hardware Channel1 not responding

Posted: Fri Mar 27, 2020 9:15 pm
by Jay Dee
Hi,
Possible probem..checked it a few times and different ICs.
FC v8.2.2.15
Working with PIC 18F2580, small test program using i2C (attached), program works fine using software mode, no output on hardware pins in 'channel 1' mode.
Both modes using pins C4 SDA and C3 SCL. All other settings kept the same, just changing the channel type.
PIC_18F2580_i2C_MotorTest_Move_AtoB.fcfx
(22.33 KiB) Downloaded 204 times
thanks, J.

Re: 18F2580 I2C Hardware Channel1 not responding

Posted: Tue Mar 31, 2020 3:33 pm
by Benj
Hello,

I can't see the I2C Initialise function being called anywhere in the code? Could this be the cause of the problem? The software channel can probably get away without being initialised.

Re: 18F2580 I2C Hardware Channel1 not responding

Posted: Tue Mar 31, 2020 7:36 pm
by Jay Dee
Ahh...shoot. Yeah sorry Ben. Just tested on hardware and all works.
False Alert! :oops:
J.