Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:10 18 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : I2C question

Author Message
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 09:56am 23 Sep 2015
Copy link to clipboard 
Print this post

Is there any way to enable the PIC32's built-in pull-ups on the I2C lines, and have the lines configures for I2C operation in MM+ with them?
Thanks

http://rittle.org

--------------
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10406
Posted: 10:08am 23 Sep 2015
Copy link to clipboard 
Print this post

Try setting up I2C as normal and then poking the CNPUB register to turn on the pullup on b8 and b9

Poke &HbF886158, &H300

UNTESTED!!!!!!
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2956
Posted: 06:10pm 23 Sep 2015
Copy link to clipboard 
Print this post

Hi Kon, Peter,

That is a good idea, I assume these pullups will be `weak' ones so external may still be required but they may be fine for some devices at slow speeds.

maybe the I2C open command can be added to by something like

I2C OPEN speed, timeout, PU

Regards,

Mick

Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3303
Posted: 02:41pm 25 Sep 2015
Copy link to clipboard 
Print this post

  bigmik said  I2C OPEN speed, timeout, PU

Great idea, I will add it to the list.
Geoff Graham - http://geoffg.net
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025