I have a problem with using RS485 (ISO-3082DWR) from NRF-52832.
The SDK version uses 15.02.
Here's the code I've run.
nrfx_uart_config_t uart_config = {
.pseltxd = 30,
.pselrxd = 31,
.pselcts = 19,
.pselrts = 18,
.p_context = NULL,
.hwfc = NRF_UART_HWFC_DISABLED, // Flow Control - Not Use
.parity = NRF_UART_PARITY_EXCLUDED, // Parity - Not Included
.baudrate = UARTE_BAUDRATE_BAUDRATE_Baud19200,
.interrupt_priority = NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY };
// TWI_INSTACE_ID Already defined 0
nrfx_uart_t uart = NRFX_UART_INSTANCE (TWI_INSTANCE_ID);
nrfx_err_t err;
err = nrfx_uart_init (& uart, & uart_config, nrfx_uart_event_handler);
// flow control - write
nrf_gpio_cfg_output (18);
nrf_gpio_cfg_output (19);
nrf_gpio_pin_write (18, 1);
nrf_gpio_pin_write (19, 1);
while (true)
{ int8_t ch = 'b'; err = nrfx_uart_tx (& uart, & ch, 1); nrfx_uart_tx_abort (& uart); nrf_delay_ms (100); }I have processed the following code, but I do not get any signals. Is there a problem with the code?
Or do I have to look through another example?