4 posts / 0 new
Last post
frankychan
Offline
Last seen:4 years 2 months ago
Joined:2016-09-29 04:42
I2C and SPI hardware pins in DA14680

Hi,
I cannot find the physical connections for SPI and I2C interface from DA14680. I may need those interfaces for MEMS sensors. I also cannot find any information about that in the datasheet. Did any know about that?
Thanks!

Device:
MT_dialog
Offline
Last seen:1 week 2 days ago
Staff
Joined:2015-06-08 11:34
Hi frankychan,

Hi frankychan,

The GPIO's on the 68x are configurable, as the datasheet indicates, you can assign the functionallity you want on the pins you would like, also there are some pins of Port1 and Port0 that have fixed functionallity (for the QSPI an the ADC). What do you mean, you can't find the physical connections ? there are no dedicated pins for I2C and SPI.

Thanks MT_dialog

frankychan
Offline
Last seen:4 years 2 months ago
Joined:2016-09-29 04:42
Hi,

Hi,
If the I2C and SPI interfaces can be configurable by me, then how can I get this done? Which manual is talking about this? sorry that I am new to this chip, so I don't know much about this.

MT_dialog
Offline
Last seen:1 week 2 days ago
Staff
Joined:2015-06-08 11:34
Hi frankychan,

Hi frankychan,

The datasheet mentions that the GPIOs are configurable, this is done via the hw_gpio_set_pin_function() located in hw_gpio.c driver, you can have a look at the peripherals demo in the periph_setup() function. The pins are set as UART at the peripherals_demo example, and this is the function that configures the functionallity of the GPIOs.

Thanks MT_dialog