⚠️
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.
2 posts / 0 new
Last post
posciamelo
Offline
Last seen:2 months 5 days ago
加入:2020-06-08 07:18
1-wire UART RX

Hi,

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?

Thanks

Device:
TR_Dialog
Offline
Last seen:1 month 1 day ago
工作人员
加入:2014-06-30 23:52
Hi posciamelo,

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