Learn MoreFAQsTutorials

2 posts / 0 new
Last post
posciamelo
Offline
Last seen:2 weeks 3 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:4 days 14 hours 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