Serial Display emulator    New Display User manual

Forum login or
Forum Catagory
Digole Serial Display (210)
  12864 LCD/OLED module (22)
  24064 LCD module (3)
  Color LCD Modules (27)
  Color OLED module (20)
  Online Emulater (5)
  Universal GLCD module (1)
  Universal Text LCD module (2)
Mini Display Panels (0)
  Mini LCDs (0)
  Mini OLEDs (0)
Pattern Drive Module (0)
~Buy & Sell on Digole (2)
~Others~ (5)
Forum : Digole Serial Display :

 Search Forum.. 
 Creat New Topic   Reply 

I2C DSDM problems


I'm using the 12864 LCDS4 DSDM with the Hitec C18 compiler. I'm trying to communicate with the DS3231 I2C real time clock chip without any success. I'm using the built in MSSP module rather going the bit banging route. The routine has been tried & tested on a P16F886 (which works fine) with a small change due to 1 register name change.  I have double checked my code against the Microchip AN989 application note for 18F devices.

I've spent a few hours on this to no avail. Has anyone tried using the MSSP module to communicate with I2C devices or is there a known problem that I'm not aware of?




RE:I2C DSDM problems

 What Digole display module you have: serial module or smart module?

RE:I2C DSDM problems

 I'm using the smart module.

RE:I2C DSDM problems

 I've got it working by bringing the clock rate down to 10Khz rather than the 100Khz rate specification!  I shall now slowly increase the clock rate until it fails again. 

RE:I2C DSDM problems

 Clock rate now back at 100Khz & everything working OK - not sure where the mistake was!!

RE:I2C DSDM problems

 Did you add pull up resistors when using I2C?

RE:I2C DSDM problems

 Yes I did - I'm using a small ready built module complete with pull-up resistors. There must have been a mistake somewhere in my coding because it is reading & writing fine now. The display is destined for a new central heating controller - really pleased with the display, has reduced the component count & size considerably.

Copyright Digole Digital Solutions/Digole Technologies Inc., 2008-2024. All rights reserved.
Powered by Digole