Trying to use P2.0 and P2.1 as SCL and SDA ports respectively.
LCD unit is Newhaven C0220BIZ-FS(RGB)-FBW-3VM
Following post uses low level routines to interface to the LCD panel with a different MSP 430 microcontroller.
I2C communications with Newhaven LCD Panel
These routines don't seem to work with the ADuCM360.
I have managed to get the ADuCM360 to talk to an ADT7420 I2C based temperature sensor using P2.0 and P2.1 but not the LCD.
The explanation in the ADucM360 Hardware User Guide on the FIFOs is very basic. It is not clear which instruction makes the transfer.
In some Analog Devices sample code functions in ADT7410I2C.c
The command I2cMWrCfg(Address<<1) sometimes follows and sometimes precedes instructions like I2cTx(MASTER,0x0B);
Also in the same code, I2cFifoFlush(MASTER,ENABLE); is followed by I2cFifoFlush(MASTER,DISABLE); and then by NVIC_Disable(I2CM_IRQn);
So the interrupt is disabled and the FIFO deliberately flushed. But in other functions within the same file it relies on interrupts and does not use the FIFO functions explicitly.
All very confusing to me at least.
Any help greatly appreciated
If you need to understand ADuCM360 I2C code, please refer the ADuCM360 example codes.
From below website
Please download the ADuCMxxxV1.3.exe and install it. You can find the example codes.
I'm not a programmer, but thought having a few more references might be useful for you.
The UG-367 (http://www.analog.com/media/en/technical-documentation/user-guides/UG-367.pdf) has some good reference to how the I2C peripheral works. (along with all the other peripherals)
There is also another code example for the ADT7420 on our GitHub repository that communicates (both Tx and Rx) over I2C. (EVAL-ADICUP360/projects/ADuCM360_demo_adt7420_pmdz at master · analogdevicesinc/EVAL-ADICUP360 · GitHub)
In my post, the comments are based on the example code that you have referenced and the inconsistencies in approach within that code. That code package is dated 25/2/2013. It needs to be updated, expanded and corrected.
I am using Rev D of the User Guide - 367 you refer to. Unfortunately for me its contents assume a comprehensive understanding of microcontrollers, their interfaces and their programming.
The GitHub repository appears helpful. I need to look at the code in detail to see whether it helps my situation.
Thanks for the comments, appreciated.