⚠️ 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.
is there any example or guidelines on how to setup the 1-wire UART to actually send data from the PC to the DA14531 module? How should it be defined in the code?
Hiposciamelo,
Please try the following ( assumption P0_5 used as one wire uart):
添加#定义CFG_UART_ONE_WIRE_SUPPORT to user_config.h
update the routine periph_init:
void periph_init(void)
{/* Enable One wire UART */
uart_one_wire_enable(UART2, GPIO_PORT_0, GPIO_PIN_5);
uart_one_wire_tx_en (UART2);
uart_one_wire_rx_en (UART2)
…
Thanks,
TR_DIALOG