W7500p uart2 communication problem

Hello,

I want to serial communicate from UART1 to UART2.

1- Is UART2 used in serial communication?
2- How to I make UART2 settings?(wordlength,stopbits,parity…)

Thanks in advance.

mutlu

Hi!

Unfortunately that’s not possible for UART2.
UART 2 is a simple uart and the only setting you can do is the baudrate and some interrupt flags.

S_UART_ITConfig(S_UART_CTRL_RX, ENABLE);	// Enable Receive flag
S_UART_Init(115200);					// Set baudrate to 115k2

Functions can be found in W7500x_uart.h

For more settings use UART0 and 1.