⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
sripathi
Offline
Last seen:4 months 3 weeks ago
加入:2020-03-18 12:45
i2c,spi together with DA14531 module

Hi ,

We are planning to use the DA14531 module for sensor display unit , the display we are using is a spi display with 6 pins BUSY(input), RES(out), DC(out), CS(out), SCK(out), SDI(out), an i2c sensor with 3 pins (SCL,SDA,interrupt) and a buzzer (1 pin ) and as per our requirement we donot need to use the display , sensor and buzzer simultaneously . so total we need 10 pins to communicate . However the module has only 9 GPIO , of which 4 gpios(P0_0,P0_2,P0_5,P0_10) are shared and have predefined functions (SWCLK,SWDIO,RST,RXTX) . Is it possible to connect a spi display , i2c sensor and buzzer to the module by sharing some pins and managing at the software end ?

If it is possible could you kindly help with the schematic of the connections . I just wanted to clarify it before i buy the development kit .

Thanks a lot for your time and patience .

Keywords:
PM_Dialog
Offline
Last seen:2 days 18 hours ago
Staff
加入:2018-02-08 11:03
Hi sripathi

Hi sripathi

Thanks for your question online and for you interest in our BLE solutions. Let me check it and I’ll get back to you as soon as possible.

Let me also change the device selection in your initial post, as the question is related to the DA14531 Module and not to the DA14580.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:2 days 18 hours ago
Staff
加入:2018-02-08 11:03
Hi sripathi,

Hi sripathi,

My apologies for the delay. Which is the sensor display that you are planning to use? Are all the 6 pins needed and should be connected with the module’s GPIOs? Are you planning to use JTAG for the programming?

In the SW side, yes you can configure the same GPIO either as SPI or I2C. Since the GPIO will be shared with 2 interfaces, you should make sure that when interacting with one of them, the other is not affected. For example, suppose that the application starts toggling the I2C clock and the same GPIO is connected with SPI CS.

Can you please share a block diagram showing how you are considering to connect the interfaces with the module?

Thanks, PM_Dialog

sripathi
Offline
Last seen:4 months 3 weeks ago
加入:2020-03-18 12:45
Hi ,

Hi ,

我计划使用门限调试和the display is a spi display , it seems the busy pin is optional and on the software side it can be handled . thanks for your response , i have made a custom board for trying out various options with gpios , I will try it and post back in case of any problems .Thanks

PM_Dialog
Offline
Last seen:2 days 18 hours ago
Staff
加入:2018-02-08 11:03
Hi sripathi,

Hi sripathi,

Thanks for let us know. If you need any further help for the evaluation, please create a new forum thread.

Thanks, PM_Dialog