The RS-485 on GESBC-9260 is connected to USART3 of the AT91SAM9260 processor. The 9260 processor has a hardware RS-485 mode. It can be set by one of the serial port control registers. Once it is set to RS-485 mode, the serial port can be used directly like any other Linux serial devices.
The kernel should have USART3 enabled with RTS pin included,
/arch/arm/mach-at91/board-sam9260ek.c
static void __init ek_map_io(void)
/* USART3 on ttyS4. (Rx, Tx, RTS) */
at91_register_uart(AT91SAM9260_ID_US3, 4, ATMEL_UART_RTS);
The USART mode register can be set with the devmem2 utility in user space,
devmem2 0xfffd0004 w 0xc00008c1
The Linux standard serial device control can be used to set baudrate etc.
Hi,
I do not have a RS485 driver chip, is it possible to use the lines marked "RS485" on the J16 I/O Expansion as TTL level lines to talk to a PIC?
Thanks for any info