18F2580 I2C Hardware Channel1 not responding

Moderator: Benj

Post Reply
User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

18F2580 I2C Hardware Channel1 not responding

Post 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 155 times
thanks, J.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 18F2580 I2C Hardware Channel1 not responding

Post 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.

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Re: 18F2580 I2C Hardware Channel1 not responding

Post by Jay Dee »

Ahh...shoot. Yeah sorry Ben. Just tested on hardware and all works.
False Alert! :oops:
J.

Post Reply