[En-Nut-Discussion] UART1 RTS/CTS

Tóth Szabolcs toth.szabolcs at eworldcom.hu
Fri Dec 30 01:46:07 CET 2005


Hi,

I need some help in uart. I have an Ethernut 1g board. I connected a 
MAX232 IC to the uart1 port (port D). I need RTS, CTS not just RXD, TXD.

Pins:
CTS: PortD 0
RTS: PortD 1
RXD: PortD 2
TXD: PortD 3

What should I do, to ask AVR use CTS, RTS pins? I don't know if I'm on a 
good way, but I modified nut/include/arch/avr.h and added the following 
lines:
#define UART1_CTS_IRQ INT0
#define UART1_RTS_PORT PORTD
#define UART1_RTS_DDR DDRD
#define UART1_RTS_BIT 1

After this I rebuilt the OS with the configurator, but another error 
messages came.

For the uart0 the RXD and TXD is enough...

Thanks in advance,
    Szabolcs




More information about the En-Nut-Discussion mailing list