Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 11:21 26 Apr 2024 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 on UBW32 - which pins?

Author Message
Decoy
Senior Member

Joined: 02/08/2019
Location: Denmark
Posts: 109
Posted: 04:07pm 07 Feb 2020
Copy link to clipboard 
Print this post

Hi guys

I just want to make sure - if I want to use I2C on my UBW32-based MaxiMite, am I correct in assuming that A2 and A3 should be used as SCL and SDA, as stated in the Colour Maximite on the UBW32.doc?

Do I still need 10K resistors to 5V from SCL and SDA, or anything else?

Thanks,

Nicholas
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5901
Posted: 08:17pm 07 Feb 2020
Copy link to clipboard 
Print this post

A2 and A3 are used for the RTC.

From the CMM manual:
"When enabled the I2C function will take control of the external I/O pins 12 and 13 and override SETPIN and
PIN() commands for these pins. Pin 12 becomes the I2C data line (SDA) and pin 13 the clock (SCL). Both of
these pins should have external pullup resistors installed (typical values are 10K for 100KHz or 2K for 400
kHz)."

and from the Colour MMBasic on the UBW32 Board Implementation Manual

Pin12 is A15 and Pin13 is A14

While the RTC module used was 5V, most I2C will be at 3.3V so the pullups will be to 3.3 not 5V

Jim
VK7JH
MMedit   MMBasic Help
 
Decoy
Senior Member

Joined: 02/08/2019
Location: Denmark
Posts: 109
Posted: 08:58pm 07 Feb 2020
Copy link to clipboard 
Print this post

Thanks Jim

So A2 and A3 can only be used for the RTC, even if one chooses not to employ the RTC.

Did I read something about the 100KHz being more stable than 400KHz? Should I choose the former?

Thanks again!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5901
Posted: 09:16pm 07 Feb 2020
Copy link to clipboard 
Print this post

400kHz is OK for short leads but it is really a case of try it and see.
VK7JH
MMedit   MMBasic Help
 
Decoy
Senior Member

Joined: 02/08/2019
Location: Denmark
Posts: 109
Posted: 07:30am 09 Feb 2020
Copy link to clipboard 
Print this post

Okay, thanks!
 
Print this page


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

© JAQ Software 2024