CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC16F877A I2C MCP23018

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
zs6hal



Joined: 25 Feb 2021
Posts: 2
Location: UK

View user's profile Send private message

PIC16F877A I2C MCP23018
PostPosted: Wed Mar 03, 2021 8:10 am     Reply with quote

Hi
I'm trying to use the IO expander MCP23018 using I2C from a PIC16F877A (CCS C). The issue is it works perfectly if I touch the I2C CLK wire (Using bread board). Has anyone experienced the same type of issue? Surggestions on how to resolve would be appreciated. I have tried a few small caps 100pF on the line to GND but made no diffrence.
Regards
Stan
temtronic



Joined: 01 Jul 2010
Posts: 9225
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Mar 03, 2021 8:35 am     Reply with quote

While most will say 'white breadboards' are 'bad', I've got some 30 year old ones that work fine at 64MHz.....(still looking for a good 40pin PIC 'protoboard').
I suspect pins not being tight, possibly from too big of a jumper wire ?
You might try another area of the breadboard, or other pin locations in the 'strip of 5'.
Crazy thing is I just got a bag of premade rainbow jumpers from www.banggood.com this week, cheaper than me cutting/stripping 22ga solid wires.
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Wed Mar 03, 2021 8:58 am     Reply with quote

Also, possibly the pull-up not making a good contact.
zs6hal



Joined: 25 Feb 2021
Posts: 2
Location: UK

View user's profile Send private message

PostPosted: Thu Mar 04, 2021 1:31 pm     Reply with quote

Ttelmah wrote:
Also, possibly the pull-up not making a good contact.
Thanks
It was the pull up resistors not connected to VDD. Embarassed
temtronic



Joined: 01 Jul 2010
Posts: 9225
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Mar 04, 2021 3:08 pm     Reply with quote

That's GREAT is was an 'easy' fix !!!
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Fri Mar 05, 2021 2:17 am     Reply with quote

The funny thing is that a 'human body' actually managed to give enough 'pull
up' for it to work.
I had though seen this once many years ago, which is why I raised this!. Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group