Atmel website | ARM Community | AVR freaks | Technical Support
Banner
Welcome to AT91SAM Community Forum
http://www.at91.com/samphpbb/

Adding DCD to USART1 on AT91SAM9G20
http://www.at91.com/samphpbb/viewtopic.php?f=12&t=19050
Page 1 of 1

Author:  amitye [ Wed Mar 10, 2010 7:35 pm ]
Post subject:  Adding DCD to USART1 on AT91SAM9G20

Hi all,

I am trying to add DCD capability to USART2.
In the datasheet it is mentioned that only USART0 have such capability.

Does the DCD in USART0 is connected to some specific hardware implementaion on the processor, or is it a regular GPIO which is being used by the serial driver as the DCD?


Thanks,
Amit

Author:  ambw [ Fri Mar 12, 2010 12:03 am ]
Post subject:  Re: Adding DCD to USART1 on AT91SAM9G20

First post didn't work - try again:

Looking at the serial driver atmel_serial.c it looks like it relies on the USART registers for modem control so DCD won't work with anything but USART0. You could add a GPIO but you'd need to modify the driver to support it for all applications using the port. Either that or add custom support to your application if it the only one using the serial port that way.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/