I2C Examples with DA14531 TINY Module

Learn MoreFAQsTutorials

4 posts / 0 new
Last post
jwpearce
Offline
Last seen:3 months 1 week ago
加入:2016-10-13 18:51
I2C Examples with DA14531 TINY Module

I am trying to run the temperature measuring and acceleromerer examples on the DA14531 Module.

//www.xmece.com/sites/default/files/da14531-da14585...

//www.xmece.com/sites/default/files/da14531-da14585...

In both cases the port pins assigned for I2C are used internally by the module and are not available externally. I have changed the assignment of pins in user_periph_setup.h as shown below:

user_periph_setup.h

#if defined (__DA14531__)
// #define MCP9808_SCL_PORT GPIO_PORT_0
// #define MCP9808_SCL_PIN GPIO_PIN_1
// #define MCP9808_SDA_PORT GPIO_PORT_0
/ / # define MCP9808_SDA_PIN GPIO_PIN_3
#define MCP9808_SCL_PORT GPIO_PORT_0
#define MCP9808_SCL_PIN GPIO_PIN_9
#define MCP9808_SDA_PORT GPIO_PORT_0
#define MCP9808_SDA_PIN GPIO_PIN_8

I am not seeing any I2C activity on the reassigned pins so I must be missing something. What do I need to change to use I2C with the module?

Thanks.

PM_Dialog
Offline
Last seen:2 hours 7 min ago
Staff
加入:2018-02-08 11:03
Hi Jim,

Hi Jim,

Could you please probe the I2C lines and provide a capture? Is the code running correctly, but you can’t see I2C activity? Can you also check if the I2C is connected correctly with the module?

Thanks, PM_Dialog

jwpearce
Offline
Last seen:3 months 1 week ago
加入:2016-10-13 18:51
Thank you for your reply.

Thank you for your reply. The problem was that the default jumper settings on the developmant main board connected P0_8 of the module to CTS through a variety of net name changes. This was a bit less than obvious! Removing the jumper on J1p11 - J1-p12 allowed I2C to work.

PM_Dialog
Offline
Last seen:2 hours 7 min ago
Staff
加入:2018-02-08 11:03
Hi Jim,

Hi Jim,

Thank you very much for your finding and glad that you got it working.

Thanks, PM_DIalog